/* Chattriix marketing — modern, fast, dark-mode-aware. Vanilla CSS. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --bg-elev: #ffffff;
  --fg: #0a0a0a;
  --fg-mid: #4a4a55;
  --fg-mute: #71717a;
  --border: #e7e7ec;
  --border-strong: #d4d4dc;
  --brand: #6c4cff;
  --brand-2: #2e9aff;
  --grad: linear-gradient(135deg, #6c4cff 0%, #2e9aff 100%);
  --grad-soft: linear-gradient(135deg, rgba(108,76,255,.08) 0%, rgba(46,154,255,.08) 100%);
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.02);
  --shadow-md: 0 4px 12px rgba(10,10,10,.06), 0 2px 4px rgba(10,10,10,.04);
  --shadow-lg: 0 16px 40px rgba(10,10,10,.08), 0 6px 12px rgba(10,10,10,.04);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --bg-alt: #111114;
    --bg-elev: #14141a;
    --fg: #f5f5f7;
    --fg-mid: #c5c5cd;
    --fg-mute: #8b8b95;
    --border: #1f1f27;
    --border-strong: #2a2a35;
    --grad-soft: linear-gradient(135deg, rgba(108,76,255,.16) 0%, rgba(46,154,255,.16) 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.6), 0 6px 12px rgba(0,0,0,.4);
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (font-variation-settings: normal) {
  body { font-family: 'Inter var', 'Inter', system-ui, sans-serif; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }
button { font: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--fg); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 17px; }
.brand-by {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-mid);
  font-weight: 500;
}
.nav-cta { display: inline-flex; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% 0 auto 0;
  height: 90%;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(108,76,255,.18), transparent 60%),
    radial-gradient(60% 50% at 75% 30%, rgba(46,154,255,.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--fg-mid);
  font-weight: 500;
  background: var(--bg-elev);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ec76a;
  box-shadow: 0 0 0 3px rgba(30,199,106,.18);
}
.hero-title {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-feature-settings: 'cv11', 'ss01', 'ss02';
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--fg-mid);
  max-width: 720px;
  margin: 0 0 36px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.trust-item strong { color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.trust-item span { color: var(--fg-mute); }
@media (max-width: 700px) {
  .hero { padding: 64px 0 56px; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.section-head h2 .muted { color: var(--fg-mute); font-weight: 700; }
.section-sub { color: var(--fg-mid); font-size: 17px; margin: 0; }
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Grid + cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  margin-bottom: 18px;
  color: var(--brand);
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.card p { color: var(--fg-mid); margin: 0; font-size: 14.5px; line-height: 1.6; }

/* Platforms */
.platforms { gap: 24px; }
.platform-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .25s ease, border-color .15s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.platform-card.available {
  background: linear-gradient(180deg, var(--bg-elev) 0%, color-mix(in srgb, var(--brand) 4%, var(--bg-elev)) 100%);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: white;
}
.platform-icon svg { width: 32px; height: 32px; }
.platform-icon.ios { background: #000; }
.platform-icon.android { background: #34a853; }
.platform-icon.web { background: var(--grad); }
.platform-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.platform-status {
  font-size: 13px;
  color: var(--fg-mute);
  margin: 0 0 22px;
  font-weight: 500;
}
.platform-status.available { color: #1ea24f; }
.platform-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-features li {
  font-size: 14px;
  color: var(--fg-mid);
  padding-left: 22px;
  position: relative;
}
.platform-features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg);
}
.platform-cta { width: 100%; justify-content: center; }

/* Security */
.security-grid { gap: 28px; }
.security-item {
  padding: 24px 0;
}
.security-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 22px;
}
.security-item p {
  color: var(--fg-mid);
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.security-item code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: border-color .15s ease, background .15s ease;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { background: var(--bg-elev); border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--fg-mute);
  border-bottom: 2px solid var(--fg-mute);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p {
  color: var(--fg-mid);
  margin: 0 0 18px;
  padding-right: 30px;
  font-size: 15px;
  line-height: 1.65;
}
.faq details a { color: var(--brand); }

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
  background: var(--grad-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.cta p { color: var(--fg-mid); font-size: 17px; margin: 0 0 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-name { font-size: 18px; }
.footer-blurb {
  font-size: 14px;
  color: var(--fg-mute);
  margin: 12px 0 0;
  max-width: 320px;
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--fg-mute); font-size: 14px; }
.footer-col a:hover { color: var(--fg); }
.company-info {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-mute);
}
.company-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 760px;
}
.company-info h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin: 0 0 10px;
}
.company-info p {
  margin: 0;
  line-height: 1.65;
}
.company-info a {
  color: var(--fg-mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.company-info a:hover { color: var(--fg); }
@media (max-width: 600px) {
  .company-info-grid { grid-template-columns: 1fr; gap: 20px; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-mute);
}
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
