:root {
  --bg: #fbfcfe;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #94a3b8;
  --border: #e2e8f0;
  --blue: #2563eb;
  --purple: #7c3aed;
  --indigo: #4f46e5;
  --rose: #e11d48;
  --emerald: #059669;
  --amber: #d97706;
  --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--muted { background: #f8fafc; }
.section--dark { background: #0f172a; color: #f8fafc; position: relative; overflow: hidden; }

.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.8);
}
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-text span { color: var(--blue); }

.nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { border: none; background: transparent; cursor: pointer; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px -20px rgba(37, 99, 235, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 32px -20px rgba(37, 99, 235, 0.8); }
.btn-ghost { color: var(--muted); font-weight: 700; font-size: 13px; }

.mobile-toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.hero { position: relative; padding: 140px 0 120px; overflow: hidden; }
.hero__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__glow span {
  position: absolute;
  width: 50%;
  height: 50%;
  filter: blur(120px);
  border-radius: 999px;
}
.hero__glow .glow-left { top: -10%; left: -10%; background: rgba(191, 219, 254, 0.6); }
.hero__glow .glow-right { top: 20%; right: -10%; background: rgba(233, 213, 255, 0.55); }
.hero__content { position: relative; z-index: 1; text-align: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eef2ff;
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
}
.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.hero__title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  margin: 28px 0 24px;
}
.hero__title span { color: var(--blue); }
.hero__subtitle {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: #94a3b8;
  font-weight: 600;
}
.hero__input {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  border-radius: 999px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2ff;
  max-width: 720px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}
.hero__input input {
  flex: 1 1 220px;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  background: transparent;
  color: #0f172a;
}
.hero__input input::placeholder {
  color: #cbd5f5;
}
.hero__input button {
  flex: 0 0 auto;
  padding: 16px 30px;
  border-radius: 999px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: white;
  border: 1px solid #eef2ff;
  border-radius: 32px;
  padding: 36px;
  box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.35); }
.card h3 { margin: 12px 0 8px; font-size: 20px; }
.card p { margin: 0; color: #94a3b8; font-weight: 600; font-size: 14px; }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: white;
}
.icon-badge.blue { background: rgba(37, 99, 235, 0.12); color: var(--blue); }
.icon-badge.purple { background: rgba(124, 58, 237, 0.12); color: var(--purple); }
.icon-badge.rose { background: rgba(225, 29, 72, 0.12); color: var(--rose); }
.icon-badge.emerald { background: rgba(5, 150, 105, 0.12); color: var(--emerald); }
.icon-badge.amber { background: rgba(217, 119, 6, 0.12); color: var(--amber); }

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.section-title span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-title h2 { font-size: clamp(32px, 4vw, 48px); margin: 12px 0; font-weight: 900; }
.section-title p { color: #94a3b8; font-weight: 600; }

.workflow { position: relative; }
.workflow::before {
  content: "";
  position: absolute;
  top: 28%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0));
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  z-index: 0;
}
.workflow-card {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 36px;
  color: #e2e8f0;
}
.workflow-card h3 { color: white; margin: 16px 0 12px; }
.workflow-card p { color: #cbd5f5; font-weight: 600; }
.workflow-card .icon-badge { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.workflow-card.purple .icon-badge { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.workflow-card.green .icon-badge { background: rgba(5, 150, 105, 0.2); color: #6ee7b7; }

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
}
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th,
.table td { padding: 18px 20px; font-size: 14px; font-weight: 700; }
.table thead th { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #94a3b8; background: #f8fafc; }
.table thead th:nth-child(2) { color: var(--blue); background: rgba(59, 130, 246, 0.08); border-left: 1px solid #dbeafe; border-right: 1px solid #dbeafe; }
.table tbody td:nth-child(2) { background: rgba(59, 130, 246, 0.05); border-left: 1px solid #dbeafe; border-right: 1px solid #dbeafe; }
.table th:not(:first-child),
.table td:not(:first-child) { text-align: center; }
.table th:first-child,
.table td:first-child { text-align: left; }
.table tbody tr { border-top: 1px solid #e2e8f0; }
.table tbody tr:last-child td:first-child { border-bottom-left-radius: 24px; }
.table tbody tr:last-child td:last-child { border-bottom-right-radius: 24px; }

.faq-list { display: grid; gap: 20px; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 18px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: #94a3b8; font-weight: 600; }

.cta {
  background: var(--indigo);
  color: white;
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta p { color: rgba(224, 231, 255, 0.9); font-weight: 600; }

.footer {
  padding: 96px 0 48px;
  border-top: 1px solid #e2e8f0;
  background: white;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer p { font-weight: 600; color: #94a3b8; font-size: 15px; }
.footer h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #94a3b8; font-weight: 700; font-size: 14px; }
.footer a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom small { color: #cbd5f5; font-weight: 700; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.socials a:hover { border-color: #bfdbfe; color: var(--blue); }

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.auth-modal.is-open { opacity: 1; pointer-events: auto; }
.auth-modal .auth-card { transform: scale(0.96); transition: transform 0.2s ease; }
.auth-modal.is-open .auth-card { transform: scale(1); }
.auth-modal.is-open { opacity: 1; pointer-events: auto; }
.auth-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 36px;
  padding: 40px;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.8);
}
.auth-card h2 { margin: 0 0 8px; }
.auth-card p { margin: 0 0 24px; color: #94a3b8; font-weight: 600; }
.auth-card label { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; color: #94a3b8; text-transform: uppercase; }
.auth-card input {
  width: 100%;
  border: none;
  background: #f8fafc;
  border-radius: 20px;
  padding: 14px 18px;
  margin-top: 8px;
  font-weight: 700;
}
.auth-card .error { color: var(--rose); background: #fff1f2; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 12px; display: none; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .workflow::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 96px; }
  .hero__input { border-radius: 32px; }
  .hero__input button { width: 100%; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
