/* ===== BASE TOKENS ===== */
:root {
  --bg: #0e1117;
  --bg-2: #141820;
  --bg-3: #1a2030;
  --fg: #e8ecf0;
  --fg-2: #8899a8;
  --fg-3: #556070;
  --accent: #00e5c3;
  --accent-dim: rgba(0, 229, 195, 0.12);
  --accent-glow: rgba(0, 229, 195, 0.25);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 10px;
  --radius-lg: 18px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 56px;
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 195, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 195, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 229, 195, 0.08) 0%, transparent 65%);
}
.hero-jet {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-jet-1 {
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(0, 229, 195, 0.5), transparent);
  top: 10%; right: -10%;
}
.hero-jet-2 {
  width: 350px; height: 200px;
  background: radial-gradient(ellipse, rgba(0, 180, 200, 0.4), transparent);
  bottom: 15%; left: -5%;
}
.hero-jet-3 {
  width: 200px; height: 400px;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 195, 0.3), transparent);
  top: 5%; left: 30%;
  border-radius: 40px;
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 195, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--fg);
  max-width: 760px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-2);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0e14;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #00ffdd;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 195, 0.3);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.hero-cta-note {
  font-size: 0.82rem;
  color: var(--fg-3);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  width: fit-content;
  overflow: hidden;
}
.hero-stat {
  padding: 20px 32px;
  text-align: center;
}
.hero-stat:first-child { padding-left: 32px; }
.hero-stat:last-child { padding-right: 32px; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  transition: background 0.2s;
}
.step:last-child { border-right: none; }
.step:hover { background: var(--bg-3); }
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 229, 195, 0.2);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.step:hover .step-num { color: var(--accent); }
.step-body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 0.82rem;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ===== FEATURES ===== */
.features { padding: 120px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-2); }
.feature-icon {
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ===== INVOICE SHOWCASE ===== */
.invoiceshowcase {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.invoice-preview {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}
.invoice-window {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,195,0.08);
}
.invoice-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.invoice-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.invoice-dot.red { background: #ff5f57; }
.invoice-dot.yellow { background: #ffbd2e; }
.invoice-dot.green { background: #28ca41; }
.invoice-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--fg-3);
  font-family: monospace;
}
.invoice-body {
  padding: 32px;
  background: #ffffff;
  color: #1a1a2e;
}
.invoice-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f5;
}
.invoice-business {
  display: flex;
  align-items: center;
  gap: 14px;
}
.invoice-logo-placeholder {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.invoice-biz-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #0e1117;
}
.invoice-biz-contact {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 2px;
}
.invoice-meta { text-align: right; }
.invoice-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  display: block;
}
.invoice-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0e1117;
}
.invoice-date { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }
.invoice-address-block {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 6px;
}
.invoice-customer {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 4px;
}
.invoice-customer-addr {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.invoice-table thead th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #f0f0f5;
  color: #9ca3af;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.invoice-table thead th:not(:first-child) { text-align: right; }
.invoice-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f0f5;
  color: #374151;
}
.invoice-num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f5;
}
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6b7280;
}
.invoice-total-row span:last-child {
  font-variant-numeric: tabular-nums;
}
.invoice-grand-total {
  font-family: var(--font-display);
  font-size: 1rem !important;
  font-weight: 700;
  color: #0e1117 !important;
  padding-top: 10px !important;
  border-top: 2px solid #0e1117;
  margin-top: 4px;
}
.invoice-footer {
  border-top: 1px solid #f0f0f5;
  padding-top: 16px;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}
.invoice-footer-biz {
  margin-top: 4px;
  font-size: 0.72rem;
}
.invoice-callout h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 16px;
}
.invoice-callout p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 0;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.closing-accent { color: var(--accent); }
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--fg-3);
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--fg-2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  font-size: 0.78rem;
  color: var(--fg-3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(5) { display: none; }
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(even) { border-right: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .invoice-preview { grid-template-columns: 1fr; }
  .invoice-callout { margin-top: 40px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  html { font-size: 15px; }
  .section-heading { margin-bottom: 36px; }
  .hero { min-height: auto; padding: 90px 0 60px; }
  .hero-headline { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-actions { gap: 16px; }
  .hero-stats {
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
  }
  .hero-stat {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:first-child { padding-left: 20px; }
  .hero-stat:last-child { padding-right: 20px; border-bottom: none; }
  .hero-stat-divider { display: none; }
  .stat-num { font-size: 1.3rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 0 20px; }
  .invoice-preview { gap: 32px; }
  .invoice-body { padding: 20px; }
  .invoice-header-row { flex-direction: column; gap: 12px; }
  .invoice-meta { text-align: left; }
  .invoice-table { font-size: 0.8rem; }
  .invoice-table th, .invoice-table td { padding: 7px 8px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .closing { padding: 80px 0; }
  .footer-links { gap: 16px; }
  .footer-bottom { font-size: 0.72rem; }
  .footer-inner { padding: 0 20px; }
  .footer-bottom { padding: 0 20px; }
  /* invoice showcase - ensure table scrolls horizontally on small phones */
  .invoice-table { min-width: 380px; }
}

@media (max-width: 480px) {
  .invoice-preview { padding-left: 0; padding-right: 0; }
  .invoice-window { border-radius: var(--radius); }
  .section-inner { padding: 0 16px; }
  .closing-headline { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}

/* ===== SELECTION & SCROLLBAR ===== */
::selection { background: var(--accent-dim); color: var(--accent); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }
