/* =====================================================================
   SiNotch "Prism" look: loaded after styles.css.
   One system for the whole site, built around the glass prism hero:
   - near-black space with drifting stardust (main.js)
   - serif display headings in a silver gradient, spectral hairlines
   - smoked-glass panels with bright liquid-glass rims and a lavender glow under the cursor
   Ideas taken from free motionsites.ai designs: Halo Prism (hero), Power AI (liquid-glass rims,
   gradient hairlines, gradient type), Facet Glass (smoked glass, cursor glow, tilt), AI Runtime
   (glowing horizon), Agent Wave (light waves), Digitwist (light bars), Halftone FAQ (dots) and
   Shipcraft / Driftbar footers (big wordmark).
   ===================================================================== */

:root {
  --bg: #07060d;
  --bg-2: #0d0b16;
  --panel: rgba(255, 255, 255, .028);
  --panel-solid: #100e19;
  --line: rgba(255, 255, 255, .09);
  --ink: #f2f1f6;
  --ink-2: rgba(236, 234, 246, .66);
  --ink-3: rgba(236, 234, 246, .42);
  --lav: #b9abff;
  --grad: linear-gradient(90deg, #a5b4fc 0%, #c4b5fd 32%, #f0abfc 62%, #fcd9a0 100%);
  --brand: linear-gradient(135deg, #7c83ff, #b9abff 55%, #f0abfc);
  --spectrum: linear-gradient(90deg, #ff6b6b, #ffb36b, #f9f871, #6bf3a0, #5fd4ff, #8d7bff, #d77bff);
  --silver: linear-gradient(180deg, #ffffff 0%, #e4e3ea 45%, #a9a8b4 100%);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Display", system-ui, sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Text", system-ui, sans-serif;
}

body {
  font-family: var(--text);
  letter-spacing: -.011em;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(120, 100, 220, .16) 0%, transparent 60%),
    var(--bg);
}
#rain { opacity: 1; }

::selection { background: rgba(185, 171, 255, .35); color: #fff; }

/* ---------------------------------------------------------------- type */
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
 
  background: var(--silver);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: .08em; /* keeps descenders inside the clipped gradient */
}
h2 .grad-text, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 em, h2 i { font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--text);
  font-weight: 600; font-size: .74rem; letter-spacing: .24em;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: var(--spectrum); box-shadow: 0 0 10px rgba(185, 171, 255, .7);
}
.section-head .eyebrow::after { /* centred heads get the line on both sides */
  content: ""; width: 26px; height: 1px; flex: none;
  background: var(--spectrum); box-shadow: 0 0 10px rgba(185, 171, 255, .7);
}
.section-head p, .split-text p { color: var(--ink-2); }

/* Power AI style hairline between sections */
main > section { position: relative; }
main > section:not(.hero):not(.light):not(.new-sec):not(.demo)::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1100px, 88%); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}

