/* TKBADA - www.tkbada.com
   Buttons: interaction patterns ported from microkit.co (MIT, github.com/henriquegpb/microkit) */

:root {
  color-scheme: light dark;
  --bg: #f8f5ef;
  --bg-2: #eee8df;
  --surface: rgba(255, 252, 247, .88);
  --surface-solid: #fffcf7;
  --text: #191715;
  --text-2: #514b45;
  --text-3: #6c6258;
  --line: rgba(55, 43, 32, .10);
  --line-strong: rgba(55, 43, 32, .24);
  --brand: #b83b24;
  --brand-2: #962d1b;
  --accent: #ff684a;
  --warm: #885127;
  --success: #65543e;
  --danger: #962d1b;
  --warning: #885127;
  --on-brand: #fffaf5;
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffaf5' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ink: #191715;
  --ink-2: #514b45;
  --on-ink: #f8f5ef;
  --aurora-coral: rgba(255, 104, 74, .17);
  --aurora-copper: rgba(194, 131, 76, .16);
  --aurora-ember: rgba(184, 59, 36, .10);
  --aurora-sand: rgba(223, 175, 126, .22);
  --code-bg: #211d19;
  --code-text: #f1e9dd;
  --code-key: #ff977f;
  --code-string: #dfbf91;
  --code-comment: #b3a598;
  --code-link: #ffc7b5;
  --glass-shadow: 0 1px 0 rgba(255,252,247,.7) inset, 0 20px 50px -20px rgba(55, 43, 32, .20);
  --radius: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grad: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 38%, var(--warm) 72%, var(--brand) 100%);
  --grad-warm: linear-gradient(135deg, var(--warm), var(--brand-2));
  --grad-ink: linear-gradient(135deg, var(--ink), var(--ink-2));
  --grid-line: rgba(55, 43, 32, .055);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --bg-2: #211d19;
    --surface: rgba(38, 33, 29, .88);
    --surface-solid: #26211d;
    --text: #f8f5ef;
    --text-2: #d3c9bd;
    --text-3: #b3a598;
    --line: rgba(248, 245, 239, .10);
    --line-strong: rgba(248, 245, 239, .24);
    --brand: #ff8266;
    --brand-2: #ffa088;
    --accent: #ff684a;
    --warm: #dfaf7e;
    --success: #d2bc93;
    --danger: #ff8266;
    --warning: #dfaf7e;
    --on-brand: #191715;
    --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191715' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --ink: #191715;
    --ink-2: #514b45;
    --on-ink: #f8f5ef;
    --aurora-coral: rgba(255, 104, 74, .16);
    --aurora-copper: rgba(194, 131, 76, .14);
    --aurora-ember: rgba(184, 59, 36, .16);
    --aurora-sand: rgba(223, 175, 126, .10);
    --code-bg: #191715;
    --code-text: #f1e9dd;
    --code-key: #ff977f;
    --code-string: #dfbf91;
    --code-comment: #b3a598;
    --code-link: #ffc7b5;
    --glass-shadow: 0 1px 0 rgba(248,245,239,.06) inset, 0 24px 60px -24px rgba(0, 0, 0, .7);
    --grad: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 38%, var(--warm) 72%, var(--brand) 100%);
    --grad-warm: linear-gradient(135deg, var(--warm), var(--brand-2));
    --grad-ink: linear-gradient(135deg, var(--ink), var(--ink-2));
    --grid-line: rgba(248, 245, 239, .05);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
svg { display: block; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
input::placeholder { color: var(--text-3); opacity: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; }
h2 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 16px; }
.lead { color: var(--text-2); font-size: 18px; max-width: 700px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 0%, transparent); } }

/* scroll progress + header */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); }
header.site { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 12px 0 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--glass-shadow);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand:hover { color: var(--text); }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.logo { width: 36px; height: 36px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 30%, transparent); }
.logo svg { width: 36px; height: 36px; }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; font-size: 15px; }
.menu a:not(.btn-slide) { color: var(--text-2); position: relative; }
.menu a:not(.btn-slide)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.menu a:not(.btn-slide):hover { color: var(--text); }
.menu a:not(.btn-slide):hover::after { transform: scaleX(1); }

