:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #e0e9ff;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #111a2e;
    --surface: #16213a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #24314f;
    --accent: #60a5fa;
    --accent-soft: #1e3a6b;
    --on-accent: #0b1120;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 22px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
nav a:hover, nav a:focus-visible { color: var(--accent); }

/* Hero */
.hero {
  padding: 110px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--accent-soft), transparent 65%),
    var(--bg);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.tagline {
  margin: 0 auto 32px;
  max-width: 600px;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
}
.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.button:hover { opacity: 0.9; transform: translateY(-1px); }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 64px; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
}
.section p { color: var(--muted); margin: 0 0 16px; }
#services h2 { text-align: center; margin-bottom: 40px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.card h3 { margin: 16px 0 8px; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.97rem; }
.icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: var(--accent-soft);
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* App list */
.app-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
}
.app-card img { flex: none; border-radius: 14px; }
.app-card h3 { margin: 0 0 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}
.site-footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* 404 */
.notfound {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  text-align: center;
}
.notfound h1 { font-size: clamp(3rem, 12vw, 5.5rem); margin: 0; color: var(--accent); }
.notfound p { color: var(--muted); margin: 8px 0 28px; }

@media (max-width: 560px) {
  .header-inner { justify-content: center; padding: 10px 20px; }
  nav { gap: 18px; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 60px 0; scroll-margin-top: 100px; }
}