/* ---------------------------------------------------------------- liquid glass */
.card, .price-card, .stats-row > div, .dl-card, .new-card, .pro-form, details, .mode, .steps div, .vis-modes {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border-color: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 90px -50px rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
/* the bright rim: light catches the top and bottom edges (Power AI's liquid glass) */
.card::after, .price-card::after, .stats-row > div::after, .dl-card::after, .new-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .1) 22%, rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .08) 82%, rgba(255, 255, 255, .22) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.stats-row > div, .dl-card, .new-card { position: relative; }
/* Facet's lavender glow under the cursor */
.card::before {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 171, 255, .15), transparent 48%);
}
.price-card::before, .stats-row > div::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 171, 255, .14), transparent 50%);
}
.price-card:hover::before, .stats-row > div:hover::before { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

.card h3 { font-weight: 700; letter-spacing: -.015em; }

/* ---------------------------------------------------------------- buttons + nav */
.btn-primary {
  color: #0b0a12; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 14px 44px -14px rgba(185, 171, 255, .75);
}
.btn-primary:hover { box-shadow: 0 0 0 1px #fff, 0 18px 60px -12px rgba(185, 171, 255, .9), 0 0 40px -6px rgba(240, 171, 252, .45); }
.btn-ghost {
  background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }

.nav {
  background: rgba(10, 9, 16, .5);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav.scrolled { background: rgba(10, 9, 16, .82); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 60px -24px rgba(0, 0, 0, .9); }
.links .nav-pro { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.chip { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }

/* ---------------------------------------------------------------- marquee */
.marquee { border: 0; background: none; padding: 18px 0; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
}
.marquee::before { top: 0; } .marquee::after { bottom: 0; }
.track span {
  background: none; border: 0; color: var(--ink-3); font-weight: 500; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 14px;
}
.track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lav); opacity: .55; box-shadow: 0 0 8px var(--lav); }

/* ---------------------------------------------------------------- demo: a dark desk with a glowing horizon (AI Runtime) */
.bezel {
  background: linear-gradient(160deg, #1b1a24, #09080e);
  border-color: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 60px 140px -40px rgba(124, 110, 255, .45), 0 0 0 1px rgba(0, 0, 0, .6);
}
.stand { background: linear-gradient(180deg, #17161f, #0a090f); }
.screen {
  background:
    radial-gradient(140% 85% at 50% 128%, transparent 59.4%, rgba(255, 255, 255, .95) 60%, rgba(196, 181, 253, .55) 60.7%, rgba(124, 110, 255, .18) 63%, transparent 70%),
    radial-gradient(120% 70% at 50% 120%, rgba(150, 120, 255, .55) 0%, rgba(110, 80, 230, .22) 40%, transparent 62%),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%),
    #05040a;
}
.wall-city { display: none; }

/* ---------------------------------------------------------------- stats: serif numbers */
.stats-row b, .num > span {
  font-family: var(--display); font-weight: 600; letter-spacing: -.05em;
}
.stats-row b { font-size: clamp(3rem, 5.6vw, 4.4rem); }
.num > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- light waves (Agent Wave) behind the AI sections */
.wave-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .9;
  -webkit-mask: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 75%); mask: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 75%); }
.wave-bg svg { position: absolute; left: -10%; top: 50%; width: 120%; height: 70%; transform: translateY(-50%); overflow: visible; }
.wave-bg path { fill: none; stroke: url(#waveInk); stroke-width: 1; animation: waveDrift 14s ease-in-out infinite alternate; }
.wave-bg path:nth-child(3n) { animation-duration: 18s; }
.wave-bg path:nth-child(3n + 1) { animation-duration: 11s; animation-delay: -4s; }
@keyframes waveDrift { to { transform: translateX(-4%) scaleY(1.18); } }
.agents-sec, .claude-sec { isolation: isolate; }

/* ---------------------------------------------------------------- Pro: slow light ribbons (Power AI) + an iridescent Lifetime card */
.pro-sec { isolation: isolate; overflow: hidden; }
.ribbons { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ribbons i {
  position: absolute; left: -20%; width: 140%; height: 180px; border-radius: 50%;
  filter: blur(60px); opacity: .32; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, #6366f1 20%, #a855f7 50%, #fcd34d 80%, transparent);
  animation: ribbon 22s ease-in-out infinite alternate;
}
.ribbons i:nth-child(1) { top: 18%; transform: rotate(-8deg); }
.ribbons i:nth-child(2) { top: 44%; transform: rotate(6deg); opacity: .22; animation-duration: 28s; animation-delay: -9s; }
.ribbons i:nth-child(3) { top: 70%; transform: rotate(-3deg); opacity: .18; animation-duration: 34s; animation-delay: -15s; }
@keyframes ribbon { to { translate: 12% 30px; } }

@property --sheen { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price-card.featured {
  background: linear-gradient(180deg, rgba(252, 211, 77, .07), rgba(168, 85, 247, .05) 55%, rgba(255, 255, 255, .015));
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 100px -40px rgba(168, 85, 247, .6);
}
.price-card.featured::after {
  padding: 1.5px;
  background: conic-gradient(from var(--sheen), #fcd34d, #f0abfc, #8d7bff, #5fd4ff, #6bf3a0, #fcd34d);
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { --sheen: 360deg; } }
.pc-price span { font-family: var(--display); font-weight: 650; letter-spacing: -.045em; font-size: clamp(2.8rem, 4.8vw, 3.4rem); }

/* ---------------------------------------------------------------- download: light bars (Digitwist) */
.download { background: none; }
.dl-city::before { display: none; }
.dl-city .city, .dl-city .neon { display: none; }
.bars {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: radial-gradient(75% 70% at 50% 62%, #000 25%, transparent 78%); mask: radial-gradient(75% 70% at 50% 62%, #000 25%, transparent 78%);
}
.bars::before { /* the columns */
  content: ""; position: absolute; inset: -10% 0;
  background:
    repeating-linear-gradient(90deg, rgba(124, 131, 255, 0) 0 22px, rgba(124, 131, 255, .55) 30px, rgba(196, 181, 253, .95) 33px, rgba(124, 131, 255, .55) 36px, rgba(124, 131, 255, 0) 44px 66px);
  filter: blur(3px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
  animation: barsDrift 30s linear infinite;
  opacity: .55;
}
.bars::after { /* a band of light sweeping up the columns */
  content: ""; position: absolute; left: 0; right: 0; height: 40%; top: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: barsSweep 7s cubic-bezier(.5, 0, .3, 1) infinite;
  mix-blend-mode: overlay;
}
@keyframes barsDrift { to { background-position: 660px 0; } }
@keyframes barsSweep { to { top: -40%; } }
.horizon { /* glow the card stands on */
  position: absolute; left: 50%; bottom: 12%; width: min(1100px, 120%); height: 220px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(150, 130, 255, .45), transparent 70%); filter: blur(30px);
}
.dl-card {
  background: linear-gradient(180deg, rgba(14, 12, 24, .82), rgba(9, 8, 15, .78));
  border-color: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 50px 140px -40px rgba(124, 110, 255, .55);
}
.dl-card img { filter: drop-shadow(0 18px 36px rgba(124, 110, 255, .55)); }
.steps span { background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }

/* ---------------------------------------------------------------- FAQ: halftone dots */
.faq { isolation: isolate; }
.faq .halftone {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(185, 171, 255, .55) 1.1px, transparent 1.6px);
  background-size: 11px 11px;
  -webkit-mask: radial-gradient(55% 38% at 50% 12%, #000, transparent 75%); mask: radial-gradient(55% 38% at 50% 12%, #000, transparent 75%);
  opacity: .45;
}
details { border-radius: 16px; transition: border-color .25s, background .25s; }
details:hover { border-color: rgba(255, 255, 255, .14); }
details[open] { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border-color: rgba(185, 171, 255, .25); }
summary { font-weight: 600; }
summary svg { color: var(--lav); }

/* ---------------------------------------------------------------- forms (feedback, Pro key) */
input, textarea, select {
  background: rgba(255, 255, 255, .03) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}
input:focus, textarea:focus, select:focus { border-color: rgba(185, 171, 255, .55) !important; box-shadow: 0 0 0 4px rgba(185, 171, 255, .12); outline: none; }

/* ---------------------------------------------------------------- footer: big wordmark (Shipcraft / Driftbar) */
.site-foot { position: relative; z-index: 1; overflow: hidden; margin-top: 40px; }
.site-foot::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1100px, 88%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}
.foot-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 28px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.foot-brand p { color: var(--ink-3); margin: 14px 0 0; max-width: 300px; font-size: .95rem; }
.foot-col h4 { margin: 0 0 14px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; font-size: .95rem; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-base {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: .85rem;
}
.foot-base a { color: var(--ink-2); text-decoration: none; }
.foot-base a:hover { color: #fff; }
.foot-word { text-align: center; margin: 24px 0 -2.2vw; padding: 0 3vw; user-select: none; line-height: 0; }
.foot-word img {
  width: 100%; max-width: 1400px; height: auto; display: inline-block; opacity: .55;
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 92%); mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 92%);
  filter: drop-shadow(0 0 40px rgba(185, 171, 255, .25));
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wave-bg path, .ribbons i, .bars::before, .bars::after, .price-card.featured::after { animation: none !important; }
}

/* ---------------------------------------------------------------- hero, on the same black */
.hero { background: radial-gradient(70% 60% at 70% 55%, rgba(124, 110, 255, .08), transparent 70%), var(--bg); }
.hero::before { background: radial-gradient(60% 75% at 12% 52%, rgba(7, 6, 13, .84), rgba(7, 6, 13, .5) 45%, transparent 75%); }
.hero .lede span + span { color: var(--ink-2); }

/* ---------------------------------------------------------------- tuning after the first look */
.split-text h2, .new-card h2 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); }
.wave-bg { opacity: .32; }
.split .wave-bg, .wave-bg { -webkit-mask: radial-gradient(55% 55% at 68% 50%, #000 20%, transparent 72%); mask: radial-gradient(55% 55% at 68% 50%, #000 20%, transparent 72%); }
.screen {
  background:
    radial-gradient(140% 85% at 50% 118%, transparent 59.4%, rgba(255, 255, 255, .95) 60%, rgba(196, 181, 253, .55) 60.7%, rgba(124, 110, 255, .18) 63%, transparent 70%),
    radial-gradient(120% 70% at 50% 110%, rgba(150, 120, 255, .6) 0%, rgba(110, 80, 230, .24) 40%, transparent 62%),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%),
    #05040a;
}
.stats-row b { white-space: nowrap; font-size: clamp(2.6rem, 4.6vw, 3.8rem); }
.faq .halftone { opacity: .75; }

/* ---------------------------------------------------------------- the SiNotch logo: new icon + star wordmark */
.brand img:first-child, .f-brand img:first-child { border-radius: 22%; box-shadow: 0 4px 14px -4px rgba(124, 110, 255, .55); }
.brand-word { height: 21px; width: auto; border-radius: 0 !important; }
.f-brand .brand-word { height: 26px; }
.hero .wordmark img {
  width: clamp(250px, 30vw, 460px); height: auto;
  filter: drop-shadow(0 0 28px rgba(185, 171, 255, .28));
}