/* ===== buttons (microkit) ===== */
.btn-glow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 16px 30px;
  background: var(--grad); background-size: 200% auto; color: var(--on-brand);
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: box-shadow .3s ease, background-position .6s ease;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand-2) 70%, transparent);
}
.btn-glow svg { width: 18px; height: 18px; transition: transform .3s ease; }
.btn-glow:hover, .btn-glow:focus-visible { color: var(--on-brand); background-position: 100% center; box-shadow: 0 6px 32px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-glow:hover svg, .btn-glow:focus-visible svg { transform: translateX(4px); }

.btn-fill {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 15px 30px;
  background: var(--surface); backdrop-filter: blur(10px); color: var(--text);
  font-size: 16px; font-weight: 500; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .22s var(--ease-out), color .28s ease, border-color .28s ease;
}
.btn-fill::before { content: ""; position: absolute; inset: auto 0 0; height: 0; z-index: -1; background: var(--text); transition: height .38s var(--ease-out); }
.btn-fill:hover, .btn-fill:focus-visible { color: var(--bg); border-color: var(--text); }
.btn-fill:hover::before, .btn-fill:focus-visible::before { height: 100%; }

.btn-slide { position: relative; display: inline-flex; align-items: center; overflow: hidden; padding-right: 22px; color: var(--text); font-weight: 600; cursor: pointer; }
.btn-slide span { white-space: nowrap; border-radius: 10px; padding: 8px 14px; background: color-mix(in srgb, var(--brand) 10%, transparent); transition: background-color .3s ease, color .3s ease; }
.btn-slide svg { position: absolute; right: 0; width: 16px; height: 16px; opacity: 0; transform: translateX(-10px); transition: opacity .2s ease, transform .35s var(--ease-out); }
.btn-slide:hover, .btn-slide:focus-visible { color: var(--text); }
.btn-slide:hover span, .btn-slide:focus-visible span { background: var(--brand); color: var(--on-brand); }
.btn-slide:hover svg, .btn-slide:focus-visible svg { opacity: 1; transform: translateX(0); color: var(--brand); }

.btn-underline { display: inline-flex; align-items: center; gap: 14px; color: inherit; cursor: pointer; }
.btn-underline .tile { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--on-ink); transition: background-color .54s var(--ease-out); }
.btn-underline .tile svg { width: 19px; height: 19px; color: var(--ink); transition: transform .54s var(--ease-out); }
.btn-underline .copy { display: grid; gap: 6px; }
.btn-underline .copy b { font-weight: 700; line-height: 1; font-size: 18px; }
.btn-underline .line { height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .54s var(--ease-out); }
.btn-underline:hover .tile, .btn-underline:focus-visible .tile { background: #dfaf7e; }
.btn-underline:hover .tile svg, .btn-underline:focus-visible .tile svg { transform: scale(1.3); }
.btn-underline:hover .line, .btn-underline:focus-visible .line { transform: scaleX(1); }

.btn-glow:focus-visible, .btn-fill:focus-visible, .btn-slide:focus-visible, .btn-underline:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* ===== hero ===== */
.hero { position: relative; min-height: 100vh; padding: 150px 0 90px; overflow: hidden; display: flex; align-items: center; }
.aurora { position: absolute; inset: -20%; z-index: 0; filter: blur(70px); opacity: .75; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: normal; animation: float 18s ease-in-out infinite; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 5%; top: 5%; background: var(--aurora-coral); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 5%; top: 0; background: var(--aurora-copper); animation-delay: -6s; animation-duration: 22s; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 35%; bottom: 0; background: var(--aurora-ember); animation-delay: -12s; animation-duration: 26s; }
.aurora span:nth-child(4) { width: 24vw; height: 24vw; right: 20%; bottom: 10%; background: var(--aurora-sand); animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, -4vw) scale(1.12); }
  66% { transform: translate(-5vw, 5vw) scale(.92); }
}
.gridbg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%); }
.hero .wrap { z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 22px 0 22px; font-weight: 800; letter-spacing: -.035em; }
.rotator { display: grid; justify-items: start; height: 1.14em; overflow: hidden; }
.rotator b { grid-area: 1 / 1; font-weight: 800; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s ease; }
.rotator b.on { transform: translateY(0); opacity: 1; }
.rotator b.off { transform: translateY(-110%); opacity: 0; }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 34px; margin-top: 44px; justify-content: start; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { font-size: 13px; color: var(--text-3); }

