:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16151a;
  --muted: #5d5a66;
  --line: #e6e3dc;
  --accent: #e8552d;
  --accent-ink: #ffffff;
  --dm: #6b4fd8;
  --rr: #0f8a6c;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111014;
    --surface: #1a191f;
    --ink: #f3f1ec;
    --muted: #a8a4b0;
    --line: #2c2a32;
    --accent: #ff7a52;
    --accent-ink: #16151a;
    --dm: #a893ff;
    --rr: #3fd0a8;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; text-decoration: none; font-size: 19px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 14ch; }
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 52ch; }

/* Product cards */
.products { display: grid; gap: 24px; }
.product > * { min-width: 0; }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; overflow: hidden; }
.product-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product h3 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -0.03em; margin: 0 0 6px; }
.product .tagline { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.product .desc { color: var(--muted); margin: 0 0 20px; }
.product ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.product li { padding-left: 26px; position: relative; }
.product li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; border-radius: 2px; background: var(--c); }
.status { display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.dm { --c: var(--dm); }
.rr { --c: var(--rr); }
.dm .product-tag .dot, .dm .tagline { color: var(--dm); }
.rr .product-tag .dot, .rr .tagline { color: var(--rr); }

.visual { display: flex; justify-content: center; }
.phone { width: 230px; max-width: 100%; border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(20, 15, 40, 0.35); display: block; height: auto; }

/* RelayReply caption mock */
.call { width: 100%; max-width: 330px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); padding: 20px; font-size: 15px; }
.call-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--rr); font-weight: 650; }
.bubble { padding: 10px 14px; border-radius: 16px; margin: 0 0 10px; max-width: 88%; line-height: 1.45; }
.them { background: var(--surface); border: 1px solid var(--line); }
.them small { display: block; font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.me { background: var(--rr); color: #fff; margin-left: auto; }
.typing { color: var(--muted); font-style: italic; font-size: 14px; margin: 4px 0 0; }

/* About + contact */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about p { color: var(--muted); margin: 0 0 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; display: block; }
.contact-card:hover { border-color: var(--ink); }
.contact-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.contact-card span { color: var(--muted); font-size: 15px; display: block; margin-bottom: 12px; }
.contact-card em { font-style: normal; font-weight: 600; color: var(--accent); word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 720px; padding: 56px 20px 24px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }

@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; padding: 28px 22px; }
  .visual { order: -1; }
  .about { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 56px 0 40px; }
}

@media (max-width: 560px) {
  .nav a:not(:last-child) { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .phone { width: 200px; }
}
