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

:root {
  --bg: #0A0A0C;
  --bg-surface: #111115;
  --bg-card: #18181D;
  --bg-card-hover: #1F1F26;
  --accent: #E8502A;
  --accent-light: #FF6B42;
  --accent-glow: rgba(232, 80, 42, 0.15);
  --text-primary: #F2EDE4;
  --text-secondary: #A8A39A;
  --text-muted: #6B6860;
  --border: rgba(242, 237, 228, 0.08);
  --border-strong: rgba(242, 237, 228, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 100px;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #E8502A 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #FF6B42 0%, transparent 70%);
  bottom: 100px;
  left: -100px;
  opacity: 0.2;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 237, 228, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 228, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--text-primary);
  margin-bottom: 28px;
  max-width: 800px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ===== SECTION SHARED ===== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 640px;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 40px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.problem-header {
  margin-bottom: 60px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background 0.2s;
}

.problem-card:hover {
  background: var(--bg-card-hover);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(232, 80, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.problem-punchline {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

.problem-punchline strong {
  color: var(--accent);
  font-weight: 700;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 40px;
}

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

.services-inner .section-heading {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--border-strong);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 40px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.pricing-inner .section-label { display: block; }
.pricing-inner .section-heading { max-width: 100%; margin: 0 auto 48px; }

.pricing-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 60px;
  text-align: left;
  position: relative;
  max-width: 440px;
  width: 100%;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-currency {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  align-self: flex-start;
  margin-top: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  color: var(--text-primary);
  letter-spacing: -3px;
  line-height: 1;
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(232, 80, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.pricing-note strong { color: var(--text-primary); }

.pricing-revenue {
  margin-top: 32px;
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-revenue strong { color: var(--accent); font-weight: 700; }

/* ===== PROCESS ===== */
.process {
  padding: 100px 40px;
}

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

.process-inner .section-heading { margin-bottom: 60px; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

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

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  min-width: 80px;
  opacity: 0.6;
}

.step-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 100px 40px 120px;
  position: relative;
  overflow: hidden;
}

.closing-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.closing-blob {
  position: absolute;
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(232, 80, 42, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.closing-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 120px 24px 80px; min-height: auto; }
  .hero-headline { letter-spacing: -1.5px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat { padding: 0; }
  .stat-divider { display: none; }

  .problem { padding: 80px 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 16px; }
  .problem-card { padding: 24px; }

  .services { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }

  .pricing { padding: 80px 24px; }
  .pricing-card { padding: 36px 28px; }

  .process { padding: 80px 24px; }
  .process-step { flex-direction: column; gap: 12px; }
  .step-num { font-size: 32px; min-width: auto; }

  .closing { padding: 80px 24px 100px; }

  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-meta { text-align: center; }
}

/* ===== PORTAL SHARED ===== */
.portal-body {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg);
}

.portal-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.portal-header {
  margin-bottom: 48px;
}

.portal-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.portal-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.1;
}

.portal-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FORM ===== */
.intake-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.field label span {
  color: var(--accent);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6860' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.field .hint {
  font-size: 12px;
  color: var(--text-muted);
}

.field-error {
  font-size: 12px;
  color: #e8502a;
  display: none;
}

.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--accent);
}

/* ===== BUTTON ===== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}

.btn-primary:hover { background: var(--accent-light); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== SUCCESS ===== */
.success-screen {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.success-screen.visible {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid rgba(232, 80, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.success-screen h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.success-screen p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover { text-decoration: underline; }

/* ===== DASHBOARD ===== */
.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -1.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.dashboard-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.dashboard-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.client-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}

.client-count-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  border-left: 1px solid var(--border-strong);
}

.stat-pair:first-child { border-left: none; }

.stats-row {
  display: flex;
  gap: 0;
  align-items: center;
  margin-bottom: 40px;
}

/* ===== CLIENT TABLE ===== */
.client-table-wrap {
  overflow-x: auto;
}

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

.client-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}

.client-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: top;
}

.client-table tr:hover td {
  background: var(--bg-card);
}

.client-table tr:last-child td { border-bottom: none; }

.client-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.client-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid;
}

.status-new {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}

.status-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.status-paused {
  background: rgba(107, 104, 96, 0.15);
  border-color: rgba(107, 104, 96, 0.3);
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.goals-cell {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 220px;
  line-height: 1.5;
}

.date-cell {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== ACTION BUTTONS ===== */
.action-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6860' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.action-select:hover { border-color: var(--border-strong); }

.table-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.table-empty p {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.table-empty small { font-size: 13px; }

/* ===== CTA BUTTON ===== */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}

.cta-button:hover {
  background: var(--accent-light);
  text-decoration: none;
}

.cta-button:active { transform: scale(0.98); }

@media (max-width: 480px) {
  .stat-num { font-size: 26px; }
  .price-amount { font-size: 56px; }
  .section-heading { font-size: 28px; letter-spacing: -1px; }
  .cta-button { display: block; text-align: center; }
}
