/* =========================================================
   Ivanchenko Sophia — The AI Website Playbook
   One accent (cobalt → ice), one type family, technical field, physical glass
   ========================================================= */
:root {
  --bg: #05060A;
  --bg-2: #0A0C12;
  --card: #10131A;
  --elev: #181C25;
  --text: #F2F4F8;
  --text-2: #9AA3B5;
  --text-3: #5E6677;
  --accent: #B79CFF;        /* lilac chrome */
  --accent-deep: #7A52FF;
  --ice: #E8DEFF;
  --line: rgba(205, 190, 255, .075);
  --line-2: rgba(205, 190, 255, .14);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
main, .foot { position: relative; z-index: 1; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
iframe { border: 0; display: block; background: #0b0b0b; }

.frame { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.frame > *, [class*="__grid"] > * { min-width: 0; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.dim { color: var(--text-3); }
.small { font-size: .82rem; }
.ice { color: var(--ice); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Type: one family, contrast by weight and tone */
.h-xxl, .h-xl, .hero__title { font-weight: 700; letter-spacing: -.05em; line-height: .9; text-transform: uppercase; }
.h-xxl { font-size: clamp(2.6rem, 8.2vw, 8.6rem); }
.h-xl { font-size: clamp(2.2rem, 5.2vw, 5.2rem); }
.thin { font-weight: 300; color: var(--text-2); letter-spacing: -.045em; }
.hero__title .ice, .h-xxl .ice {
  background: linear-gradient(100deg, #F2F4F8 0%, #E8DEFF 40%, #B79CFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.label { display: flex; align-items: center; gap: 10px; color: var(--text-2); margin-bottom: 28px; }
.label::before { content: ""; width: 18px; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.55; color: var(--text-2); max-width: 46ch; margin-top: 24px; }
.caption { color: var(--text-3); margin-top: 14px; }
.cap { margin-bottom: 14px; color: var(--text-2); }

/* =========================================================
   Glass — layered, edge-lit, with grain
   ========================================================= */
.glass {
  position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .012);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(255, 255, 255, .03),
    inset 1px 0 0 rgba(255, 255, 255, .04),
    0 30px 60px -30px rgba(0, 0, 0, .9),
    0 1px 2px rgba(0, 0, 0, .4);
}
.glass::before { /* rim light: bright at the top edge, fading round the sides */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(170deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .05) 28%, rgba(183, 156, 255, .07) 70%, rgba(255, 255, 255, .14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after { /* grain + soft internal reflection */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(110% 70% at 15% -15%, rgba(255, 255, 255, .09), transparent 55%), var(--noise);
  background-size: auto, 160px; opacity: .32; mix-blend-mode: soft-light;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass, .btn--primary, .btn--glass { background: rgba(20, 24, 33, .9); } }

/* Buttons */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 600 .98rem/1.15 var(--sans); letter-spacing: -.01em; text-decoration: none; text-align: center; cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { /* clear glass, brighter rim: leads by light, not by fill */
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06) 55%, rgba(232, 222, 255, .1));
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .24), 0 12px 32px -14px rgba(183, 156, 255, .55);
}
.btn--primary:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .27), rgba(255, 255, 255, .09) 55%, rgba(232, 222, 255, .14)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .34), 0 16px 44px -12px rgba(183, 156, 255, .75); }
.btn--glass {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025));
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 30px -14px rgba(0, 0, 0, .9);
}
.btn--glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.btn.is-disabled { background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: not-allowed; }

/* =========================================================
   Nav + monogram
   ========================================================= */
.nav { position: fixed; top: 22px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav__capsule { pointer-events: auto; width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 8px 0 18px; border-radius: 999px; transition: transform .5s var(--ease); }
.nav.is-hidden .nav__capsule { transform: translateY(-140%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; white-space: nowrap; }
.nav__mark { width: 40px; height: 29px; flex: none; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--text-2); font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: rgba(255, 255, 255, .06); border-radius: 50%; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { pointer-events: auto; width: calc(100% - 24px); margin: 10px auto 0; border-radius: 24px; padding: 10px; display: grid; }
.mnav[hidden] { display: none; }
.mnav a { padding: 15px 16px; text-decoration: none; font-size: 1.15rem; font-weight: 500; border-radius: 14px; }

/* =========================================================
   Sections shared
   ========================================================= */
.sec { padding: clamp(96px, 13vw, 190px) 0; position: relative; }
.sec__head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec__head.split { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.sec__head.split .label { margin-top: .9em; }
.sec__head.center { text-align: center; }
.sec__head.center .label { justify-content: center; }
.sec__head.center .lede { margin-inline: auto; }

/* =========================================================
   01 HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; overflow: hidden; padding: 120px 0 36px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 55% at 72% 45%, rgba(122, 82, 255, .16), transparent 70%), radial-gradient(30% 30% at 80% 60%, rgba(183, 156, 255, .08), transparent 70%); }
.sculpture { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .sculpture { z-index: 1; }
.hero__inner { z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; pointer-events: none; }
.hero__inner a, .hero__buy { pointer-events: auto; }
.hero__meta { display: flex; align-items: center; gap: 10px; color: var(--text); margin: 0 0 auto; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__title { font-size: clamp(3rem, min(8.6vw, 12.5vh), 10.5rem); margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .03em; }
.hero__title .reveal { display: inline-block; }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--text-2); max-width: 44ch; margin: 0; }
.hero__buy { border-radius: 26px; padding: 22px; display: grid; gap: 16px; width: min(540px, 100%); }
.hero__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.hero__price strong { font-size: 1.7rem; font-weight: 600; letter-spacing: -.04em; }
.hero__price .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 6px; align-self: center; }
.hero__ctas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
