:root {
  --bg: #0a0e14;
  --bg2: #0f1520;
  --bg3: #141c2e;
  --border: #1e2d47;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-glow-strong: rgba(0, 212, 255, 0.3);
  --text: #e8f0fe;
  --text-muted: #6b82a8;
  --text-dim: #3d5275;
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.1);
  --warning: #ffab40;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.nav-cta:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

/* HERO */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

h1 .accent { color: var(--accent); }
h1 .muted { color: var(--text-muted); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  display: inline-block;
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  display: inline-block;
}

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

/* TERMINAL BLOCK */
.terminal {
  margin-top: 4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 680px;
}

.terminal-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-label {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 2;
}

.t-comment { color: var(--text-dim); }
.t-cmd { color: var(--text); }
.t-cmd::before { content: '$ '; color: var(--accent); }
.t-out { color: var(--green); }
.t-warn { color: var(--warning); }

/* PROBLEM SECTION */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.9;
}

/* PAIN POINTS */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pain-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4444, #ff6b6b);
}

.pain-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pain-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pain-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.feature-num {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-3px); }

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg3);
}

.pricing-card.featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 6px 6px;
}

.tier-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

.price-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 300;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-features li.no::before {
  content: '—';
  color: var(--text-dim);
}

.btn-tier {
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.btn-tier-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-tier-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-tier-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-tier-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

/* HOW IT WORKS */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin-top: 3rem;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  padding-top: 0.65rem;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
}

.step-content code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  color: var(--accent);
}

/* COMPARISON */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.8rem;
}

.compare-table th {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.compare-table th:not(:first-child) { text-align: center; }

.compare-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(30, 45, 71, 0.5);
  color: var(--text-muted);
  font-weight: 300;
  vertical-align: middle;
}

.compare-table td:not(:first-child) { text-align: center; }

.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

.compare-table .highlight td {
  background: rgba(0, 212, 255, 0.04);
}

.compare-table .highlight td:nth-child(3) {
  color: var(--accent);
  font-weight: 500;
}

.check { color: var(--green); font-size: 1rem; }
.cross { color: #ff4444; font-size: 1rem; }
.partial { color: var(--warning); font-size: 0.8rem; }

/* FORM SECTION */
.form-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.form-wrapper {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #0066ff, var(--accent));
}

.form-wrapper h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.form-wrapper p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.8;
}

/* Zoho form placeholder */
.zoho-form-placeholder {
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.zoho-form-placeholder strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

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

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero > .container > * {
  animation: fadeUp 0.6s ease both;
}

.hero > .container > *:nth-child(1) { animation-delay: 0.1s; }
.hero > .container > *:nth-child(2) { animation-delay: 0.2s; }
.hero > .container > *:nth-child(3) { animation-delay: 0.3s; }
.hero > .container > *:nth-child(4) { animation-delay: 0.4s; }
.hero > .container > *:nth-child(5) { animation-delay: 0.5s; }

@media (max-width: 640px) {
  .hero { padding: 8rem 0 4rem; }
  .form-wrapper { padding: 2rem 1.5rem; }
  .compare-table { font-size: 0.72rem; }
  .compare-table th, .compare-table td { padding: 0.75rem 0.75rem; }
}
