:root {
  --ink: #08152a;
  --ink-soft: #40516a;
  --navy-950: #030a14;
  --navy-900: #061224;
  --navy-800: #0a1b34;
  --blue: #146eff;
  --blue-strong: #0752d6;
  --cyan: #16c8f4;
  --surface: #ffffff;
  --surface-soft: #f3f7fc;
  --line: #d9e4f1;
  --shadow: 0 24px 70px rgba(12, 35, 72, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(22, 200, 244, .55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
}
.skip-link:focus { transform: translateY(0); }

.container { width: var(--content); margin-inline: auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
  border-bottom: 1px solid rgba(145, 190, 236, .14);
  background: rgba(3, 10, 20, .62);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 20px rgba(28, 126, 255, .28); }
.brand__wordmark { position: relative; display: inline-block; padding-bottom: 13px; color: #fff; font-size: 1.24rem; font-weight: 820; letter-spacing: -.04em; line-height: 1; }
.brand__wordmark span { color: #247cff; }
.brand__wordmark::after { content: "TOOLS FOR WHAT YOU BUILD"; position: absolute; left: 1px; bottom: 0; color: #7fa5cc; font-size: .34rem; font-weight: 760; letter-spacing: .24em; line-height: 1; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav > a:not(.button) {
  position: relative;
  color: #b9cbe0;
  font-size: .9rem;
  font-weight: 650;
  transition: color .2s ease;
}
.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  inset: auto 0 -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: #fff; }
.site-nav > a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: transparent;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: #fff; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover:not(.button--disabled) { transform: translateY(-2px); }
.button--primary { color: #fff; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 10px 28px rgba(18, 113, 255, .28); }
.button--ghost { color: #eaf5ff; border-color: rgba(202, 228, 255, .32); background: rgba(255,255,255,.05); }
.button--dark { color: #fff; background: var(--ink); }
.button--line { color: var(--blue-strong); border-color: #aecbf0; background: #f7fbff; }
.button--disabled { cursor: not-allowed; opacity: .62; }

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 20, .97) 0%, rgba(3, 10, 20, .83) 42%, rgba(3, 10, 20, .18) 78%),
    url("/assets/images/hero-editor-grid.png") center / cover no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 44px;
}
.hero__content { padding: 28px 0 46px; }
.hero__kicker, .eyebrow {
  margin: 0 0 16px;
  color: var(--blue-strong);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero__kicker { color: #58d7ff; }
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3.1rem, 5.2vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero h1 span { display: block; color: transparent; background: linear-gradient(90deg, #ffffff 5%, #8fe9ff 50%, #2b84ff); background-clip: text; }
.hero__lead { max-width: 610px; margin: 28px 0 34px; color: #b8c9dc; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero__meta { display: flex; gap: 24px; margin-top: 38px; color: #8da5bf; font-size: .82rem; }
.hero__meta span { display: flex; align-items: center; gap: 9px; }
.hero__meta span::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--cyan); transform: rotate(45deg); }

.section { padding: 110px 0; }
.section--white { background: var(--surface); }
.section--soft { background: var(--surface-soft); }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: 1fr .8fr; gap: 72px; align-items: end; }
.section-heading h2, .page-hero h1, .product-intro h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.section-heading p:not(.eyebrow) { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.05rem; }

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.product-card__visual { display: grid; place-items: center; min-height: 520px; padding: 46px; background: linear-gradient(145deg, #eaf4ff, #f8fbff); }
.product-card__visual img { width: 100%; border-radius: 22px; box-shadow: 0 24px 60px rgba(5, 32, 66, .24); }
.product-card__body { padding: clamp(34px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.product-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.product-card h3 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.product-card__body > p { margin: 24px 0; color: var(--ink-soft); font-size: 1.05rem; }
.status-dot { white-space: nowrap; padding: 7px 10px; border: 1px solid #b8d5f4; border-radius: 999px; color: #2b5e93; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.platform-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #b7d4f2; border-radius: 999px; color: #125caa; background: #f3f9ff; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.platform-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.feature-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.feature-cloud li { padding: 7px 11px; border-radius: 8px; color: #294c72; background: #edf5fd; font-size: .78rem; font-weight: 700; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.8); }
.principle__number { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.principle h3 { margin: 32px 0 10px; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -130px; top: -260px; border-radius: 50%; background: rgba(16, 119, 255, .26); filter: blur(40px); }
.cta-band__inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 72px 0; }
.cta-band h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.2rem); letter-spacing: -.04em; }
.cta-band p { margin: 10px 0 0; color: #aebed1; }

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 170px 0 90px;
  color: #fff;
  background: radial-gradient(circle at 80% 35%, #0c3e7d 0, transparent 32%), var(--navy-950);
}
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(41, 158, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 158, 255, .2) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to left, #000, transparent 75%); }
.page-hero__inner { position: relative; }
.page-hero p:not(.eyebrow) { max-width: 650px; margin: 22px 0 0; color: #b8c9dc; font-size: 1.1rem; }

.product-hero { min-height: 620px; display: flex; align-items: center; padding: 130px 0 68px; color: #fff; background: radial-gradient(circle at 75% 38%, #0b3d7e 0, transparent 38%), var(--navy-950); }
.product-hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.product-intro p:not(.eyebrow) { color: #b8c9dc; font-size: 1.1rem; }
.product-intro .button-row { margin-top: 30px; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }
.product-hero__visual img { border-radius: 24px; box-shadow: 0 35px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(92, 180, 255, .34); }

.feature-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; border-radius: 20px; overflow: hidden; background: var(--line); list-style: none; }
.feature-index li { min-height: 116px; display: flex; align-items: center; gap: 18px; padding: 26px; background: #fff; font-weight: 750; }
.feature-index span { color: var(--blue); font-size: .72rem; letter-spacing: .12em; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 16px 45px rgba(17, 51, 91, .07); }
.capability-card__number { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.capability-card h3 { margin: 26px 0 10px; font-size: 1.3rem; }
.capability-card p { min-height: 76px; margin: 0 0 22px; color: var(--ink-soft); font-size: .92rem; }
.capability-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.capability-card li { padding: 6px 9px; border-radius: 7px; color: #294c72; background: #edf5fd; font-size: .73rem; font-weight: 750; }

.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.compare-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.compare-card h3 { margin: 0 0 22px; font-size: 1.1rem; }
.compare-visual { min-height: 260px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; align-items: center; padding: 28px; border-radius: 14px; background: #edf4fb; }
.compare-visual span { display: block; height: 82px; border: 2px solid #91b5dd; border-radius: 8px; background: #fff; }
.compare-card--after .compare-visual span { height: 104px; border-color: #18aee6; background: linear-gradient(145deg, #fff, #e6f8ff); }
.compare-card p { margin-bottom: 0; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.gallery figure { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; border-radius: 14px; }
.gallery figcaption { margin-top: 16px; color: var(--ink-soft); font-size: .82rem; }

.video-shell { overflow: hidden; aspect-ratio: 16/9; border-radius: var(--radius-lg); background: #07172c; box-shadow: var(--shadow); }
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.video-page { min-height: 100vh; color: #fff; background: radial-gradient(circle at 72% 20%, rgba(20,110,255,.24), transparent 34%), var(--navy-950); }
.video-page .site-header { position: relative; }
.video-page__main { min-height: calc(100vh - 83px); display: grid; align-items: center; padding: 58px 0 72px; }
.video-page__heading { max-width: 760px; margin-bottom: 30px; }
.video-page__heading h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.video-page__heading p:not(.eyebrow) { max-width: 620px; margin: 18px 0 0; color: #aebed1; }
.video-page__player { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(121,190,255,.28); border-radius: 22px; background: #000; box-shadow: 0 34px 100px rgba(0,0,0,.46); }
.video-page__player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-page__actions { margin-top: 24px; }
.video-placeholder { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; gap: 20px; padding: 42px; color: #fff; background-image: linear-gradient(180deg, transparent 30%, rgba(2,8,16,.92)), var(--video-poster); background-size: cover; background-position: center; }
.video-placeholder__play { width: 56px; height: 56px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(5,19,39,.74); }
.video-placeholder__play::after { content: ""; display: block; margin: 18px 0 0 22px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-placeholder strong { font-size: 1.15rem; }
.video-placeholder p { margin: 2px 0 0; color: #aebed1; }
.video-placeholder code { color: #78dcff; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.content-card { padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.content-card h2 { margin: 0 0 14px; font-size: 2rem; letter-spacing: -.03em; }
.content-card h3 { margin: 40px 0 10px; }
.content-card p, .content-card li { color: var(--ink-soft); }
.content-card .button-row { margin-top: 30px; }
.aside-card { padding: 28px; border-radius: var(--radius-md); color: #fff; background: var(--navy-900); }
.aside-card h2 { margin-top: 0; font-size: 1.25rem; }
.aside-card p { color: #aebed1; font-size: .9rem; }
.support-list { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: support; }
.support-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.support-list li::before { counter-increment: support; content: counter(support, decimal-leading-zero); color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }

.notice { padding: 20px; border: 1px solid #bcd4ef; border-radius: 12px; background: #edf6ff; }

.site-footer { color: #fff; background: var(--navy-950); }
.site-footer__main { display: grid; grid-template-columns: 1.3fr repeat(3, .55fr); gap: 56px; padding: 74px 0 54px; }
.site-footer .brand__mark { width: 52px; height: 52px; }
.footer-intro p { max-width: 360px; margin-top: 20px; color: #8499b1; font-size: .9rem; }
.footer-column h2 { margin: 0 0 18px; color: #738da9; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-column a { display: block; width: max-content; margin: 10px 0; color: #b4c4d5; font-size: .88rem; }
.footer-column a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(132,153,177,.18); color: #71869e; font-size: .78rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --content: min(100% - 32px, 720px); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 82px 16px auto; display: none; align-items: stretch; flex-direction: column; gap: 0; margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(4,13,26,.98); box-shadow: 0 24px 70px rgba(0,0,0,.4); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav > a:not(.button) { padding: 13px; }
  .site-nav .button { margin-top: 8px; }
  .hero, .hero__inner { min-height: 560px; }
  .hero::before { background: linear-gradient(90deg, rgba(3,10,20,.98), rgba(3,10,20,.6)), url("/assets/images/hero-editor-grid.png") 68% center / cover no-repeat; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { padding: 18px 0 28px; }
  .section, .section--white, .section--soft { padding: 80px 0; }
  .section-heading--split, .product-card, .product-hero__grid, .content-grid { grid-template-columns: 1fr; }
  .section-heading--split { gap: 12px; }
  .product-card__visual { min-height: auto; padding: 26px; }
  .principles, .feature-index, .capability-grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .product-hero { min-height: auto; padding-top: 125px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand__mark { width: 42px; height: 42px; }
  .brand__wordmark { font-size: 1.08rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .hero__meta { flex-direction: column; gap: 10px; }
  .button-row .button { width: 100%; }
  .product-card__heading { flex-direction: column; }
  .principles, .feature-index, .capability-grid, .compare-grid { grid-template-columns: 1fr; }
  .capability-card p { min-height: auto; }
  .page-hero { min-height: 440px; padding-bottom: 70px; }
  .product-hero__grid { gap: 40px; }
  .video-placeholder { align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 24px; }
  .video-page__main { padding: 42px 0 56px; }
  .video-page__player { border-radius: 14px; }
  .video-placeholder p { display: none; }
  .site-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .footer-intro { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
