:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #1d2233;
  --muted: #5b6275;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --border: #e3e6ef;
}
body.dark {
  --bg: #0f1320;
  --card: #181d2e;
  --text: #e8eaf2;
  --muted: #9aa2b8;
  --border: #2a3047;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover, nav a.active { color: var(--accent); }
.theme-btn, .menu-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text); }
.menu-btn { display: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.12));
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.accent { color: var(--accent); }
.typing { font-size: 1.3rem; min-height: 2rem; color: var(--accent-2); font-weight: 600; }
.typing::after { content: "|"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sub { max-width: 560px; margin: 1rem auto 2rem; color: var(--muted); }
.status { margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; margin-right: 4px; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn.big { font-size: 1.15rem; padding: 1rem 2rem; }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); margin-left: .5rem; }

/* Sections */
.section { max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem; }
.section h1, .section h2 { margin-bottom: 1.5rem; }
.center { text-align: center; }
.counter-section { text-align: center; }
.counter-section p { color: var(--muted); margin-bottom: 1.5rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.icon { font-size: 2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: .5rem 0 1rem; }
.tag { font-size: .8rem; font-weight: 600; color: var(--accent); background: rgba(37,99,235,.1); padding: .2rem .6rem; border-radius: 999px; }

/* Form */
.form { display: grid; gap: 1rem; max-width: 520px; }
.form input, .form textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text);
  font: inherit;
}
.form-msg { font-weight: 600; color: #16a34a; min-height: 1.5rem; }
.note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* About page */
.steps { margin: 1rem 0 2rem 1.5rem; }
.steps li { margin-bottom: .5rem; }

footer { text-align: center; padding: 2rem; color: var(--muted); border-top: 1px solid var(--border); }

/* Mobile */
@media (max-width: 720px) {
  .menu-btn { display: block; }
  nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1rem;
    padding: 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
  }
  nav.open { display: flex; }
}
