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

:root {
  --primary: #1a56db;
  --primary-dark: #1442a8;
  --primary-light: #e8f0fe;
  --accent: #0d9488;
  --accent-light: #ccfbf1;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  margin-right: 4px;
  font-size: 1.125rem;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 0.938rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.highlight { color: var(--primary); }
.hero-sub {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.trust-tag {
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.813rem;
  color: var(--text);
}

/* Flow diagram */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.938rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon-accent {
  background: var(--accent-light);
  color: var(--accent);
}
.flow-step span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.flow-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 4px;
}

/* ===== Features ===== */
.features { padding: 96px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.063rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  margin-top: 16px;
  font-size: 1.063rem;
  font-weight: 700;
}
.feature-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 96px 0;
  background: var(--bg-alt);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.step { text-align: center; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.063rem; font-weight: 700; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* ===== Pricing ===== */
.pricing { padding: 96px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
  background: var(--bg);
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card-popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.price-card-popular:hover { transform: scale(1.04); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.price-amount {
  margin-top: 8px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.currency { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-users {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.price-features {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.6 9.6l5.3-5.3a1 1 0 011.4 0z' fill='currentColor'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.6 9.6l5.3-5.3a1 1 0 011.4 0z' fill='currentColor'/%3E%3C/svg%3E");
}
.price-card .btn { margin-top: 28px; }
.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.938rem;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact {
  padding: 96px 0;
  background: var(--bg-alt);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact-info p {
  margin-top: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-details { margin-top: 32px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.contact-item a {
  font-size: 1rem;
  font-weight: 500;
}

/* Form */
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.938rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-group textarea { resize: vertical; }

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-dark);
  color: #94a3b8;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
.footer .logo { color: #fff; }
.footer .logo-mark { background: var(--primary); }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  color: #94a3b8;
  font-size: 0.875rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  margin-top: 16px;
  font-size: 0.813rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }

  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 1.875rem; }
  .hero-sub { font-size: 1rem; }

  .flow-diagram { gap: 12px; padding: 20px 16px; }
  .flow-icon { width: 44px; height: 44px; font-size: 0.813rem; }
  .flow-arrow { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-popular { transform: none; }
  .price-card-popular:hover { transform: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 2.25rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
