/* SweetChat web. Flat, dark, premium. No glows, no gradients. */
:root {
  --bg: #0e0d10;
  --surface: #1a191d;
  --surface-2: #232227;
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.64);
  --text-3: rgba(255, 255, 255, 0.42);
  --accent: #ed423e;
  --star: #f5b83d;
  --radius: 22px;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 24px; height: 24px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 16px;
  font: 600 17px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
}
.btn-light { background: #fff; color: #000; }
.btn-dark { background: var(--surface); color: var(--text); border: 1px solid var(--stroke); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.01em; }
.lede { color: var(--text-2); font-size: 20px; margin: 22px 0 34px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--text-3); font-size: 14px; margin-top: 14px; }

/* Phone mockup (pure CSS) */
.phone {
  width: 100%; max-width: 360px; margin-left: auto; aspect-ratio: 9 / 18.5;
  background: #000; border: 1px solid var(--stroke); border-radius: 48px; padding: 14px;
}
.screen { height: 100%; background: var(--bg); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; }
.screen-head { display: flex; align-items: center; gap: 12px; padding: 44px 18px 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; position: relative; }
.avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #34c759; border: 2px solid var(--bg); }
.who b { display: block; font-size: 16px; }
.who span { font-size: 13px; color: var(--accent); }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.35; background: var(--surface-2); }
.bubble.in { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 6px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px; border-radius: 20px; background: var(--surface-2); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.screen-input { margin: 0 14px 18px; height: 44px; border-radius: 22px; background: var(--surface); color: var(--text-3); font-size: 15px; display: flex; align-items: center; padding: 0 16px; }

/* Sections */
section { padding: 88px 0; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 14px; }
.section-sub { color: var(--text-2); font-size: 18px; max-width: 560px; margin-bottom: 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }

.tropes { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; }

.faq { display: grid; gap: 12px; max-width: 760px; }
details { background: var(--surface); border-radius: 18px; padding: 20px 24px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--text-2); margin-top: 12px; font-size: 16px; }

.closing { text-align: center; }
.closing .section-sub { margin: 0 auto 32px; }

/* Footer */
.footer { padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { text-decoration: none; color: var(--text-2); }
.footer a:hover { color: var(--text); }

/* Legal / document pages */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.doc .updated { color: var(--text-3); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-top: 10px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); }
.doc a { color: var(--text); text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.box { background: var(--surface); border-radius: 18px; padding: 22px 24px; margin-top: 18px; }
.box p { margin: 0; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .phone { margin: 0 auto; max-width: 320px; }
  .features { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .nav { display: none; }
}
