/* =============================================
   Root + Reset
   ============================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg-start: #0a0f1c;
  --bg-end: #0b1a36;
  --text-primary: #e9eef8;
  --accent-start: #00e0ff;
  --accent-end: #a5b4fc;
  --surface-glass: rgba(13, 22, 40, 0.72);
  --surface-outline: rgba(0, 224, 255, 0.16);
  --surface-outline-strong: rgba(0, 224, 255, 0.32);
  --shadow-soft: 0 24px 80px rgba(0, 224, 255, 0.16);
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-start);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* =============================================
   Motion Utilities
   ============================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Background System
   ============================================= */
.background-system {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.background-system__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  z-index: 0;
}

.background-system__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 224, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 224, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  z-index: 1;
}

.background-system__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* =============================================
   Fixed Logo Header
   ============================================= */
.aegis-logo {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 1000;
  display: grid;
  gap: 0.35rem;
  font-family: "Rajdhani", "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 238, 248, 0.9);
}

.aegis-logo h1 {
  font-size: 1.4rem;
  font-weight: 600;
}

.aegis-logo p {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(233, 238, 248, 0.7);
  letter-spacing: 0.18em;
}

/* =============================================
   Layout Scaffolding
   ============================================= */
#smooth-wrapper,
#smooth-content {
  height: 100%;
}

section,
.site-footer {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 5rem);
  display: flex;
  justify-content: center;
}

.section-shell {
  width: min(100%, 1040px);
  display: grid;
  gap: clamp(1.8rem, 2vw, 2.6rem);
  background: linear-gradient(135deg, rgba(10, 18, 34, 0.75), rgba(9, 22, 44, 0.55));
  border: 1px solid var(--surface-outline);
  border-radius: 28px;
  padding: clamp(3rem, 5vw, 4rem);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

section.hero {
  min-height: 100vh;
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
  align-items: center;
}

.about {
  padding-top: clamp(3rem, 8vh, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 15% 10%;
  background: radial-gradient(circle at center, rgba(0, 224, 255, 0.18), transparent 60%);
  filter: blur(40px);
  opacity: 0.45;
  animation: heroGlow 6s ease-in-out infinite alternate;
  z-index: -1;
}

.hero__content {
  width: min(100%, 800px);
  text-align: center;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.4rem, 2vw, 2rem);
  backdrop-filter: blur(18px);
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.82), rgba(12, 26, 50, 0.62));
  border: 1px solid rgba(0, 224, 255, 0.12);
  box-shadow: 0 32px 120px rgba(0, 224, 255, 0.18);
}

.hero h2 {
  font-size: clamp(2.3rem, 3vw + 1.5rem, 4rem);
  font-weight: 600;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.35rem);
  color: rgba(233, 238, 248, 0.85);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.75rem;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(4px);
}

.cta-buttons .primary {
  color: #05070f;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 20px 70px rgba(0, 224, 255, 0.3);
}

.cta-buttons .secondary {
  color: rgba(233, 238, 248, 0.9);
  background: rgba(8, 18, 36, 0.75);
  border: 1px solid rgba(0, 224, 255, 0.28);
  box-shadow: 0 18px 60px rgba(0, 224, 255, 0.18);
}

.cta-buttons a:hover,
.cta-buttons a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 90px rgba(0, 224, 255, 0.35);
}

.trustline {
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(233, 238, 248, 0.7);
}

/* =============================================
   Section Styling
   ============================================= */
.about .section-shell,
.systems .section-shell,
.contact .section-shell {
  gap: clamp(1.5rem, 2vw, 2.5rem);
}

.about h3,
.systems h3,
.contact h3 {
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.8rem);
  font-weight: 600;
}

.about h4,
.systems h4 {
  font-size: clamp(1.35rem, 1.5vw + 1rem, 2.1rem);
  font-weight: 600;
}

.about p,
.systems p,
.contact p,
.site-footer p,
.values-grid p {
  color: rgba(233, 238, 248, 0.8);
  font-size: clamp(1rem, 1vw + 0.85rem, 1.2rem);
}

blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1.2vw + 1rem, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(233, 238, 248, 0.85);
  padding-left: clamp(1.5rem, 2vw, 2.25rem);
  border-left: 2px solid rgba(0, 224, 255, 0.4);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.35), transparent);
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.15);
}

.section-divider--horizontal {
  margin-block: clamp(1rem, 2vw, 2rem);
  opacity: 0.45;
}

