/* ============================================================
   LUCHOT — две скрижали. Neon-cyber / Solana palette.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* surfaces */
  --bg:        #05060B;
  --bg-2:      #080A12;
  --surface:   #0B0E18;
  --surface-2: #101424;
  --surface-3: #161B30;

  /* lines */
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  /* text */
  --text:       #ECEDF5;
  --text-dim:   #9CA1BC;
  --text-faint: #5C6280;

  /* neon */
  --purple:        #9945FF;
  --purple-bright: #B877FF;
  --green:         #14F195;
  --green-bright:  #5FF8BD;
  --cyan:          #00D9FF;
  --warn:          #FF6B81;

  --grad:      linear-gradient(118deg, #9945FF 0%, #6E5CFF 42%, #14F195 100%);
  --grad-soft: linear-gradient(118deg, rgba(153,69,255,0.16), rgba(20,241,149,0.16));

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background layers */
.bg-field { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-field::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(620px 520px at 16% 8%, rgba(153,69,255,0.20), transparent 60%),
    radial-gradient(680px 560px at 88% 22%, rgba(20,241,149,0.14), transparent 60%),
    radial-gradient(720px 620px at 50% 108%, rgba(110,92,255,0.16), transparent 60%);
  filter: saturate(1.1);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: 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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: 120px 0; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-bright);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 4.4vw, 54px); margin: 18px 0 18px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-dim); max-width: 62ch; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,7,13,0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner { width: 100%; max-width: var(--maxw); padding: 16px 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: #06120C; background: var(--green); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 1px rgba(20,241,149,0.4), 0 8px 26px rgba(20,241,149,0.22);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(20,241,149,0.6), 0 10px 32px rgba(20,241,149,0.34); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 14px 22px; border-radius: var(--r-sm); text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.03);
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.btn-primary {
  border: none; color: #06120C;
  background: var(--grad);
  box-shadow: 0 10px 34px rgba(110,92,255,0.34);
}
.btn-primary:hover { box-shadow: 0 14px 44px rgba(110,92,255,0.5); }

/* ---------- chips & tags ---------- */
.chip {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.02);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip.purple .dot { background: var(--purple-bright); box-shadow: 0 0 8px var(--purple); }

/* ---------- HERO ---------- */
.hero { padding: 168px 0 90px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; background: rgba(255,255,255,0.02);
  margin-bottom: 30px;
}
.hero-badge b { color: var(--green-bright); font-weight: 500; }
.hero h1 { font-size: clamp(54px, 11vw, 150px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.92; }
.hero .tagline { font-family: var(--font-mono); font-size: clamp(13px, 1.6vw, 16px); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); margin-top: 22px; }
.hero .lead { margin: 30px auto 0; text-align: center; font-size: clamp(17px, 1.8vw, 21px); color: var(--text-dim); }
.hero .lead b { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 72px; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--line);
}
.hero-stats .stat { background: var(--bg-2); padding: 26px 18px; text-align: center; }
.hero-stats .num { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.hero-stats .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; }

/* twin tablet glyph behind hero title */
.tablets-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px; z-index: -1; opacity: 0.5; pointer-events: none; }
.tablets-glyph .tb { width: 150px; height: 280px; border-radius: 75px 75px 16px 16px; border: 1px solid var(--line-strong); }
.tablets-glyph .tb.a { box-shadow: inset 0 0 60px rgba(20,241,149,0.12); }
.tablets-glyph .tb.b { box-shadow: inset 0 0 60px rgba(153,69,255,0.14); }

/* ---------- TABLETS (two bots) ---------- */
.tablets { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.tablet {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 120px 120px var(--r-lg) var(--r-lg);
  padding: 56px 40px 44px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s;
}
.tablet::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--accent-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.tablet:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--accent-glow); }
.tablet:hover::before { opacity: 1; }
.tablet.green  { --accent: var(--green);  --accent-grad: linear-gradient(180deg, var(--green), transparent 70%);  --accent-glow: 0 20px 70px rgba(20,241,149,0.18); }
.tablet.purple { --accent: var(--purple-bright); --accent-grad: linear-gradient(180deg, var(--purple-bright), transparent 70%); --accent-glow: 0 20px 70px rgba(153,69,255,0.2); }
.tablet .roman {
  font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: 0.85;
  position: absolute; top: 26px; right: 34px;
}
.tablet .tb-icon { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03); color: var(--accent); margin-bottom: 22px; }
.tablet .tb-user { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent); margin-bottom: 8px; }
.tablet h3 { font-size: 27px; margin-bottom: 6px; }
.tablet .tb-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.tablet p.desc { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.tb-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tb-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text); align-items: flex-start; }
.tb-list li svg { flex: none; margin-top: 3px; color: var(--accent); }
.tb-list li span { color: var(--text-dim); }
.tablet .tb-divider { height: 1px; background: var(--line); margin: 26px 0; }

