:root {
  --bg-900: #050824;
  --bg-820: #070d33;
  --bg-760: #101a5a;
  --ink-100: #edf3ff;
  --ink-200: #d2dcfb;
  --ink-300: #aebce9;
  --cyan: #6defff;
  --blue: #5f8dff;
  --violet: #8874ff;
  --magenta: #d06aff;
  --surface: rgba(11, 19, 70, 0.62);
  --surface-strong: rgba(9, 15, 56, 0.86);
  --border: rgba(125, 164, 255, 0.28);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1160px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink-100);
  line-height: 1.62;
  background:
    radial-gradient(circle at 8% -5%, rgba(109, 239, 255, 0.2), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(208, 106, 255, 0.2), transparent 32%),
    radial-gradient(circle at 50% 110%, rgba(95, 141, 255, 0.15), transparent 48%),
    linear-gradient(180deg, var(--bg-900) 0%, #090f38 58%, #050824 100%);
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.14;
  font-family: "Sora", "Avenir Next", sans-serif;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.56rem, 2.8vw, 2.36rem);
}

h3 {
  font-size: 1.2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: var(--container);
  margin: 14px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  border: 1px solid rgba(130, 172, 255, 0.32);
  background: rgba(7, 12, 45, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(109, 239, 255, 0.55);
  box-shadow: 0 0 16px rgba(109, 239, 255, 0.35);
}

.brand-text {
  letter-spacing: 0.02em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-200);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0;
}

.story-section + .story-section {
  padding-top: 22px;
}

.video-hero {
  padding-top: 34px;
}

.video-stage {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(141, 177, 255, 0.36);
  box-shadow: var(--shadow);
  background: #000;
}

.video-stage video {
  width: 100%;
  background: #000;
}

.video-stage .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-stage .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-stage figcaption {
  margin: 0;
  padding: 11px 14px;
  font-size: 0.93rem;
  color: var(--ink-200);
  background: var(--surface-strong);
}

.hero-copy {
  margin-top: 30px;
  width: 100%;
}

.page-hero {
  padding-top: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.lead {
  margin: 0;
  color: var(--ink-200);
  max-width: 72ch;
  font-size: 1.05rem;
}

.lead-secondary {
  margin: 16px 0 0;
  color: var(--ink-200);
  max-width: 72ch;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.hero-actions-4 .btn {
  text-align: center;
  padding: 11px 18px;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .hero-actions-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions-4 .btn {
    white-space: normal;
  }
}

@media (max-width: 500px) {
  .hero-actions-4 {
    grid-template-columns: 1fr;
  }
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  inset: 30px -20px;
  border-radius: 28px;
  border: 1px solid rgba(130, 170, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(13, 20, 72, 0.62), rgba(9, 15, 54, 0.74)),
    radial-gradient(circle at 85% 15%, rgba(136, 116, 255, 0.16), transparent 40%);
  z-index: -1;
}

.section-heading {
  margin-bottom: 26px;
  max-width: 78ch;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--ink-200);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  padding: 22px;
}

.panel p {
  margin: 0;
  color: var(--ink-200);
}

.panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-200);
}

.panel li + li {
  margin-top: 9px;
}

.panel-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.story-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.story-scene-reverse {
  grid-template-columns: minmax(0, 1fr);
}

.story-scene-reverse .story-image {
  order: -1;
}

.scene-copy h2 {
  margin-bottom: 12px;
}

.scene-copy > p {
  margin: 0;
  color: var(--ink-200);
  max-width: 68ch;
}

.scene-points {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scene-points-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-image {
  margin: 0;
  width: 100%;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.image-caption {
  margin: 10px 0 0;
  padding: 0;
  color: var(--ink-300);
  font-size: 0.88rem;
  text-align: center;
}

.story-figure {
  margin: 0;
}

.process-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.process-list li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 16px 18px 16px 58px;
}

.process-list li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--cyan);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.process-list li p {
  margin: 0;
  color: var(--ink-200);
}

.process-step {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-100);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.framework {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.framework span {
  display: block;
  text-align: center;
  padding: 11px 10px;
  border-radius: 999px;
  border: 1px solid rgba(117, 160, 255, 0.35);
  background: linear-gradient(180deg, rgba(27, 38, 108, 0.88), rgba(17, 25, 77, 0.96));
  color: var(--ink-100);
  font-weight: 700;
}

/* Story images are full-width by default */

.cta-panel {
  display: flex;
  flex-direction: column;
}

.cta-panel p {
  flex-grow: 1;
}

.cta-strip {
  margin-top: 20px;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(135, 175, 255, 0.4);
  background:
    radial-gradient(circle at 18% 0%, rgba(109, 239, 255, 0.24), transparent 42%),
    radial-gradient(circle at 88% 25%, rgba(208, 106, 255, 0.22), transparent 48%),
    linear-gradient(130deg, rgba(11, 21, 75, 0.95), rgba(13, 28, 89, 0.92));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.cta-strip p {
  margin: 0;
  color: var(--ink-200);
}

.post-card h3 {
  margin-bottom: 10px;
}

.post-meta {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.coming-soon {
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink-100);
}

.text-link {
  color: var(--cyan);
  text-underline-offset: 2px;
}

.text-link:hover,
.text-link:focus-visible {
  color: #a8f9ff;
}

.article-shell {
  max-width: 820px;
}

.article-shell p,
.article-shell ul {
  color: var(--ink-200);
}

.article-shell ul {
  padding-left: 20px;
}

.article-shell li + li {
  margin-top: 9px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 10px;
}

form {
  display: grid;
  gap: 10px;
}

.field-label {
  font-weight: 600;
  color: var(--ink-100);
  font-size: 0.95rem;
}

input,
select,
textarea {
  border: 1px solid rgba(125, 167, 255, 0.4);
  background: rgba(8, 15, 56, 0.85);
  color: var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(109, 239, 255, 0.35);
  outline-offset: 0;
  border-color: rgba(109, 239, 255, 0.7);
}

.help-text {
  margin: 0;
  color: var(--ink-300);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-small {
  padding: 9px 15px;
  font-size: 0.9rem;
  background: rgba(16, 26, 90, 0.92);
  border-color: rgba(124, 170, 255, 0.42);
  color: var(--ink-100);
}

.btn-primary {
  color: #08103a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 22px rgba(90, 169, 255, 0.38);
}

.btn-secondary {
  background: rgba(8, 14, 52, 0.9);
  border-color: rgba(122, 165, 255, 0.36);
  color: var(--ink-100);
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  color: var(--ink-300);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    width: min(1160px, 95vw);
    border-radius: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 4px;
    padding-bottom: 2px;
  }

  .grid-3,
  .story-scene,
  .story-scene-reverse,
  .scene-points,
  .scene-points-2,
  .framework,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 50px 0;
  }

  .framework {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-strip {
    padding: 30px 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
