/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg-elevated: #0e1220;
  --bg-card: #111827;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --fg-subtle: #475569;
  --accent: #f59e0b;
  --accent-dim: rgba(245,158,11,0.12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.1);
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(245,158,11,0.25);

  --recruit: #f59e0b;
  --account: #06b6d4;
  --ecom: #a855f7;
  --trades: #22c55e;
  --clinic: #f472b6;
  --prop: #38bdf8;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

/* === HERO === */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 48px 60px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(245,158,11,0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.hero-headline-accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.65;
}

.hero-verticals-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.pill-1 { background: rgba(245,158,11,0.12); color: var(--recruit); border: 1px solid rgba(245,158,11,0.2); }
.pill-2 { background: rgba(6,182,212,0.1); color: var(--account); border: 1px solid rgba(6,182,212,0.2); }
.pill-3 { background: rgba(168,85,247,0.1); color: #a855f7; border: 1px solid rgba(168,85,247,0.2); }
.pill-4 { background: rgba(34,197,94,0.1); color: var(--trades); border: 1px solid rgba(34,197,94,0.2); }
.pill-5 { background: rgba(244,114,182,0.1); color: var(--clinic); border: 1px solid rgba(244,114,182,0.2); }
.pill-6 { background: rgba(56,189,248,0.1); color: var(--prop); border: 1px solid rgba(56,189,248,0.2); }

/* === FLOW DIAGRAM === */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-diagram {
  position: relative;
  width: 480px;
  height: 480px;
}

.flow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.flow-center-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 40px rgba(245,158,11,0.2), inset 0 0 20px rgba(245,158,11,0.05);
  position: relative;
  z-index: 3;
}

.flow-center-core span {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.flow-center-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.flow-ring-1 { width: 160px; height: 160px; }
.flow-ring-2 { width: 220px; height: 220px; border-style: dashed; }

.flow-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.flow-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-recruit { background: var(--recruit); box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.dot-account { background: var(--account); box-shadow: 0 0 8px rgba(6,182,212,0.5); }
.dot-ecom { background: #a855f7; box-shadow: 0 0 8px rgba(168,85,247,0.5); }
.dot-trades { background: var(--trades); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.dot-clinic { background: var(--clinic); box-shadow: 0 0 8px rgba(244,114,182,0.5); }
.dot-prop { background: var(--prop); box-shadow: 0 0 8px rgba(56,189,248,0.5); }

.flow-node-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  line-height: 1.35;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
}

.flow-node-label span {
  display: block;
  font-size: 10px;
  color: var(--fg-subtle);
  font-weight: 400;
  margin-top: 2px;
}

.flow-node-1 { top: 12px; left: 50%; transform: translateX(-50%); flex-direction: column; gap: 4px; }
.flow-node-2 { top: 80px; right: 20px; }
.flow-node-3 { bottom: 80px; right: 20px; }
.flow-node-4 { bottom: 12px; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; gap: 4px; }
.flow-node-5 { bottom: 80px; left: 20px; }
.flow-node-6 { top: 80px; left: 20px; }

.flow-connector {
  position: absolute;
  background: rgba(255,255,255,0.04);
  z-index: 1;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
}

/* === VERTICALS === */
.verticals {
  padding: 80px 48px;
  max-width: 1300px;
  margin: 0 auto;
}

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

.vertical-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.vertical-card:hover {
  transform: translateY(-2px);
}

.vc-recruit:hover { border-color: rgba(245,158,11,0.3); }
.vc-account:hover { border-color: rgba(6,182,212,0.3); }
.vc-ecom:hover { border-color: rgba(168,85,247,0.3); }
.vc-trades:hover { border-color: rgba(34,197,94,0.3); }
.vc-clinic:hover { border-color: rgba(244,114,182,0.3); }
.vc-prop:hover { border-color: rgba(56,189,248,0.3); }

.vc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-recruit .vc-icon { background: var(--accent-dim); color: var(--recruit); }
.vc-account .vc-icon { background: var(--cyan-dim); color: var(--account); }
.vc-ecom .vc-icon { background: rgba(168,85,247,0.1); color: #a855f7; }
.vc-trades .vc-icon { background: rgba(34,197,94,0.08); color: var(--trades); }
.vc-clinic .vc-icon { background: rgba(244,114,182,0.08); color: var(--clinic); }
.vc-prop .vc-icon { background: rgba(56,189,248,0.08); color: var(--prop); }

.vc-stack { display: flex; flex-direction: column; gap: 10px; }

.vc-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}

.vc-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-muted);
}

.vc-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.vc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vc-features li {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 14px;
  position: relative;
}

.vc-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.vc-recruit .vc-features li::before { background: var(--recruit); }
.vc-account .vc-features li::before { background: var(--account); }
.vc-ecom .vc-features li::before { background: #a855f7; }
.vc-trades .vc-features li::before { background: var(--trades); }
.vc-clinic .vc-features li::before { background: var(--clinic); }
.vc-prop .vc-features li::before { background: var(--prop); }

/* === HOW === */
.how {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
}

.step {
  flex: 1;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 50px;
  position: relative;
}

.step-connector::after {
  content: '→';
  position: absolute;
  right: -2px;
  top: -12px;
  color: var(--fg-subtle);
  font-size: 18px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.tech-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-label {
  font-size: 12px;
  color: var(--fg-subtle);
  font-family: var(--font-display);
  margin-right: 4px;
}

.tech-tag {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

/* === PRICING === */
.pricing {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.pricing-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-col-header {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  padding: 14px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.ph-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.ph-price, .ph-detail { text-align: right; }

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}

.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: rgba(255,255,255,0.02); }

.pr-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.pr-price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.pr-detail {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: right;
}

.pricing-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-subtle);
  text-align: center;
}

/* === STACKS === */
.stacks {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.stacks-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.stacks-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stacks-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
}

.stacks-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.stack-comparison {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sc-block { display: flex; flex-direction: column; gap: 8px; }

.sc-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.sc-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.sc-fill { height: 100%; border-radius: 3px; }
.sc-fill-customer { background: var(--fg-subtle); }
.sc-fill-ap { background: var(--accent); }

.sc-cost {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
}

.stack-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.ss-item { text-align: center; }

.ss-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.ss-label {
  font-size: 12px;
  color: var(--fg-subtle);
  line-height: 1.4;
}

/* === CLOSING === */
.closing {
  padding: 100px 48px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

.closing-eyebrow {
  font-size: 13px;
  color: var(--fg-subtle);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 32px;
}

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ctag {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-subtle);
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-subtle);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 48px; }
  .hero-visual { display: none; }
  .verticals, .how, .pricing, .stacks, .closing { padding: 60px 24px; }
  .verticals-grid { grid-template-columns: 1fr 1fr; }
  .stacks-inner { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { flex-direction: column; gap: 16px; }
  .step-connector { display: none; }
  .pricing-row { grid-template-columns: 1fr 1fr; }
  .pr-detail { display: none; }
  .stack-stats { grid-template-columns: repeat(3, 1fr); }
  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .verticals-grid { grid-template-columns: 1fr; }
  .pricing-col-header, .pricing-row { grid-template-columns: 1fr 1fr; }
  .ph-detail, .pr-detail { display: none; }
  .stack-stats { grid-template-columns: 1fr; gap: 16px; }
}