/* Grow — website styles (loads after base.css) */

:root {
  --accent-ink: #ffffff;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header-tag { color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(48px, 7vw, 88px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(158,27,34,0.10), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(17,17,17,0.04), transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: 28px; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border: 1px solid var(--ink); border-radius: 50%; }
h1 {
  font-size: clamp(44px, 8.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero-sub { margin-top: 28px; color: var(--ink); }
.hero-body { margin-top: 28px; max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

/* Hero visual: abstract platform console */
.console {
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--ink);
  color: #e9e9e4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.45);
}
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #2a2a28; color: #8a8a86; }
.console-bar .lights { display: flex; gap: 6px; }
.console-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #333; display: block; }
.console-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: #2a2a28; }
.panel { background: var(--ink); padding: 22px; min-width: 0; }
.panel .mono { color: #8a8a86; margin-bottom: 14px; display: block; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars span { flex: 1; background: #2e2e2b; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.bars span.hi { background: var(--accent-bright); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.feed { list-style: none; display: grid; gap: 12px; font-family: var(--mono); font-size: 12.5px; }
.feed li { display: flex; gap: 10px; align-items: baseline; opacity: 0; animation: fade .5s ease forwards; }
.feed li:nth-child(1) { animation-delay: .4s; }
.feed li:nth-child(2) { animation-delay: .9s; }
.feed li:nth-child(3) { animation-delay: 1.4s; }
.feed li:nth-child(4) { animation-delay: 1.9s; }
.feed .tag { color: var(--accent-bright); flex-shrink: 0; }
.feed .txt { color: #c9c9c3; }
@keyframes fade { to { opacity: 1; } }
.prompt { padding: 16px 22px; border-top: 1px solid #2a2a28; font-family: var(--mono); font-size: 13px; color: #c9c9c3; }
.prompt b { color: var(--accent-bright); font-weight: 500; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-bright); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--surface); }
.marquee-label { text-align: center; color: var(--ink-3); margin-bottom: 16px; }
.track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.track span { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.track span::after { content: "/"; color: var(--line); font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
.section-head .mono { color: var(--ink-3); }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.section-intro { color: var(--ink-2); max-width: 560px; font-size: 18px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: 32px 32px 40px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 32px; }
.principle:last-child { border-right: 0; padding-right: 0; }
.principle .num { display: flex; justify-content: space-between; color: var(--ink-3); margin-bottom: 48px; }
.principle .num b { color: var(--ink); font-weight: 500; }
.principle h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 16px; }
.principle p { color: var(--ink-2); font-size: 16px; }

/* Platform grid */
.platform { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 20px; transition: background .2s ease; }
.card:hover { background: #fafaf7; }
.card-visual { height: 150px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 .mono { color: var(--ink-3); font-size: 11px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Card visuals: mini product UIs ---------- */
.card-visual { height: 200px; padding: 14px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 14px 14px; }
.mini { width: 100%; max-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: 0 14px 28px -18px rgba(0,0,0,.35); }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-head .mono { font-size: 10px; color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; color: var(--ink-2); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); animation: blink 1.4s steps(1) infinite; }

/* Intelligence */
.ai-q { margin-left: auto; width: fit-content; max-width: 90%; background: var(--ink); color: #f4f4f2; font-size: 11.5px; line-height: 1.35; padding: 7px 10px; border-radius: 10px 10px 2px 10px; margin-bottom: 10px; }
.ai-a { display: flex; gap: 8px; }
.spark { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 0; flex-shrink: 0; display: grid; place-items: center; }
.spark svg { width: 10px; height: 10px; }
.ai-lines { flex: 1; display: grid; gap: 6px; padding-top: 4px; }
.ai-lines i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--line) 0%, #f1f1ec 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.chips span { font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 20px; padding: 3px 8px; color: var(--ink-2); }
.chips span:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Connect */
.v-connect { position: relative; width: 240px; height: 158px; }
.nfc-tag { position: absolute; left: 18px; top: 34px; width: 78px; height: 78px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.nfc-tag b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: var(--accent-bright); }
.ring { position: absolute; inset: -10px; border: 1.5px solid var(--ink); border-radius: 50%; opacity: 0; animation: ring 2.6s ease-out infinite; }
.ring.r2 { animation-delay: 1.3s; }
@keyframes ring { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
.phone { position: absolute; right: 16px; top: 4px; width: 82px; height: 140px; border: 2px solid var(--ink); border-radius: 15px; background: var(--surface); padding: 9px 7px; animation: tap 2.6s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateX(0) rotate(-8deg); } 35%, 60% { transform: translateX(-22px) rotate(-8deg); } }
.ph-bar { height: 22px; border-radius: 5px; background: var(--accent); margin-bottom: 8px; display: flex; align-items: center; padding: 0 6px; }
.ph-bar span { font-family: var(--mono); font-size: 7.5px; letter-spacing: .06em; color: #fff; }
.ph-line { height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.ph-ok { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); margin: 12px auto 0; display: grid; place-items: center; }
.ph-ok svg { width: 14px; height: 14px; }
.toast { position: absolute; left: 4px; bottom: 2px; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px 4px 8px; font-family: var(--mono); font-size: 10px; color: var(--ink); box-shadow: 0 8px 16px -10px rgba(0,0,0,.3); animation: toast 2.6s ease infinite; }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); }
@keyframes toast { 0%, 38% { opacity: 0; transform: translateY(6px); } 50%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Insights */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.kpis div { border: 1px solid var(--line); border-radius: 6px; padding: 6px 7px; }
.kpis .mono { display: block; font-size: 9px; color: var(--ink-3); letter-spacing: .06em; }
.kpis b { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.kpis em { font-style: normal; font-family: var(--mono); font-size: 9px; color: #fff; background: var(--accent); border-radius: 3px; padding: 0 3px; margin-left: 3px; vertical-align: 2px; }
.ins-chart { width: 100%; height: 46px; display: block; }
.ins-chart .area { fill: var(--accent); opacity: .16; }
.ins-chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s ease forwards .3s; }
.ins-chart .fc { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 4; }
.ins-chart .grid-l { stroke: var(--line); stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Performance */
.perf-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.perf-ring { width: 54px; height: 54px; flex-shrink: 0; }
.perf-ring .trk { fill: none; stroke: var(--line); stroke-width: 6; }
.perf-ring .val { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transform: rotate(-90deg); transform-origin: 27px 27px; animation: ringfill 1.8s cubic-bezier(.2,.8,.2,1) forwards .3s; }
@keyframes ringfill { to { stroke-dashoffset: 38.7; } }
.perf-ring text { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: var(--ink); }
.perf-top .mono { display: block; font-size: 10px; color: var(--ink-3); }
.perf-top strong { font-size: 13px; font-weight: 600; }
.prog { display: grid; gap: 8px; }
.prog div { white-space: nowrap; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-2); }
.prog i { display: block; height: 7px; border-radius: 4px; background: var(--bg); overflow: hidden; position: relative; }
.prog i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--ink); border-radius: 4px; transform-origin: left; animation: barfill 1.6s cubic-bezier(.2,.8,.2,1) both .4s; }
.prog div:first-child i::after { background: var(--accent); }
@keyframes barfill { from { transform: scaleX(0); } }

/* Mobile */
.v-mobile { position: relative; width: 240px; height: 158px; }
.win { position: absolute; left: 0; top: 10px; width: 186px; height: 126px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 9px; overflow: hidden; }
.win-bar { height: 16px; border-bottom: 1px solid var(--line); display: flex; gap: 4px; align-items: center; padding: 0 7px; }
.win-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: block; }
.win-body { display: grid; grid-template-columns: 34px 1fr; height: calc(100% - 16px); }
.win-side { background: var(--ink); padding: 8px 6px; display: grid; gap: 6px; align-content: start; }
.win-side i { display: block; height: 4px; border-radius: 2px; background: #3a3a37; }
.win-side i:first-child { background: var(--accent-bright); }
.win-main { padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.win-main i { display: block; height: 28px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.win-main i.wide { grid-column: span 2; height: 34px; background: linear-gradient(to top, rgba(158,27,34,.22) 0 40%, var(--bg) 40%); }
.phone2 { position: absolute; right: 0; bottom: 0; width: 70px; height: 128px; background: var(--surface); border: 2px solid var(--ink); border-radius: 13px; padding: 8px 6px; box-shadow: -10px 12px 24px -14px rgba(0,0,0,.45); }
.phone2 .ph-bar { height: 18px; margin-bottom: 7px; }
.row { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.row b { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); flex-shrink: 0; }
.row:nth-child(2) b { background: var(--accent); }
.row i { display: block; flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.sync { position: absolute; left: 150px; top: 0; font-family: var(--mono); font-size: 9.5px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 20px; padding: 2px 7px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* Integrations */
.v-int { width: 240px; height: 158px; }
.v-int .link { stroke: var(--ink); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; animation: flow 1.1s linear infinite; }
.v-int .link.in { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.v-int .node rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.v-int .node text { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; fill: var(--ink); }
.v-int .hub { fill: var(--accent); stroke: none; }
.v-int .halo { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .25; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.why .mono { color: var(--ink-3); }
.why-text p { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.why-text p + p { margin-top: 28px; color: var(--ink-2); }

/* Technology */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.tech div { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.tech div + div { padding-left: 24px; }
.tech div:last-child { border-right: 0; }
.tech .mono { color: var(--ink-3); display: block; margin-bottom: 18px; }
.tech h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }

/* Closing */
.closing { background: var(--ink); color: #f4f4f2; padding: clamp(96px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; background: radial-gradient(circle, rgba(224,71,78,.28), transparent 65%); }
.closing h2 { font-size: clamp(40px, 7.4vw, 108px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 800; text-transform: uppercase; max-width: 16ch; position: relative; }
.closing .mono { color: #8a8a86; display: block; margin-bottom: 32px; position: relative; }

footer { background: var(--ink); color: #8a8a86; border-top: 1px solid #2a2a28; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; gap: 16px; }
footer .logo { color: #f4f4f2; font-size: 22px; }
footer .logo i { background: var(--accent-bright); width: 7px; height: 7px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .feed li { opacity: 1; }
  .ins-chart .line { stroke-dashoffset: 0; }
  .perf-ring .val { stroke-dashoffset: 38.7; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .tech div:nth-child(2) { border-right: 0; }
  .tech div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .tech div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .header-tag { display: none; }
  .section-head, .why { grid-template-columns: 1fr; gap: 20px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle .num { margin-bottom: 24px; }
  .console-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 1fr; }
  .tech div, .tech div + div { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .tech div:first-child { border-top: 0; }
  footer .wrap { flex-direction: column; justify-content: center; height: auto; padding-top: 24px; padding-bottom: 24px; }
}
