/* Base styles */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #0ea5e9;
  --primary-contrast: #041019;
  --border: #1e293b;
  --shadow: 0 10px 30px rgba(2, 132, 199, 0.20);
  --radius: 12px;
  --radius-sm: 10px;
  --page-pad-min: 20px;
  --page-pad: clamp(var(--page-pad-min), 5vw, 32px);
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #0e1a31 0%, var(--bg) 60%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(1120px, calc(100% - (2 * var(--page-pad) + env(safe-area-inset-left) + env(safe-area-inset-right)))); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }

.site-header, .site-footer { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); border-bottom: none; }

.site-header .container,
.site-footer .container { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-3); padding-bottom: var(--space-3); }

.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.2px; font-size: 1.05rem; }

.nav a, .footer-nav a { color: var(--muted); margin-left: 16px; text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.nav a:hover, .footer-nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); }

.hero { padding: var(--space-8) 0 var(--space-7); text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items: center; }
.hero-copy { min-width: 0; }
.hero-figure { margin: 0; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); }
.hero-figure img { display: block; width: 100%; height: auto; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.2; margin: 0 0 var(--space-2); letter-spacing: -0.2px; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); margin: 0 0 var(--space-4); max-width: 68ch; }

.cta-group { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-1); }
.btn { display: inline-block; padding: 12px 18px; border-radius: var(--radius-sm); text-decoration: none; border: 1px solid var(--border); transition: transform 160ms ease, filter 160ms ease, background 160ms ease, box-shadow 160ms ease; will-change: transform; }
.btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.btn-primary { background: linear-gradient(180deg, var(--primary), #0284c7); color: white; border: none; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.98); }
.btn-outline { color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: #334155; background: rgba(255,255,255,0.04); }

.tip { color: var(--muted); font-size: 0.95rem; margin-top: var(--space-1); }

.section { padding: var(--space-6) 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-2); padding: 0; list-style: none; }
.features li { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); transition: border-color 160ms ease, transform 160ms ease, background 160ms ease; }
.features li:hover { transform: translateY(-2px); border-color: #334155; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); }

.steps { counter-reset: s; padding-left: 0; list-style: none; }
.steps li { position: relative; padding-left: 38px; margin-bottom: var(--space-2); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); }

details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-2); }
summary { cursor: pointer; font-weight: 600; }

/* Footer spacing */
.site-footer .container { padding-top: var(--space-4); padding-bottom: var(--space-4); }

@media (max-width: 560px) {
  .container { padding-left: 0; padding-right: 0; }
  .site-header .container, .site-footer .container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav a { margin-left: 0; margin-right: 12px; }
  .hero { padding-top: var(--space-7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-figure { order: -1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


