/* Textualy marketing site — luminous ink / focus chamber */
:root {
  --bg: #0B0D14;
  --surface: #141824;
  --surface-2: #1C2233;
  --hairline: #2A3143;
  --text-high: #ECEFF7;
  --text-low: #7E88A3;
  --iris: #7B6CFF;
  --mint: #4FE3A6;
  --coral: #FF6B6B;
  --amber: #FFB454;
  --radius: 18px;
  --maxw: 1100px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--iris); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mint); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient glow background ---------- */
.glow-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow-field::before, .glow-field::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35;
}
.glow-field::before { width: 520px; height: 520px; background: var(--iris); top: -160px; left: -120px; }
.glow-field::after { width: 480px; height: 480px; background: var(--mint); bottom: -180px; right: -140px; opacity: .18; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11,13,20,.72);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text-high); letter-spacing: -.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--iris), var(--mint)); box-shadow: 0 0 16px var(--iris); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-low); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-high); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--iris), #9a8dff);
  color: #fff; box-shadow: 0 8px 30px rgba(123,108,255,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(123,108,255,.6); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text-high); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--iris); color: var(--text-high); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: .82rem; color: var(--text-low); margin-bottom: 28px; letter-spacing: .01em;
}
.badge b { color: var(--mint); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .grad { background: linear-gradient(120deg, var(--iris), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-low); max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .85rem; color: var(--text-low); }

/* ---------- Demo strip (see once -> type) ---------- */
.demo {
  margin: 56px auto 0; max-width: 560px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 36px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.demo .word { font-size: 2rem; font-weight: 700; letter-spacing: .04em; }
.demo .melt span { display: inline-block; animation: melt 3.4s ease-in-out infinite; }
@keyframes melt { 0%,20% { opacity: 1; transform: translateY(0); filter: blur(0); } 55%,100% { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.demo .diff { margin-top: 20px; font-family: "Space Mono", ui-monospace, monospace; font-size: 1.6rem; letter-spacing: .12em; }
.demo .ok { color: var(--mint); }
.demo .bad { color: var(--coral); border-bottom: 2px solid var(--coral); }
.demo .cap { margin-top: 14px; font-size: .85rem; color: var(--text-low); }

/* ---------- Section shell ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--iris); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 12px 0 14px; }
.section-head p { color: var(--text-low); font-size: 1.05rem; }

/* ---------- Features grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(123,108,255,.5); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; background: var(--surface-2); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--text-low); font-size: .96rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step .n { font-family: "Space Mono", monospace; font-size: 2.4rem; font-weight: 700; color: var(--iris); opacity: .55; line-height: 1; }
.step h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.step p { color: var(--text-low); font-size: .96rem; }

/* ---------- Languages ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.lang-pill { background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 10px 20px; font-size: .95rem; color: var(--text-high); }
.lang-pill.more { color: var(--text-low); }

.stats-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin-top: 48px; }
.stat { text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 700; background: linear-gradient(120deg, var(--iris), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-low); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .box {
  background: linear-gradient(135deg, rgba(123,108,255,.14), rgba(79,227,166,.10));
  border: 1px solid var(--hairline); border-radius: 28px; padding: 64px 32px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 16px; }
.cta-band p { color: var(--text-low); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 48px 0 60px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-low); font-size: .95rem; }
.foot-links a:hover { color: var(--text-high); }
.foot-copy { color: var(--text-low); font-size: .85rem; }

/* ---------- Legal / article pages ---------- */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin-bottom: 10px; }
.legal .eff { color: var(--text-low); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; letter-spacing: -.01em; color: var(--text-high); }
.legal h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal p, .legal li { color: #c3c9dc; font-size: 1rem; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text-high); }
.legal .callout { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--mint); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.legal .callout p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-low); font-size: .9rem; margin-bottom: 32px; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  section { padding: 56px 0; }
}
