@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:           #060912;
  --bg-2:         #0b0f1e;
  --surface:      #0f1424;
  --surface-2:    #141929;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);
  --primary:      #3b5bdb;
  --primary-dim:  rgba(59,91,219,0.12);
  --primary-glow: rgba(59,91,219,0.25);
  --text:         #f1f3f9;
  --text-2:       #8b92a9;
  --text-3:       #555e7a;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.6);
  --max-w:        1160px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────── */
.container {
  width: min(var(--max-w), 90%);
  margin-inline: auto;
}

section { padding: 96px 0; }

/* ── Typography ─────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(59,91,219,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

/* ── Nav ────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6,9,18,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 40px;
}

.brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.brand span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-actions { display: none; }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: #2f4bc0;
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ── Hero ───────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(59,91,219,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-line {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 14px;
}

/* ── Trust bar ──────────────────────────── */
.trust-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* ── App mockup ─────────────────────────── */
.mockup-wrapper {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
}

.mockup-frame {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), var(--shadow-lg);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.mockup-dot.red    { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green  { background: #22c55e; }

.mockup-url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-3);
  max-width: 320px;
  margin-inline: auto;
  text-align: center;
}

.mockup-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}

.mockup-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
}

.mock-nav-item.active {
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 600;
}

.mock-nav-dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.mockup-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.mock-kpi {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.mock-kpi-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.mock-kpi-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.mock-kpi-value.green { color: var(--success); }
.mock-kpi-value.orange { color: var(--warning); }

.mock-table { width: 100%; border-collapse: collapse; }

.mock-table th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mock-table td {
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mock-table td:first-child { color: var(--text); font-weight: 500; }

.mock-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.mock-badge.paid   { background: rgba(34,197,94,0.1);  color: var(--success); }
.mock-badge.sent   { background: rgba(59,91,219,0.12); color: #7c9dff; }
.mock-badge.late   { background: rgba(239,68,68,0.1);  color: var(--danger); }
.mock-badge.draft  { background: rgba(255,255,255,0.05); color: var(--text-3); }

/* ── Section base ───────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 560px;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

/* ── Problem section ────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problem-card {
  background: var(--surface);
  padding: 36px 32px;
}

.problem-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,0.1);
  border-radius: var(--radius-sm);
  color: var(--danger);
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.problem-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── Benefits ───────────────────────────── */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benefits-list { display: flex; flex-direction: column; gap: 28px; }

.benefit-item { display: flex; gap: 18px; }

.benefit-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--primary-dim);
  border: 1px solid rgba(59,91,219,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

.benefit-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.benefit-item p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── Modules ────────────────────────────── */
.modules-section { background: var(--bg-2); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.module-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background 0.2s;
}

.module-card:hover { background: var(--surface-2); }

.module-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-dim);
  border: 1px solid rgba(59,91,219,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.module-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.module-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Stats ──────────────────────────────── */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--surface);
  padding: 36px 32px;
  text-align: center;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  margin-bottom: 6px;
}

.stat-label { font-size: 13px; color: var(--text-2); }

/* ── Security ───────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.security-card .icon {
  width: 44px; height: 44px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
  margin-bottom: 18px;
}

.security-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.security-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── FAQ ────────────────────────────────── */
.faq-section { background: var(--bg-2); }

.faq-list { max-width: 760px; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-q svg {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.25s;
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

.faq-item.open .faq-a { display: block; }

/* ── CTA final ──────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(59,91,219,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { font-family: 'DM Sans', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: 13px; color: var(--text-3); line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text-2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Cookie ─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin-inline: auto;
  flex-wrap: wrap;
}

.cookie-banner p { font-size: 13px; color: var(--text-2); flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--primary); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-actions { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 65px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 199;
  }

  .nav-links.open .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2.2rem; }

  .problems-grid { grid-template-columns: 1fr; }
  .benefits-layout { grid-template-columns: 1fr; gap: 48px; }
  .modules-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mockup-content { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
