/* CoverSIM public site */

:root {
  --navy-900: #061638;
  --navy-800: #0a2256;
  --navy-700: #12306f;
  --accent: #22c7a1;
  --accent-strong: #12a985;
  --accent-ink: #04261e;

  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --surface: #ffffff;
  --border: #e3e8f2;
  --text: #0e1a33;
  --text-muted: #56627a;
  --link: #1546b8;
  --danger: #c0392b;
  --success: #12825f;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(10 34 86 / 6%), 0 8px 24px rgb(10 34 86 / 8%);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1124;
    --bg-soft: #0f1830;
    --surface: #131e3a;
    --border: #23304f;
    --text: #e8edf7;
    --text-muted: #9aa6bf;
    --link: #7fb0ff;
    --danger: #ff8a7a;
    --success: #4ee0b3;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* Scripts that Inter doesn't cover: system fonts, no negative tracking */
:lang(ar) { --font: "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif; }
:lang(zh) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ar) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { letter-spacing: 0; }
:lang(ar) body { line-height: 1.8; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px;
  font: inherit; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #3ad8b3; }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 35%); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.btn[disabled] { opacity: .6; cursor: progress; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 180px; padding: 10px 18px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgb(255 255 255 / 25%); border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(0 0 0 / 30%); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: .7rem; opacity: .85; }
.store-badge strong { font-size: 1.1rem; font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(6 22 56 / 88%);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
}
.brand { display: inline-flex; flex: none; }
.header-actions { display: flex; align-items: center; gap: 4px; order: 2; }
.site-nav { order: 1; margin-inline-start: auto; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px;
  color: rgb(255 255 255 / 85%); font-weight: 600; font-size: .85rem;
  border-radius: var(--radius-sm); cursor: pointer; list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: #fff; background: rgb(255 255 255 / 8%); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 190px; max-height: 70vh; overflow: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--accent-strong); }
.brand img { width: 112px; height: auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: #fff; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: rgb(255 255 255 / 82%); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 8%); }
.site-nav .btn { min-height: 40px; padding: 0 18px; }

@media (max-width: 860px) {
  .header-actions { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--navy-900);
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: 12px; font-size: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% 20%, rgb(34 199 161 / 22%), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgb(66 110 255 / 25%), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  padding-block: clamp(48px, 8vw, 96px) 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 40px;
}
.hero-copy { padding-bottom: clamp(48px, 8vw, 104px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 6px 14px;
  font-size: .85rem; font-weight: 600; color: #bff3e4;
  background: rgb(34 199 161 / 14%); border: 1px solid rgb(34 199 161 / 35%); border-radius: 999px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 34em; font-size: 1.15rem; color: rgb(255 255 255 / 80%); margin-bottom: 32px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin: 28px 0 0; padding: 0; list-style: none;
  color: rgb(255 255 255 / 78%); font-size: .95rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); }

.hero-visual { position: relative; justify-self: center; width: min(300px, 80vw); }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% -20% 0;
  background: radial-gradient(closest-side, rgb(34 199 161 / 35%), transparent);
  filter: blur(20px);
}
.hero-visual img {
  position: relative;
  width: 100%; border-radius: 36px 36px 0 0;
  box-shadow: 0 30px 60px rgb(0 0 0 / 40%);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { padding-bottom: 8px; }
  .hero-lead { margin-inline: auto; }
  .hero .store-badges, .hero-points { justify-content: center; }
  .hero-visual { width: min(240px, 70vw); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.kicker {
  display: block; margin-bottom: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong);
}

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.step {
  position: relative; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 12px;
}
.step p { color: var(--text-muted); margin: 0; }

/* Use cases */
.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.use-case {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.use-case img { width: 100%; aspect-ratio: 466 / 284; object-fit: cover; }
.use-case div { padding: 24px 26px 28px; }
.use-case p { color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
  .steps, .use-cases { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* CTA band */
.cta {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  color: #fff; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgb(34 199 161 / 30%), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: rgb(255 255 255 / 78%); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta .store-badges { justify-content: center; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.card {
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgb(34 199 161 / 25%);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions .btn { min-width: 160px; }

.form-status { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 550; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); background: rgb(34 199 161 / 12%); }
.form-status.is-error { color: var(--danger); background: rgb(192 57 43 / 10%); }

.contact-info h3 { margin-bottom: 4px; }
.contact-info dl { margin: 20px 0 0; display: grid; gap: 16px; }
.contact-info dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.contact-info dd { margin: 2px 0 0; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details[open] { border-color: rgb(34 199 161 / 50%); }
.faq-answer { padding: 0 22px 20px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer ol, .faq-answer ul { padding-inline-start: 1.3em; }
.faq-more { margin-top: 56px; margin-bottom: 0; }

/* ---------- Page header / Legal ---------- */

.page-hero {
  color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  padding-block: clamp(48px, 7vw, 80px);
}
.page-hero p { margin: 0; color: rgb(255 255 255 / 75%); }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose .meta { color: var(--text-muted); font-size: .95rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px 32px;
  color: rgb(255 255 255 / 72%); background: var(--navy-900); font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgb(255 255 255 / 80%); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 112px; margin-bottom: 14px; }
.footer-brand p { max-width: 28em; }
.footer-grid .footer-note { font-size: .85rem; color: rgb(255 255 255 / 55%); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: .88rem;
}
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%;
}
.social svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
