/* ==========================================================================
   TypeAssist AI — marketing + support site
   Brand: teal → blue → violet on near-black, matching the app icon.
   ========================================================================== */

:root {
  --bg:        #06070d;
  --bg-2:      #0b0d18;
  --surface:   #10131f;
  --surface-2: #161a29;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #eef1f8;
  --text-dim:  #9aa3bd;
  --text-mute: #6b7391;

  --teal:      #35e0c8;
  --blue:      #5b8bff;
  --indigo:    #5c52e6;
  --violet:    #8d5cf6;

  --grad:      linear-gradient(120deg, var(--teal), var(--blue) 45%, var(--violet));
  --grad-soft: linear-gradient(120deg, rgba(53,224,200,.16), rgba(141,92,246,.16));

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(53, 224, 200, 0.10), transparent 60%),
    radial-gradient(55% 45% at 90% 5%, rgba(141, 92, 246, 0.14), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(91, 139, 255, 0.08), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

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

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

/* ------------------------------------------------------------------ Nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(6, 7, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(91,82,230,.4); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(91, 82, 230, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(91, 82, 230, 0.75); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: 90px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .2px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 800; }
.hero p.lead { margin-top: 22px; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-dim); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-mute); }

.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 6% 12%;
  background: var(--grad);
  filter: blur(70px);
  opacity: .35;
  z-index: -1;
  border-radius: 50%;
}
.phone {
  width: 100%;
  max-width: 320px;
  border-radius: 34px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ Section shell */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
}
.section-head h2 { margin-top: 14px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; font-weight: 800; line-height: 1.1; }
.section-head p { margin-top: 16px; color: var(--text-dim); font-size: 17px; }

/* ------------------------------------------------------------------ Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step .num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  font-weight: 800; font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* ------------------------------------------------------------------ Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 7px; }
.feature p { font-size: 15px; color: var(--text-dim); }

/* ------------------------------------------------------------------ Showcase (alternating) */
.showcase { display: grid; gap: 90px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show-row.reverse .show-visual { order: 2; }
.show-visual { display: flex; justify-content: center; position: relative; }
.show-visual::after {
  content: "";
  position: absolute; inset: 10% 16%;
  background: var(--grad); filter: blur(64px); opacity: .28; z-index: -1; border-radius: 50%;
}
.show-visual img { width: 100%; max-width: 300px; border-radius: 30px; border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.show-text .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--teal); }
.show-text h3 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.6px; margin: 12px 0 14px; font-weight: 800; line-height: 1.12; }
.show-text p { color: var(--text-dim); font-size: 16.5px; }
.show-text ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.show-text li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.show-text li .check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2);
  font-size: 12px; margin-top: 2px;
}

/* ------------------------------------------------------------------ Pills (tones/langs) */
.pill-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.pill {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: transform .15s, border-color .15s, background .15s;
}
.pill:hover { transform: translateY(-2px); border-color: var(--border-2); background: var(--surface-2); }
.pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--grad); }

/* ------------------------------------------------------------------ CTA band */
.cta-band {
  margin: 40px auto 0;
  max-width: var(--maxw);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% 30% auto; height: 300px;
  background: var(--grad); filter: blur(90px); opacity: .3;
}
.cta-band h2 { position: relative; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; font-weight: 800; }
.cta-band p { position: relative; color: var(--text-dim); margin: 16px auto 30px; max-width: 520px; font-size: 17px; }
.cta-band .hero-cta { position: relative; justify-content: center; }

/* ------------------------------------------------------------------ Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  margin-top: 90px;
}
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--text-mute); font-size: 14.5px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mute); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-mute); font-size: 13.5px;
}

/* ------------------------------------------------------------------ Content pages (support/legal) */
.page-hero { padding: 70px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -1px; font-weight: 800; }
.page-hero p { margin-top: 14px; color: var(--text-dim); font-size: 18px; }
.page-hero .updated { margin-top: 10px; color: var(--text-mute); font-size: 14px; }

.content { max-width: 800px; margin: 0 auto; padding: 30px 24px 40px; }
.content h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.4px; }
.content h3 { font-size: 18.5px; margin: 26px 0 8px; }
.content p, .content li { color: var(--text-dim); font-size: 16px; }
.content p { margin-bottom: 14px; }
.content ul, .content ol { margin: 0 0 16px 22px; }
.content li { margin-bottom: 8px; }
.content a.link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.content strong { color: var(--text); }

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--text-mute); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-dim); font-size: 15.5px; }
.faq .faq-body ol, .faq .faq-body ul { margin: 8px 0 0 20px; }
.faq .faq-body li { margin-bottom: 6px; }

.card-note {
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 30px 0;
}
.card-note h3 { font-size: 20px; margin-bottom: 8px; }
.card-note p { color: var(--text-dim); margin-bottom: 18px; }
.mail { font-weight: 600; color: var(--text); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero p.lead, .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .show-row, .show-row.reverse { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .show-row.reverse .show-visual { order: -1; }
  .show-visual { order: -1; }
  .show-text ul { text-align: left; max-width: 380px; margin-left: auto; margin-right: auto; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  section { padding: 60px 0; }
  .foot-cols { gap: 40px; }
}
