/* Colors are placeholders — the palette will be chosen later.
   Change --accent (and its dark-mode twin) to re-theme the whole site. */
:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --text: #16181d;
  --text-2: #3d424d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f5bea;
  --accent-soft: #eef2ff;
  --radius: 14px;
  --max: 880px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014;
    --surface: #161a20;
    --text: #eef0f3;
    --text-2: #c4c9d2;
    --muted: #8b93a1;
    --line: #262b33;
    --accent: #7c9cff;
    --accent-soft: #1a2140;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.brand { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); color: var(--text); background: var(--bg);
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hero */
.hero { padding: 72px 0 48px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center; object-fit: cover;
  background: var(--accent-soft); color: var(--accent);
  font-size: 40px; font-weight: 700; letter-spacing: -0.02em;
}
.hero h1 { font-size: clamp(34px, 5.5vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.hero .lead { margin-top: 12px; font-size: 18px; color: var(--text-2); max-width: 600px; }
.hero .actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

.stats {
  margin-bottom: 16px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 44px 0; border-top: 1px solid var(--line); }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }

/* App cards */
.apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.app-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px; background: var(--bg);
}
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; border: 1px solid var(--line); }
.app-card h3 { font-size: 17px; letter-spacing: -0.01em; }
.app-card .sub { font-size: 14px; color: var(--muted); }
.app-card p { color: var(--text-2); font-size: 15px; flex: 1; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; padding-top: 4px; }

/* Contact */
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 32px; }
.contact-card p { color: var(--text-2); margin-bottom: 20px; }
.contact-list { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }

/* Legal / privacy pages */
.legal { padding: 56px 0 40px; max-width: 720px; }
.legal .back { font-size: 14px; display: inline-block; margin-bottom: 24px; }
.legal h1 { font-size: 36px; letter-spacing: -0.03em; line-height: 1.15; }
.legal .meta { color: var(--muted); margin-top: 8px; font-size: 15px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 16px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; }
  .avatar { width: 88px; height: 88px; font-size: 30px; }
  .apps { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
}

