:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #06b6d4;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(15, 23, 42, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 500; }
.logo strong { font-weight: 800; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, .12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(79, 70, 229, .10), transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); margin: 20px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual mockups */
.hero-visual { position: relative; height: 380px; }
.mock-browser {
  position: absolute; top: 0; left: 0; width: 85%;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-body { padding: 24px; }
.mock-line { height: 12px; border-radius: 6px; background: #e2e8f0; margin-bottom: 12px; }
.mock-line.w60 { width: 60%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.mock-line.w75 { width: 75%; }
.mock-line.w80 { width: 80%; }
.mock-line.w90 { width: 90%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.mock-cards div { height: 80px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }
.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 160px; height: 300px;
  background: #fff; border-radius: 26px; border: 6px solid var(--text);
  box-shadow: var(--shadow); padding: 28px 14px 14px;
}
.mock-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 50px; height: 8px; border-radius: 6px; background: var(--text); }
.mock-tile { height: 70px; border-radius: 10px; margin-top: 12px; background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(6,182,212,.15)); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head p, .about-grid p, .contact-grid > div > p { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.features { list-style: none; display: grid; gap: 16px; }
.features li {
  background: #fff; border-radius: var(--radius); padding: 20px 22px 20px 56px;
  border: 1px solid var(--border); position: relative;
}
.features li::before {
  content: "✓"; position: absolute; left: 20px; top: 20px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}
.features strong { display: block; }
.features span { color: var(--muted); font-size: .95rem; }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.steps p { color: var(--muted); }
.step-num {
  display: inline-block; font-size: 2rem; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* CTA */
.cta { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 72px 0; text-align: center; }
.cta p { opacity: .9; margin-bottom: 26px; font-size: 1.1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-info { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.contact-info li { display: flex; flex-direction: column; }
.contact-info span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-info a:hover { color: var(--primary); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.field.invalid input, .field.invalid textarea { border-color: #ef4444; }
.form-status { margin-top: 14px; font-weight: 500; text-align: center; min-height: 1.5em; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }
.form-note { margin-top: 6px; font-size: .85rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--primary); text-decoration: underline; }

/* Footer */
.footer { background: var(--text); color: #cbd5e1; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.footer nav a:hover { color: #fff; }
.footer p { font-size: .9rem; }

/* Legal pages (privacy.html, terms.html) */
.legal-content { max-width: 800px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-updated { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }
.legal-content h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-content p, .legal-content li { color: #334155; margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 12px; }
.legal-content a { color: var(--primary); text-decoration: underline; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; max-width: 480px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; text-align: center; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 60px 0 70px; }
  .section { padding: 70px 0; }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; }
  .mock-phone { width: 130px; height: 240px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
