/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-50:  #eef2f9;
  --navy-100: #d4dff0;
  --navy-200: #aabfe1;
  --navy-500: #3462b0;
  --navy-600: #274f9a;
  --navy-700: #1d3d7d;
  --navy-800: #162e63;
  --navy-900: #0f2049;
  --navy-950: #080e24;
  --green-400: #43b33d;
  --green-500: #2e9e34;
  --green-600: #267d2c;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--gray-800); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-subtle { background: var(--gray-50); }
.bg-navy { background: linear-gradient(170deg, var(--navy-950) 0%, var(--navy-800) 100%); }
.text-white { color: var(--white); }

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--navy-600); background: var(--navy-50);
  padding: 5px 14px; border-radius: var(--radius-full);
  margin-bottom: 16px; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-light { color: var(--green-400); background: rgba(255,255,255,0.08); }
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--gray-500); font-size: 1.0625rem; max-width: 540px; margin: 0 auto; }
.text-muted-light { color: rgba(255,255,255,0.6); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
  text-decoration: none; font-size: 0.9375rem;
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--green-500); color: var(--white); border-color: var(--green-500);
}
.btn-primary:hover {
  background: var(--green-600); border-color: var(--green-600);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,158,52,0.3);
}
.btn-outline {
  background: transparent; color: var(--navy-700); border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--navy-500); background: var(--navy-50); }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-nav {
  background: var(--green-500); color: var(--white); border-color: var(--green-500);
  padding: 8px 20px; font-size: 0.875rem; border-radius: var(--radius-full);
}
.btn-nav:hover { background: var(--green-600); border-color: var(--green-600); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s;
}
.nav-scrolled { background: rgba(255,255,255,0.95); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo-img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy-700); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 140px 0 100px; overflow: hidden;
  background: var(--navy-950); color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(52,98,176,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(46,158,52,0.15) 0%, transparent 50%);
}
.hero-container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-logo-wrap { margin-bottom: 32px; }
.hero-logo {
  height: 80px; width: auto;
  filter: drop-shadow(0 4px 24px rgba(255,255,255,0.15));
}
.hero h1 { font-size: 3.25rem; font-weight: 900; margin-bottom: 24px; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(135deg, var(--green-400) 0%, #6dd670 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.125rem; color: rgba(255,255,255,0.65);
  margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }

/* ── Story ────────────────────────────────────────────────────────────────── */
.story { max-width: 680px; margin: 0 auto; text-align: center; }
.story .section-title { margin-bottom: 32px; }
.story-body p {
  font-size: 1.0625rem; color: var(--gray-600);
  line-height: 1.8; margin-bottom: 20px; text-align: left;
}
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--navy-800); font-weight: 700; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.25s ease;
}
.feature-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.icon-blue   { background: #eff6ff; color: #3b82f6; }
.icon-green  { background: #f0fdf4; color: #22c55e; }
.icon-purple { background: #faf5ff; color: #a855f7; }
.icon-amber  { background: #fffbeb; color: #f59e0b; }
.icon-rose   { background: #fff1f2; color: #f43f5e; }
.icon-teal   { background: #f0fdfa; color: #14b8a6; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ── Security ─────────────────────────────────────────────────────────────── */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.security-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 28px;
  transition: background 0.2s;
}
.security-card:hover { background: rgba(255,255,255,0.07); }
.security-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(67,179,61,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.security-icon svg { width: 22px; height: 22px; color: var(--green-400); }
.security-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.security-card p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── Pricing toggle ──────────────────────────────────────────────────────── */
.pricing-toggle {
  position: relative; display: inline-flex;
  background: var(--gray-100); border-radius: var(--radius-full);
  padding: 4px; margin: 0 auto 48px; width: auto;
  display: flex; width: fit-content;
  margin-left: auto; margin-right: auto;
}
.pricing-toggle-bg {
  position: absolute; top: 4px; left: 4px; bottom: 4px;
  width: calc(50% - 4px); border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.pricing-toggle-btn {
  position: relative; z-index: 1;
  padding: 10px 28px; font-size: 0.875rem; font-weight: 600;
  border: none; border-radius: var(--radius-full); cursor: pointer;
  background: transparent; color: var(--gray-400);
  font-family: var(--font); transition: color 0.3s;
  white-space: nowrap;
}
.pricing-toggle-btn.active { color: var(--gray-900); }
.badge-save {
  background: var(--green-500); color: white;
  font-size: 0.6875rem; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-full); margin-left: 6px;
  vertical-align: middle;
}

/* ── Pricing cards ────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; transition: all 0.25s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--green-500);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--green-500);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green-500); color: white;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 18px; border-radius: var(--radius-full); white-space: nowrap;
}
.pricing-header h3 { font-size: 1.375rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.pricing-desc { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 24px; }
.pricing-price { margin-bottom: 24px; display: flex; align-items: baseline; gap: 2px; }
.price-amount { font-size: 3rem; font-weight: 900; color: var(--gray-900); letter-spacing: -0.03em; }
.price-currency { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-left: 4px; }
.price-suffix { font-size: 0.9375rem; color: var(--gray-400); font-weight: 500; margin-left: 2px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 7px 0; font-size: 0.875rem;
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: ''; display: inline-block; width: 18px; height: 18px;
  flex-shrink: 0; background-size: contain; background-repeat: no-repeat;
}
.pricing-features li.included { color: var(--gray-700); }
.pricing-features li.included::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232e9e34'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z' clip-rule='evenodd' /%3E%3C/svg%3E");
}
.pricing-features li.excluded { color: var(--gray-400); }
.pricing-features li.excluded::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d1d5db'%3E%3Cpath d='M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z' /%3E%3C/svg%3E");
}
.pricing-note { text-align: center; color: var(--gray-400); font-size: 0.8125rem; margin-top: 40px; }

/* ── Demo form ────────────────────────────────────────────────────────────── */
.demo-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start; max-width: 960px; margin: 0 auto;
}
.demo-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.demo-info > p { color: var(--gray-600); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 28px; }
.demo-benefits { list-style: none; }
.demo-benefits li {
  padding: 8px 0; font-size: 0.9375rem; color: var(--gray-700);
  display: flex; align-items: center; gap: 10px;
}
.demo-benefits li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  background-size: contain; background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232e9e34'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z' clip-rule='evenodd' /%3E%3C/svg%3E");
}
.demo-form {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--gray-400); }
.form-group input, .form-group select {
  width: 100%; padding: 10px 14px; font-size: 0.9375rem;
  font-family: var(--font); border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); background: var(--white);
  color: var(--gray-800); transition: all 0.2s;
  appearance: none; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46,158,52,0.1);
}
.form-group input::placeholder { color: var(--gray-400); }
.form-note { text-align: center; font-size: 0.8125rem; color: var(--gray-400); margin-top: 12px; transition: color 0.2s; }
.form-success { text-align: center; padding: 32px 0; }
.form-success h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.form-success p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 64px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo-text {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--white); margin-bottom: 12px; letter-spacing: -0.02em;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 280px; }
.footer-links h4 {
  color: var(--white); font-size: 0.8125rem; font-weight: 700;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-links a { display: block; font-size: 0.875rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; display: flex; justify-content: space-between;
  font-size: 0.8125rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-logo { height: 60px; }
  .features-grid, .security-grid,
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .demo-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 72px; }
  .hero h1 { font-size: 1.875rem; }
  .section { padding: 72px 0; }
  .section-title { font-size: 1.75rem; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