/* hero dashboard mock */
.stage { perspective: 1400px; }
.dash {
  position: relative; transform: rotateY(-14deg) rotateX(8deg) rotateZ(1deg); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  backdrop-filter: blur(18px); box-shadow: var(--glass-shadow), 0 60px 120px -40px color-mix(in srgb, var(--brand-2) 45%, transparent);
}
.stage:hover .dash { transform: rotateY(-4deg) rotateX(3deg); }
.dash-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dash-top i:nth-child(1) { background: var(--accent); } .dash-top i:nth-child(2) { background: var(--warm); } .dash-top i:nth-child(3) { background: var(--success); }
.dash-top span { margin-left: 10px; font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tile.kpi small { display: block; font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tile.kpi .bar { height: 6px; border-radius: 6px; margin-top: 12px; background: var(--bg-2); overflow: hidden; }
.tile.kpi .bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); width: var(--w); animation: grow 2.4s var(--ease-out) both; }
@keyframes grow { from { width: 0; } }
.tile.kpi .spark { margin-top: 10px; height: 28px; }
.tile.wide { grid-column: span 3; }
.tile.two { grid-column: span 2; }
.chart-title { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 8px; }
.chart-title em { font-style: normal; color: var(--success); }
.line-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3s var(--ease-out) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); height: var(--h); animation: rise 1.6s var(--ease-out) both; animation-delay: calc(var(--d) * 90ms); }
@keyframes rise { from { height: 0; } }
.alert { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.alert + .alert { margin-top: 8px; }
.alert b { font-weight: 600; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.floater {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--glass-shadow); font-size: 13px; font-weight: 600;
  animation: bob 6s ease-in-out infinite;
}
.floater small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); }
.floater .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--on-brand); }
.floater .ic svg { width: 17px; height: 17px; }
.f1 { left: -34px; bottom: 60px; transform: translateZ(60px); }
.f2 { right: -26px; top: 70px; animation-delay: -3s; transform: translateZ(80px); }
@keyframes bob { 50% { translate: 0 -12px; } }

/* marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: var(--text-2); white-space: nowrap; letter-spacing: -.01em; }
.track span svg { width: 20px; height: 20px; color: var(--brand); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
section.block { position: relative; padding: 130px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-grid p { color: var(--text-2); font-size: 17px; margin-bottom: 16px; }
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); box-shadow: var(--glass-shadow); }
.company { padding: 30px; position: relative; overflow: hidden; }
.company::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.company h3 { font-size: 19px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.company h3 svg { width: 22px; height: 22px; color: var(--brand-2); }
.kv { display: grid; gap: 14px; }
.kv div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--text-3); }
.kv dd { font-weight: 600; word-break: break-word; }

/* bento services with spotlight */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; border-radius: 22px; padding: 30px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: transform .5s var(--ease-out), border-color .3s ease;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 45%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(300px circle at var(--x) var(--y), var(--accent), var(--brand) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-6px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; }
.b1 { grid-column: span 4; } .b2 { grid-column: span 2; } .b3 { grid-column: span 2; } .b4 { grid-column: span 4; }
.card .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--on-brand); margin-bottom: 20px; box-shadow: 0 12px 24px -10px currentColor; }
.card .ico svg { width: 24px; height: 24px; color: var(--on-brand); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--text-2); }
.card .num { position: absolute; right: 24px; top: 18px; font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .18; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-2); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); }
.g-coral { background: var(--grad); color: var(--brand); }
.g-copper { background: var(--grad-warm); color: var(--warm); }
.g-ember { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-2); }
.g-ink { --on-brand: var(--on-ink); background: var(--grad-ink); color: var(--ink-2); }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 22px; }
.mini-bars i { flex: 1; border-radius: 5px; background: linear-gradient(180deg, var(--warm), var(--brand)); height: var(--h); opacity: .85; }

