:root {
  --blue-deep: #001a33;
  --blue-navy: #003366;
  --blue-royal: #0a4a9c;
  --blue-bright: #1a6fd4;
  --gold: #c5a028;
  --gold-bright: #e0c35a;
  --gold-deep: #8a6f1a;
  --ink: #0c1a2b;
  --muted: #4a5d73;
  --paper: #f7f9fc;
  --line: rgba(0, 51, 102, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(197, 160, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 5%, rgba(10, 74, 156, 0.16), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, var(--paper) 28%, #e8eef6 100%);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 51, 102, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 102, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 0.5rem;
  animation: fade-down 0.8s ease both;
}

.brand img {
  display: block;
  height: 2.75rem;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--blue-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--gold-deep);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vh, 4rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fade-up 0.9s ease 0.1s both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8vw, 5.75rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-navy) 55%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 0.9s ease 0.2s both;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  animation: fade-up 0.9s ease 0.35s both;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: end;
  gap: 0.85rem;
  animation: fade-up 0.9s ease 0.5s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-royal), var(--blue-navy));
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-royal));
}

.btn-ghost {
  color: var(--blue-navy);
  border: 1px solid rgba(0, 51, 102, 0.28);
  background: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.about,
.works,
.thebe,
.demos {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about.is-visible,
.works.is-visible,
.thebe.is-visible,
.demos.is-visible {
  opacity: 1;
  transform: none;
}

.about {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.65rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about h2,
.works h2,
.thebe h2,
.demos h2 {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--blue-navy);
}

.section-lede {
  margin: 1rem 0 0;
  max-width: none;
  color: var(--muted);
}

.about-body {
  margin: 1.25rem 0 0;
  max-width: none;
  color: var(--ink);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.pillars h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--blue-navy);
}

.pillars p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.works {
  border-top: 1px solid var(--line);
}

.flow {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.flow li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

.flow .step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.flow strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--blue-navy);
}

.flow span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.demo-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
  opacity: 0;
  transform: translateX(-0.75rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.demos.is-visible .demo-link {
  opacity: 1;
  transform: none;
}

.demos.is-visible li:nth-child(1) .demo-link {
  transition-delay: 0.05s;
}

.demos.is-visible li:nth-child(2) .demo-link {
  transition-delay: 0.15s;
}

.demos.is-visible li:nth-child(3) .demo-link {
  transition-delay: 0.25s;
}

.demo-link:hover {
  border-color: rgba(197, 160, 40, 0.45);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(224, 195, 90, 0.12));
}

.demo-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.demo-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--blue-navy);
  line-height: 1.15;
}

.demo-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.demo-url {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-royal);
}

.demo-link:hover .demo-url {
  color: var(--gold-deep);
}

.coming-soon {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-navy);
}

.sep {
  margin: 0 0.45rem;
  color: var(--gold);
}

.footer-meta {
  margin: 0.65rem 0 0;
}

.footer-meta a {
  color: var(--blue-royal);
  text-decoration: none;
  font-weight: 600;
}

.footer-meta a:hover {
  color: var(--gold-deep);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .cta-group {
    justify-content: flex-start;
    align-self: start;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    height: 2.35rem;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .about,
  .works,
  .thebe,
  .demos,
  .demo-link {
    opacity: 1;
    transform: none;
  }
}
