/* Cowave Global — static stylesheet (no build step) */
:root {
  --bg: #f4f6fb;
  --bg-soft: linear-gradient(180deg, #fbfcff, #eef1f8);
  --fg: #161a2b;
  --muted: #6b7187;
  --card: #ffffff;
  --border: #e3e7ef;
  --brand: #5b6cff;
  --brand-2: #8a5bff;
  --gradient-hero: linear-gradient(135deg, #5b6cff, #b15bff);
  --shadow: 0 20px 60px -20px rgba(91, 108, 255, 0.35);
  --destructive: #d92d4a;
  --success: #16a34a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-soft);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 10px 20px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  border: 1px solid transparent; transition: opacity .2s, transform .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { color: #fff; background: var(--gradient-hero); box-shadow: var(--shadow); }
.btn-primary:hover { opacity: 0.95; }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: #f1f3f8; }
.btn-disabled, .btn[disabled] {
  background: #eceef3; color: var(--muted); border: 1px solid var(--border);
  cursor: not-allowed; box-shadow: none;
}
.btn-lg { height: 48px; padding: 0 24px; font-size: 1rem; }
.btn-hide-mobile { display: none; }
@media (min-width: 640px) { .btn-hide-mobile { display: inline-flex; } }

/* Hero */
.hero { padding: 40px 0 32px; }
@media (min-width: 768px) { .hero { padding: 64px 0 48px; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; color: var(--muted); font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
h1.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0;
}
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 36rem; margin: 0 0 20px; }
.hero-sub strong { color: var(--fg); }
.cta-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .cta-row { flex-direction: row; } }

/* Status pill */
.status {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 6px 12px; font-size: 0.75rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
}
.status .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: pulse 1.6s infinite; }
.status.ok { border-color: rgba(22,163,74,.4); background: rgba(22,163,74,.1); color: #166534; }
.status.ok .pdot { background: var(--success); animation: none; }
.status.bad { border-color: rgba(217,45,74,.4); background: rgba(217,45,74,.1); color: var(--destructive); }
.status.bad .pdot { background: var(--destructive); animation: none; }
.status .recheck { margin-left: 8px; text-decoration: underline; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; }

/* Hero video */
.hero-video-wrap { position: relative; }
.hero-video-glow { position: absolute; inset: -16px; background: var(--gradient-hero); opacity: .2; filter: blur(60px); border-radius: 28px; }
.hero-video {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--card);
  aspect-ratio: 16/9;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }

/* Notice cards */
.notice { border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.notice .icon { font-size: 1.5rem; }
.notice h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.notice p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.notice-brand { border: 1px solid rgba(91,108,255,.3); background: rgba(91,108,255,.05); }
.notice-danger { border: 2px solid rgba(217,45,74,.5); background: rgba(217,45,74,.1); }
.notice-danger h3 { color: var(--destructive); }
.notice-soft { border: 1px solid rgba(217,45,74,.3); background: rgba(217,45,74,.05); }
.notice-soft h3 { color: var(--destructive); }

/* Instructions */
.section-head { text-align: center; margin: 48px 0 32px; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: var(--gradient-hero); box-shadow: 0 8px 24px -8px rgba(91,108,255,.4);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { margin: 0; font-weight: 600; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.step-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .step-actions { flex-direction: row; } }
.btn-download {
  background: var(--gradient-hero); color: #16a34a; font-weight: 700;
  padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer;
  box-shadow: var(--shadow); font-size: 0.9rem;
}
.btn-download:hover { opacity: .95; }

/* CTA */
.cta-card {
  position: relative; overflow: hidden; border-radius: 24px;
  padding: 32px 24px; text-align: center;
  background: var(--gradient-hero); box-shadow: var(--shadow);
  margin-bottom: 48px;
}
@media (min-width: 640px) { .cta-card { padding: 48px; } }
.cta-card h2 { color: #000; font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; margin: 0; }
.cta-card p { color: rgba(0,0,0,.85); margin: 12px auto 0; max-width: 36rem; }
.cta-card .btn-white {
  margin-top: 24px; background: #fff; color: #000; font-weight: 700; padding: 12px 32px;
  border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem;
}
.cta-card .btn-white[disabled] { background: rgba(255,255,255,.3); color: #000; border: 1px solid rgba(0,0,0,.3); cursor: not-allowed; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.6); }
.footer-inner {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  justify-content: space-between; padding: 24px 0; font-size: 0.875rem; color: var(--muted);
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }
.footer a { color: var(--fg); font-weight: 500; }
.footer a:hover { color: var(--brand); }

/* Rainbow */
@keyframes rainbow-hue {
  0%   { color: #ef4444; }
  16%  { color: #f59e0b; }
  33%  { color: #22c55e; }
  50%  { color: #06b6d4; }
  66%  { color: #5b6cff; }
  83%  { color: #c026d3; }
  100% { color: #ef4444; }
}
.rainbow-text { animation: rainbow-hue 6s linear infinite; }

/* Terms page */
.terms main { max-width: 800px; margin: 0 auto; padding: 40px 16px; }
.terms h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin: 0; }
.terms .updated { color: var(--muted); margin-top: 8px; }
.terms section { margin-top: 24px; }
.terms section h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.terms section p, .terms section li { color: var(--muted); }
.terms section ul { padding-left: 24px; margin: 8px 0; }
.terms section li { margin: 4px 0; }
.terms section strong { color: var(--fg); }