/* process timeline */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 2px; background: var(--line-strong); }
.steps::after { content: ""; position: absolute; left: 4%; top: 31px; height: 2px; width: calc(92% * var(--tl, 0)); background: var(--grad); transition: width .2s linear; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .n { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: var(--surface-solid); border: 2px solid var(--line-strong); color: var(--text); transition: all .5s var(--ease-out); }
.step.lit .n { background: var(--grad); border-color: transparent; color: var(--on-brand); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand-2) 70%, transparent); transform: scale(1.06); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* platform flow */
.platform { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.platform > * { min-width: 0; }
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.scope span { font-size: 13px; padding: 7px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.flowchart { padding: 28px; }
.fc-row { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: center; }
.node { text-align: center; padding: 18px 10px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); }
.node .nic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; }
.node .nic svg { width: 22px; height: 22px; color: var(--on-brand); }
.node b { display: block; font-size: 14px; }
.node small { font-size: 12px; color: var(--text-3); }
.pipe { height: 2px; position: relative; background-image: linear-gradient(90deg, var(--brand-2) 50%, transparent 0); background-size: 12px 2px; animation: dash 1s linear infinite; }
.pipe::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--brand-2); }
@keyframes dash { to { background-position: 12px 0; } }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); padding: 14px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

/* commitments */
.commit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.commit .card { padding: 26px; min-height: 0; }
.commit .card h3 { font-size: 17px; }
.commit .card p { font-size: 15px; }
.commit .ico { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px; }
.commit .ico svg { width: 21px; height: 21px; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px); overflow: hidden; transition: border-color .3s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .4s var(--ease-out); color: var(--brand-2); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); }

/* cta */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: 80px 60px; color: var(--on-brand); text-align: center;
  background: radial-gradient(900px 400px at 10% 0%, rgba(25,23,21,.10), transparent 60%), var(--grad); background-size: auto, 200% auto; animation: shine 10s linear infinite; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--on-brand); font-size: clamp(32px, 4.6vw, 56px); }
.cta p { color: var(--on-brand); font-size: 18px; max-width: 620px; margin: 0 auto 34px; }
.cta .contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; align-items: center; }
.cta .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 34px; font-size: 14px; color: var(--on-brand); }
.cta .meta span { display: inline-flex; align-items: center; gap: 8px; }
.cta .meta svg { width: 17px; height: 17px; }

/* footer */
footer.site { padding: 46px 0 56px; color: var(--text-3); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* legal pages */
.doc-hero { position: relative; overflow: hidden; padding: 150px 0 50px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 60px); margin: 18px 0 10px; font-weight: 800; }
.doc-hero p { color: var(--text-3); }
.doc { padding: 20px 0 110px; }
.doc-grid { display: grid; grid-template-columns: 230px 1fr; gap: 56px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 14px; display: grid; gap: 4px; padding: 18px; }
.toc a { color: var(--text-2); padding: 6px 10px; border-radius: 8px; transition: background-color .3s ease, color .3s ease; }
.toc a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.prose { max-width: 780px; padding: 40px 44px; }
.prose h2 { font-size: 23px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }

