/* AK Agency brand tokens, mirrored from the app's src/constants/theme.ts */
@font-face { font-family: 'AK Readex'; src: url('fonts/rx_light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'AK Readex'; src: url('fonts/rx_med.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --maroon: #8A1538;
  --maroon-bright: #A11A45;
  --maroon-deep: #56042C;
  --night: #070206;
  --night-warm: #12050B;
  --glow: #D04A72;
  --blush: #F3C6D3;
  --text: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.78);
  --text-muted: rgba(255,255,255,0.62);
  --glass: rgba(255,255,255,0.045);
  --glass-strong: rgba(255,255,255,0.075);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border-strong: rgba(255,255,255,0.18);
  --r-m: 16px; --r-l: 22px; --r-xl: 28px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: 'AK Readex', 'Readex Pro', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--night);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(138,21,56,0.45), transparent 70%),
    linear-gradient(180deg, var(--night-warm), var(--night));
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--blush); }
h1, h2, h3 { font-weight: 500; line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 18px; }
.eyes { display: flex; gap: 3px; direction: ltr; }
.eyes img { width: 30px; height: auto; display: block; }
.eyes .wink { transform-origin: 50% 38%; animation: wink 9s 4s infinite; }
@keyframes wink { 0%, 96.9%, 100% { transform: scaleY(1); } 98.4% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .eyes .wink { animation: none; } }
.nav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--text-secondary); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero .eyes { justify-content: center; gap: 6px; margin-bottom: 28px; }
.hero .eyes img { width: 84px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); }
.hero p { color: var(--text-secondary); font-size: 18px; max-width: 620px; margin: 0 auto; }
.hero .ar { margin-top: 14px; }
.btn {
  display: inline-block; margin-top: 28px; padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--maroon-bright), var(--maroon));
  color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 8px 30px rgba(161,26,69,0.35);
}

/* Sections */
section { padding: 36px 0; }
.label { color: var(--glow); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.card {
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  padding: 22px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: auto auto -40% -30%; width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(208,74,114,0.18), transparent 70%); pointer-events: none;
}
.card h3 { font-size: 18px; }
.card p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.ar { direction: rtl; text-align: right; }
.hero .ar { text-align: center; }
.card .ar { margin-top: 10px; color: var(--text-muted); font-size: 14px; }

/* Long-form (privacy / terms) */
.doc { padding: 24px 0 48px; }
.doc .card { padding: 28px; }
.doc h2 { font-size: 20px; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text-secondary); }
.doc .updated { color: var(--text-muted); font-size: 14px; }

footer { border-top: 1px solid var(--glass-border); padding: 26px 0 40px; color: var(--text-muted); font-size: 14px; }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-secondary); text-decoration: none; margin-right: 16px; }