/* ---------- generic cards / grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--grad-soft); color: var(--green-bright); margin-bottom: 18px; }
.card h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--text-dim); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- comparison table ---------- */
.cmp { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 14.5px; }
.cmp thead th { font-family: var(--font-display); font-weight: 700; text-align: left; padding: 20px 22px; background: var(--surface-2); font-size: 15px; }
.cmp thead th.g { color: var(--green-bright); }
.cmp thead th.p { color: var(--purple-bright); }
.cmp td { padding: 16px 22px; border-top: 1px solid var(--line); color: var(--text-dim); vertical-align: top; }
.cmp td:first-child { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; width: 26%; }
.cmp td.val { color: var(--text); }
.cmp tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- flow / steps ---------- */
.flow-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.flow-head .badge { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.flow-head .badge.g { color: var(--green-bright); border-color: rgba(20,241,149,0.4); }
.flow-head .badge.p { color: var(--purple-bright); border-color: rgba(153,69,255,0.4); }
.flow-head h3 { font-size: 22px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 22px; position: relative; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 44px; bottom: -2px; width: 2px; background: linear-gradient(var(--line-strong), var(--line)); }
.step .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700; border: 1px solid var(--accent, var(--line-strong)); color: var(--accent, var(--text)); background: var(--bg-2); position: relative; z-index: 1; }
.step .body h5 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.step .body p { font-size: 14px; color: var(--text-dim); }
.flow-col.green  { --accent: var(--green); }
.flow-col.purple { --accent: var(--purple-bright); }

/* ---------- architecture diagram ---------- */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.arch-node { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; background: var(--surface); position: relative; }
.arch-node .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.arch-node.bot .tag { color: var(--green-bright); }
.arch-node.user .tag { color: var(--purple-bright); }
.arch-node h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.arch-node p { font-size: 14px; color: var(--text-dim); }
.arch-shared { grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.arch-shared .label { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-right: 8px; }

/* ---------- stack chips ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; background: var(--surface); }
.stack-item .nm { font-family: var(--font-mono); font-weight: 700; font-size: 14.5px; color: var(--text); }
.stack-item .ds { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.stack-item .bd { width: 8px; height: 8px; border-radius: 2px; margin-top: 7px; flex: none; background: var(--grad); }

/* ---------- providers ---------- */
.prov { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.prov-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: var(--surface); }
.prov-card .pn { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.prov-card .pr { font-size: 13.5px; color: var(--text-dim); }
.prov-card .pp { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 14px; }

/* ---------- security ---------- */
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-item { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--surface); }
.sec-item .lock { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--green-bright); }
.sec-item h5 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.sec-item p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 120px 0; position: relative; }
.cta-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 72px 40px; background: radial-gradient(900px 400px at 50% -20%, rgba(110,92,255,0.16), transparent 60%), var(--surface); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }
.cta p { color: var(--text-dim); font-size: 18px; max-width: 52ch; margin: 0 auto 36px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 22px; margin-bottom: 14px; }
.footer .fcol h6 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer .fcol a, .footer .fcol span { display: block; color: var(--text-dim); text-decoration: none; font-size: 14px; margin-bottom: 9px; transition: color .2s; }
.footer .fcol a:hover { color: var(--green-bright); }
.footer-bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ---------- section heading block ---------- */
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head.center .kicker::before { display: none; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .tablets, .grid-2, .arch, .sec-list { grid-template-columns: 1fr; }
  .grid-3, .stack-grid, .prov { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .flow-wrap { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section-pad { padding: 84px 0; }
  .grid-3, .grid-4, .prov, .stack-grid { grid-template-columns: 1fr; }
  .cmp td:first-child { width: 40%; }
  .tablet { border-radius: 90px 90px var(--r-lg) var(--r-lg); padding: 48px 26px 36px; }
  .cta-box { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
