:root {
  --bg: #0a0a14;
  --bg-2: #0f0f1e;
  --surface: #13132a;
  --surface-2: #191936;
  --border: #1e1e3f;
  --text: #f0ede8;
  --text-muted: #7a7a9a;
  --teal: #00d4aa;
  --purple: #8b5cf6;
  --green: #22c55e;
  --amber: #f59e0b;
  --teal-dim: rgba(0, 212, 170, 0.12);
  --purple-dim: rgba(139, 92, 246, 0.12);
  --green-dim: rgba(34, 197, 94, 0.12);
}

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

html { font-size: 16px; }

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

/* Gradient text utility */
.grad-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.btn-nav {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--teal);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-nav:hover { opacity: 0.85; }

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-cta-group { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--text); }

.hero-social-proof {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-avatars { display: flex; }

.social-avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal);
}

.social-avatars span:first-child { margin-left: 0; }

.proof-text { font-size: 0.8rem; color: var(--text-muted); }

/* Hero illustration */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.card-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 4px 10px;
  border-radius: 100px;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.invoice-line:last-child { border-bottom: none; }

.invoice-label { color: var(--text-muted); }
.invoice-value { color: var(--text); font-weight: 600; }

.invoice-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.total-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
}

.card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.card-paid-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 3px 10px;
  border-radius: 100px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Free tool section */
.free-tool {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.free-tool-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.free-tool-header { text-align: center; margin-bottom: 64px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-label.teal { color: var(--teal); }
.section-label.purple { color: var(--purple); }
.section-label.green { color: var(--green); }

.section-label-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.section-label-icon.teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.section-label-icon.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.section-label-icon.green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.free-tool-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.free-tool-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Invoice form / preview layout */
.invoice-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.invoice-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.form-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--text);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.btn-generate {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-generate:hover { opacity: 0.88; transform: translateY(-1px); }

/* Invoice preview */
.invoice-preview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  color: #1a1a1a;
  position: sticky;
  top: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}

.preview-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #0f172a;
}

.preview-brand-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.preview-inv-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
  text-align: right;
}

.preview-inv-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
}

.preview-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.preview-meta-block label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  display: block;
  margin-bottom: 4px;
}

.preview-meta-block .meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.preview-table th {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.preview-table th:last-child { text-align: right; }
.preview-table td { padding: 10px 12px; font-size: 0.85rem; color: #374151; border-bottom: 1px solid #f3f4f6; }
.preview-table td:last-child { text-align: right; font-weight: 600; }

.preview-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 28px;
}

.preview-total-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
}

.preview-total-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #0f172a;
}

.preview-notes {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.6;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.preview-placeholder {
  text-align: center;
  color: #d1d5db;
  padding: 40px 20px;
  font-size: 0.85rem;
}

.preview-placeholder-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* CTA section */
.cta-section {
  padding: 100px 48px;
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Pricing cards */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: border-color 0.3s;
}

.pricing-card:hover { border-color: rgba(0, 212, 170, 0.3); }

.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 60px rgba(0, 212, 170, 0.08);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--teal), var(--purple), var(--green));
  z-index: -1;
  opacity: 0.4;
}

.card-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pricing-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.pricing-tag.free {
  color: var(--teal);
  background: var(--teal-dim);
}

.pricing-tag.pro {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
}

.pricing-tag.setup {
  color: var(--green);
  background: var(--green-dim);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon.teal { background: var(--teal-dim); color: var(--teal); }
.card-icon.purple { background: var(--purple-dim); color: var(--purple); }
.card-icon.green { background: var(--green-dim); color: var(--green); }

.pricing-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pricing-card .card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.pricing-price {
  margin-bottom: 28px;
}

.price-main {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.price-main .price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.price-note.green { color: var(--green); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-card:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-card.primary {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
}

.btn-card.outline {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.btn-card.outline:hover { border-color: var(--text-muted); color: var(--text); }

.btn-card.green {
  background: var(--green);
  color: #052e16;
}

.personal-touch {
  margin-top: 28px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.personal-touch-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.personal-touch p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Email capture */
.email-section {
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.email-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.email-inner h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.email-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input:focus { border-color: var(--teal); }
.email-form input::placeholder { color: var(--text-muted); }

.email-form button {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.email-form button:hover { opacity: 0.85; }

.email-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.7;
}

/* Closing quote */
.closing {
  padding: 96px 48px;
  text-align: center;
}

.closing-inner { max-width: 760px; margin: 0 auto; }

.closing h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 36px;
}

.closing-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

/* Email success */
.email-success {
  display: none;
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--green);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .cta-inner,
  .invoice-builder { grid-template-columns: 1fr; }
  .free-tool, .cta-section, .email-section, .closing, .footer { padding-left: 24px; padding-right: 24px; }
  .nav { padding: 16px 24px; }
  .email-form { flex-direction: column; }
}

@media (max-width: 600px) {
  .pricing-card { padding: 28px 24px; }
  .invoice-preview-card { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* Print styles for invoice PDF */
@media print {
  .nav, .invoice-form-card, .btn-generate, .hero, .cta-section,
  .email-section, .closing, .footer, .section-divider { display: none !important; }

  body { background: white; color: black; }

  .invoice-preview-card {
    box-shadow: none;
    border: none;
    padding: 40px;
    position: static;
  }
}