/* GloWave website: the app's look (near-black, yellow accent, Figtree). */

@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --accent: #ffc107;
  --accent-dim: #5c4500;
  --bg: #121212;
  --surface: #1c1c1c;
  --surface-high: #282828;
  --text: #ffffff;
  --muted: #b3b3b3;
  --outline: #3e3e3e;
  --radius: 14px;
  --max: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 999px; }

/* Header and navigation */
.site-header { border-bottom: 1px solid var(--outline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: var(--surface-high); }
.site-nav a[aria-current="page"] { color: #000; background: var(--accent); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: -40% -10% auto; height: 520px;
  background: radial-gradient(closest-side, rgba(255, 193, 7, 0.22), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-icon { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 60px rgba(255, 193, 7, 0.45); }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 24px 0 16px; }
h1 .glow { color: var(--accent); text-shadow: 0 0 28px rgba(255, 193, 7, 0.55); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

/* Buttons */
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--outline); color: var(--text); background: var(--surface); }
.btn:hover { background: var(--surface-high); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: #ffd24d; }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: 0.75; line-height: 1.2; }
.btn .btn-text { text-align: left; line-height: 1.25; }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.85; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.section-intro { color: var(--muted); max-width: 680px; margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 800; margin-bottom: 12px; }

/* Wave decoration: a row of phones lighting up in turn */
.wave { display: flex; justify-content: center; gap: 10px; margin: 40px auto 0; max-width: 520px; }
.wave span { width: 26px; height: 44px; border-radius: 6px; background: var(--surface-high); border: 1px solid var(--outline); animation: wave 2.4s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: 0.15s; }
.wave span:nth-child(3) { animation-delay: 0.3s; }
.wave span:nth-child(4) { animation-delay: 0.45s; }
.wave span:nth-child(5) { animation-delay: 0.6s; }
.wave span:nth-child(6) { animation-delay: 0.75s; }
.wave span:nth-child(7) { animation-delay: 0.9s; }
.wave span:nth-child(8) { animation-delay: 1.05s; }
/* Slow, soft pulse: one glow per phone every 2.4 s, far below any flash concern. */
@keyframes wave {
  0%, 60%, 100% { background: var(--surface-high); box-shadow: none; }
  25% { background: var(--accent); box-shadow: 0 0 22px rgba(255, 193, 7, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .wave span { animation: none; }
  .wave span:nth-child(odd) { background: var(--accent); }
}

/* Notice box */
.notice { background: var(--surface); border: 1px solid var(--outline); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* Long-form pages (policy, support, tutorial) */
.page { padding: 48px 0 64px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-top: 0; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #e6e6e6; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--outline); }
.prose th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin: 18px 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 800; display: grid; place-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .site-nav a { padding: 6px 10px; }
}