@media (max-width: 1000px) {
  .hero-grid, .about-grid, .platform { grid-template-columns: 1fr; }
  .stage { max-width: 560px; }
  .dash { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b1, .b2, .b3, .b4 { grid-column: span 2; }
  .commit { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  header.site { top: 8px; }
  .nav { height: 58px; }
  .menu li:not(:last-child) { display: none; }
  .brand small { display: none; }
  .hero { padding: 120px 0 70px; min-height: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat b { font-size: 26px; }
  .f1, .f2 { display: none; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .tile.wide, .tile.two { grid-column: span 2; }
  section.block { padding: 90px 0; }
  .bento, .commit, .steps { grid-template-columns: 1fr; }
  .b1, .b2, .b3, .b4 { grid-column: span 1; }
  .fc-row { grid-template-columns: 1fr; gap: 10px; }
  .pipe { width: 2px; height: 28px; margin: 0 auto; background-image: linear-gradient(180deg, var(--brand-2) 50%, transparent 0); background-size: 2px 12px; }
  .pipe::after { right: -4px; top: auto; bottom: -8px; border-left-color: transparent; border-top-color: var(--brand-2); }
  .cta { padding: 56px 22px; border-radius: 24px; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .prose { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .line-path { stroke-dashoffset: 0; }
  .btn-fill { transform: none; }
}

/* ===================== app pages: auth / console / docs ===================== */
.menu .nav-ghost { color: var(--text) !important; font-weight: 600; }
.page { position: relative; min-height: 100vh; padding: 150px 0 80px; overflow: hidden; }
.page > .wrap { z-index: 1; }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 460px; gap: 60px; align-items: center; min-height: calc(100vh - 200px); }
.auth-copy h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; margin: 18px 0; }
.auth-copy p { color: var(--text-2); font-size: 18px; max-width: 520px; }
.auth-list { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.auth-list li { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.auth-list svg { width: 20px; height: 20px; color: var(--success); flex: none; }
.auth-card { padding: 34px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--bg-2); margin-bottom: 26px; position: relative; }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 11px; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; border-radius: 10px; transition: color .3s ease; }
.tabs button.on { color: var(--text); }
.tabs .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: var(--surface-solid); box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .45s var(--ease-out); }
.tabs.second .pill { transform: translateX(100%); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input { font: inherit; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text); outline: none; transition: border-color .25s ease, box-shadow .25s ease; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.auth-card .btn-glow { width: 100%; justify-content: center; margin-top: 8px; }
.note { font-size: 13px; color: var(--text-3); margin-top: 16px; text-align: center; }
.alert-box { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-box.show { display: block; }
.alert-box.err { background: color-mix(in srgb, var(--danger) 10%, var(--surface-solid)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-box.ok { background: color-mix(in srgb, var(--success) 12%, var(--surface-solid)); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }

/* console */
.console-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.console-head h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.console-head p { color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi-card { padding: 22px; }
.kpi-card small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.kpi-card b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.panels { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel-card { padding: 26px; }
.panel-card + .panel-card { margin-top: 0; }
.panel-card h2 { font-size: 20px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.panel-card h2 svg { width: 22px; height: 22px; color: var(--brand-2); }
.panel-card .sub { color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); }
.row .meta { flex: 1; min-width: 0; }
.row .meta b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta small { color: var(--text-3); font-size: 13px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.tag.off { background: var(--bg-2); color: var(--text-3); }
.link-btn { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--danger); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.link-btn:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.empty { text-align: center; padding: 26px 16px; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: 14px; }
.inline-form { display: flex; gap: 10px; margin-bottom: 14px; }
.inline-form input { flex: 1; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text); }
.inline-form .btn-glow { padding: 12px 20px; font-size: 15px; }
.secret { display: none; margin: 4px 0 16px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--warning) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }
.secret.show { display: block; }
.secret p { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline code { flex: 1; overflow-x: auto; white-space: nowrap; }
table.calls { width: 100%; border-collapse: collapse; font-size: 14px; }
table.calls th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 8px 10px; }
table.calls td { padding: 10px; border-top: 1px solid var(--line); color: var(--text-2); }
table.calls td code { font-size: 13px; }
.status-ok { color: var(--success); font-weight: 700; } .status-err { color: var(--danger); font-weight: 700; }

/* code */
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
:not(pre) > code { font-size: .88em; padding: 2px 7px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
pre.code { position: relative; padding: 18px 84px 18px 20px; border-radius: 14px; background: var(--code-bg); color: var(--code-text); font-size: 13.5px; line-height: 1.7; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); margin: 14px 0; }
pre.code .k { color: var(--code-key); } pre.code .s { color: var(--code-string); } pre.code .c { color: var(--code-comment); } pre.code .u { color: var(--code-link); }
.copy-btn { position: absolute; top: 10px; right: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--code-text); font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: background .2s ease; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
.copyline .copy-btn { position: static; border-color: var(--line-strong); background: var(--surface-solid); color: var(--text); }

/* docs */
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 44px; }
.docs-nav { position: sticky; top: 110px; align-self: start; padding: 18px; display: grid; gap: 2px; font-size: 14px; max-height: calc(100vh - 140px); overflow: auto; }
.docs-nav .h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 12px 10px 6px; }
.docs-nav a { color: var(--text-2); padding: 7px 10px; border-radius: 8px; transition: background-color .25s ease, color .25s ease; }
.docs-nav a:hover, .docs-nav a.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.docs-body { min-width: 0; padding: 40px 46px; }
.docs-body h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.docs-body h2 { font-size: 26px; margin: 46px 0 12px; padding-top: 10px; scroll-margin-top: 110px; }
.docs-body h3 { font-size: 18px; margin: 26px 0 8px; }
.docs-body p, .docs-body li { color: var(--text-2); }
.docs-body p + p { margin-top: 10px; }
.docs-body ul, .docs-body ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.docs-body th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.docs-body td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.callout { padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 8%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); color: var(--text-2); margin: 16px 0; }
.method { display: inline-block; min-width: 50px; text-align: center; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.method.get { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.method.post { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.ref-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.ref-tools input { flex: 1; min-width: 220px; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text); }
.ref-count { align-self: center; color: var(--text-3); font-size: 14px; }
.ref-group { margin-top: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); overflow: hidden; }
.ref-group > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 17px; }
.ref-group > summary::-webkit-details-marker { display: none; }
.ref-group > summary span { font-size: 13px; font-weight: 600; color: var(--text-3); }
.ref-perm { padding: 6px 20px 14px; }
.ref-perm h4 { font-size: 13px; color: var(--brand-2); margin: 12px 0 6px; font-weight: 700; }
.ref-api { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.ref-api:hover { background: var(--bg-2); }
.ref-api code { background: none !important; border: 0 !important; padding: 0 !important; color: var(--text); word-break: break-all; }

@media (max-width: 1000px) {
  .auth, .panels, .docs { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .docs-nav { position: static; max-height: none; }
}
@media (max-width: 680px) {
  .docs-body { padding: 26px 18px; }
  .auth-card { padding: 24px; }
  .inline-form { flex-direction: column; }
}

/* ===================== auth v2: register / login / reset ===================== */
.auth-card h2 { font-size: 26px; margin: 0 0 6px; }
.auth-card .sub { color: var(--text-3); font-size: 14px; margin-bottom: 22px; }
.auth-card .sub a { font-weight: 600; }
.steps-mini { display: grid; gap: 14px; margin-top: 30px; counter-reset: s; }
.steps-mini li { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.steps-mini li::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--on-brand); background: var(--grad); }
.steps-mini b { display: block; color: var(--text); }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; min-width: 0; }
.input-group .btn-send { flex: none; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; padding: 0 16px; border-radius: 12px; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; white-space: nowrap; }
.input-group .btn-send:hover:not(:disabled) { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.input-group .btn-send:disabled { color: var(--text-3); cursor: not-allowed; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font-size: 22px; font-weight: 800; padding: 12px 0; letter-spacing: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 6px; border-radius: 8px; }
.pw-eye:hover { color: var(--text); }
.pw-eye svg { width: 20px; height: 20px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.meter i { height: 5px; border-radius: 5px; background: var(--bg-2); transition: background .3s ease; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--warning); }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--success); }
.meter[data-s="4"] i { background: linear-gradient(90deg, var(--success), var(--warm)); }
.meter-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.reqs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; font-size: 13px; }
.reqs li { display: flex; align-items: center; gap: 6px; color: var(--text-3); transition: color .25s ease; }
.reqs li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: all .25s ease; }
.reqs li.ok { color: var(--success); }
.reqs li.ok::before { border-color: var(--success); background: var(--success) var(--check-mark) center/10px no-repeat; }
.hint { font-size: 12.5px; margin-top: 4px; min-height: 18px; }
.hint.ok { color: var(--success); } .hint.bad { color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 6px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 14px; font-size: 14px; }
.btn-glow:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 20px 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 22px !important; font-weight: 800; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.code-input::placeholder { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.pw-rules { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s var(--ease-out), opacity .25s ease; }
.pw-rules > * { min-height: 0; overflow: hidden; }
.pw-rules.open { grid-template-rows: 1fr; opacity: 1; }
.pw-rules-inner { overflow: hidden; }
