:root {
  color-scheme: light dark;
  --background: #f7f7f8;
  --foreground: #111318;
  --muted: #646b78;
  --panel: #ffffff;
  --border: #d9dde5;
  --button: #111318;
  --button-text: #ffffff;
  --accent-start: #ff7a18;
  --accent-end: #d61f1f;
  --accent: #ff3b30;
  --link: var(--accent);
  --shadow: rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111318;
    --foreground: #f4f6fb;
    --muted: #a8b0bd;
    --panel: #1a1d24;
    --border: #303642;
    --button: #f4f6fb;
    --button-text: #111318;
    --link: #ff6b6b;
    --shadow: rgba(0,0,0,0.25);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: background 160ms ease, color 160ms ease;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.logo {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  vertical-align: middle;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(255, 58, 48, 0.25);
}

.lang-toggle {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}

.lang-toggle:hover {
  background: var(--background);
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 28px;
}

.button-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  border: 0;
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 2px 8px var(--shadow);
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Install */
.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.steps p {
  padding-top: 3px;
  font-size: 14px;
}

/* Privacy */
.privacy-note {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  margin-top: 16px;
}

.site-footer p {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}