.section-divider--cyan {
  width: 60%;
  margin: 0 auto;
  margin-top: clamp(3rem, 6vh, 4rem);
  margin-bottom: -1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.6), transparent);
  box-shadow: 0 0 35px rgba(0, 224, 255, 0.45);
}

.values-grid {
  display: grid;
  gap: clamp(1.5rem, 2vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.values-grid div {
  background: rgba(8, 16, 32, 0.78);
  border: 1px solid rgba(0, 224, 255, 0.15);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: 0 26px 70px rgba(0, 224, 255, 0.14);
}

.values-grid strong {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(233, 238, 248, 0.92);
}

.blueprint-structure {
  position: relative;
  display: flex;
  justify-content: flex-start;
  padding: clamp(2rem, 3vw, 3rem);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(5, 12, 24, 0.78);
  border: 1px solid rgba(0, 224, 255, 0.22);
  box-shadow: 0 36px 120px rgba(0, 224, 255, 0.18);
}

.blueprint-structure__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 224, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(0, 172, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 224, 255, 0.08), rgba(4, 10, 24, 0.8));
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.blueprint-narrative {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  max-width: 720px;
  text-align: left;
  line-height: 1.9;
  font-size: clamp(1.05rem, 0.9vw + 0.95rem, 1.25rem);
  color: rgba(233, 238, 248, 0.88);
}

.blueprint-feature-block {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.5vw, 0.6rem);
}

.blueprint-feature-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-start);
}

.blueprint-feature-block p {
  margin: 0;
}

@media (max-width: 960px) {
  .blueprint-narrative {
    max-width: 100%;
    font-size: clamp(1.02rem, 1vw + 0.98rem, 1.18rem);
    gap: clamp(1.2rem, 3vw, 1.6rem);
  }
}

@media (max-width: 640px) {
  .blueprint-structure {
    padding: clamp(1.75rem, 4vw, 2.2rem);
    border-radius: 22px;
  }

  .blueprint-narrative {
    line-height: 1.85;
    gap: clamp(1.1rem, 4vw, 1.5rem);
  }

  .blueprint-feature-title {
    letter-spacing: 0.03em;
  }
}

/* =============================================
   Buttons + Form
   ============================================= */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  min-height: 48px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button.button--primary {
  color: #05070f;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 20px 70px rgba(0, 224, 255, 0.32);
  border: none;
}

.button.button--primary:hover,
.button.button--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 90px rgba(0, 224, 255, 0.38);
}

.contact__form {
  position: relative;
  display: grid;
  gap: 1.5rem;
  width: min(100%, 600px);
}

.contact__honeypot {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact__form label {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(233, 238, 248, 0.78);
}

.contact__form input,
.contact__form textarea {
  background: rgba(5, 10, 22, 0.78);
  border: 1px solid rgba(0, 224, 255, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__form button[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: 0 12px 42px rgba(0, 224, 255, 0.24);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: rgba(0, 224, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.18);
}

.contact__form small {
  font-size: 0.85rem;
  color: rgba(233, 238, 248, 0.6);
}

.contact__feedback {
  min-height: 1.3rem;
  margin: -0.25rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(233, 238, 248, 0.78);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.contact__feedback--success {
  color: rgba(102, 255, 214, 0.85);
}

.contact__feedback--error {
  color: rgba(255, 120, 142, 0.85);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding-top: clamp(4rem, 10vh, 5.5rem);
  padding-bottom: clamp(4rem, 10vh, 6rem);
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer nav a {
  color: rgba(233, 238, 248, 0.78);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.site-footer nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.6), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: rgba(233, 238, 248, 0.92);
}

.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after {
  transform: scaleX(1);
}

/* =============================================
   Media Queries
   ============================================= */
@media (max-width: 900px) {
  .section-shell {
    border-radius: 22px;
    padding: clamp(2.5rem, 6vw, 3.5rem);
  }

  .hero__content {
    padding: clamp(2.5rem, 8vw, 3.5rem);
  }

  .trustline {
    letter-spacing: 0.2em;
  }
}

@media (max-width: 640px) {
  .aegis-logo {
    position: absolute;
  }

  section,
  .site-footer {
    padding-inline: clamp(1.5rem, 8vw, 2rem);
  }

  .cta-buttons a {
    flex: 1 1 100%;
  }

  .section-divider--cyan {
    width: 80%;
  }
}

/* =============================================
   Motion Preferences
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================
   Keyframes
   ============================================= */
@keyframes heroGlow {
  0% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}
