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

:root {
  --bg: #f8f9fc;
  --fg: #0f172a;
  --muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(248,249,252,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: box-shadow 0.2s;
}

.logo {
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent); letter-spacing: -0.5px;
}

.nav-cta {
  text-decoration: none; padding: 0.5rem 1.2rem;
  background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Hero */
.hero {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
}

.hero-content { max-width: 640px; }

.hero-title {
  font-size: clamp(3rem,8vw,5.5rem); font-weight: 800;
  letter-spacing: -2px; color: var(--fg); margin-bottom: 0.5rem;
}

.hero-slogan {
  font-size: clamp(1.1rem,2.5vw,1.5rem);
  color: var(--muted); margin-bottom: 2rem; font-weight: 400;
}

.hero-btn {
  display: inline-block; text-decoration: none;
  padding: 0.8rem 2rem; background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 1rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.hero-btn:hover {
  background: var(--accent-hover); transform: translateY(-1px);
}

/* Features */
.features {
  padding: 5rem 2rem; max-width: 960px; margin: 0 auto;
}

.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 700;
  margin-bottom: 3rem; letter-spacing: -0.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* Contact */
.contact {
  padding: 5rem 2rem; text-align: center;
  max-width: 520px; margin: 0 auto;
}

.contact-desc {
  color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem;
}

.contact-form { display: flex; gap: 0.5rem; }

.email-input {
  flex: 1; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.email-input:focus { border-color: var(--accent); }

.submit-btn {
  padding: 0.75rem 1.5rem; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  font-family: inherit;
}
.submit-btn:hover { background: var(--accent-hover); }

.contact-note {
  margin-top: 0.75rem; font-size: 0.9rem;
  color: var(--accent); min-height: 1.4em;
}

/* Footer */
.footer {
  text-align: center; padding: 2rem;
  color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .contact-form { flex-direction: column; }
}
