/* ============================================================
   SECTION-SPECIFIC STYLES — Hero, Problem, Process, etc.
   AIWork-Inspired Redesign
   ============================================================ */

/* ========== BODY PADDING FOR FLOATING NAV ========== */
body {
  padding-top: 5.5rem;
}


/* ========== HERO ========== */
.hero {
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
  text-align: center;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Multi-color radial glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(24, 224, 199, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Dot grid background */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--hero-dot-color) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  transition: background-image 0.45s ease;
}

.hero-particles canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  position: absolute;
  inset: 0;
}

.hero-particles canvas.active {
  opacity: 1;
}

.hero h1 {
  margin-bottom: var(--space-6);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: var(--text-lg);
  max-width: 42rem;
  margin: 0 auto var(--space-8);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .hero-sub { font-size: var(--text-xl); }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

.hero-micro {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-8);
  letter-spacing: 0.02em;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.hero-visual {
  max-width: 72rem;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  color: var(--color-text-subtle);
  font-size: var(--text-sm);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.1), 0 32px 80px rgba(0, 0, 0, 0.4);
}

/* Hero visual gradient border effect */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.hero-visual .comparison-slider {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Comparison Slider ---- */
.comparison-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.comparison-after {
  position: relative;
  width: 100%;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  overflow: hidden;
}

.comparison-label {
  position: absolute;
  top: var(--space-3);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  pointer-events: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-label-before {
  left: var(--space-3);
  background: rgba(30, 30, 30, 0.88);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.comparison-label-after {
  right: var(--space-3);
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.35);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3px;
  transform: translateX(-50%);
  cursor: ew-resize;
  outline: none;
}

.comparison-handle-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-accent) 20%, var(--color-purple) 80%, transparent);
  box-shadow: 0 0 10px rgba(24, 224, 199, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
}

.comparison-handle-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5), 0 0 48px rgba(24, 224, 199, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring);
}

.comparison-handle-grip:hover,
.comparison-handle:focus-visible .comparison-handle-grip {
  transform: scale(1.1);
}

.comparison-handle-grip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@keyframes sliderNudge {
  0%, 100% { left: 50%; }
  30% { left: 40%; }
  60% { left: 60%; }
}

.comparison-slider.slider-nudge .comparison-handle {
  animation: sliderNudge 1.2s ease-in-out;
}

.comparison-slider.slider-nudge .comparison-before {
  animation: sliderNudgeClip 1.2s ease-in-out;
}

@keyframes sliderNudgeClip {
  0%, 100% { clip-path: inset(0 50% 0 0); }
  30% { clip-path: inset(0 60% 0 0); }
  60% { clip-path: inset(0 40% 0 0); }
}

.mockup-label-before { color: var(--color-text-subtle); }
.mockup-label-after  { color: var(--color-accent); }

.mockup-browser {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  flex: 1;
}

.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: var(--color-elevated);
  border-bottom: 1px solid var(--color-border);
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup-url-bar {
  flex: 1;
  height: 16px;
  background: var(--color-bg);
  border-radius: 4px;
  margin-left: 6px;
}

.mockup-page {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-height: 180px;
}

.mockup-page-messy {
  align-items: flex-start;
  opacity: 0.75;
  overflow: hidden;
}

.mockup-page-clean {
  align-items: center;
  overflow: hidden;
}

.mockup-browser-glow {
  border-color: var(--color-purple-30);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mockup-dot-live {
  background: var(--color-accent) !important;
  box-shadow: 0 0 6px rgba(24, 224, 199, 0.5);
}

.mockup-url-bar-secure {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
}

.mockup-caption {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-top: var(--space-4);
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 639px) {
  .hero-visual {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
  }
  .comparison-handle-grip { width: 32px; height: 32px; }
  .comparison-handle-grip svg { width: 12px; height: 12px; }
}


/* ========== PROBLEM ========== */
.problem { background: var(--color-bg); }

.problem-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem-card .card-desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  flex: 1;
}

.problem-card .card-result {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}


/* ========== PROCESS (How It Works) ========== */
.process {
  background: var(--color-bg);
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.process-steps {
  display: grid;
  gap: var(--space-6);
  position: relative;
}

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}

.process-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: border-color var(--duration) var(--ease-default), box-shadow var(--duration) var(--ease-default);
}

.process-step:hover {
  border-color: var(--color-blue-20);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.08);
}

.process-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.process-step-day {
  display: inline-block;
  padding: 0.2rem var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-blue-10);
  color: var(--color-blue);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--color-blue-20);
}

.process-step h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.process-step p {
  font-size: var(--text-base);
  max-width: 20rem;
  color: var(--color-text-muted);
}

/* Connector lines (desktop) */
.process-connector {
  display: none;
}

@media (min-width: 768px) {
  .process-connector-line {
    display: block;
    position: absolute;
    top: 3rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(168, 85, 247, 0.3));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 2;
  }
}


/* ========== DELIVERABLES ========== */
.deliverables {
  background: var(--color-bg);
  position: relative;
}

.deliverables::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.deliverables-tab-content {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .deliverables-tab-content { grid-template-columns: repeat(2, 1fr); }
}

.deliverables-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration), box-shadow var(--duration);
}

.deliverables-item:hover {
  border-color: var(--color-accent-20);
  box-shadow: 0 0 20px rgba(24, 224, 199, 0.05);
}

.deliverables-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-10);
  border: 1px solid var(--color-accent-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.deliverables-item-text {
  flex: 1;
}

.deliverables-item-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.deliverables-item-text span {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

.deliverables-col h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}


/* ========== PRICING ========== */
.pricing {
  background: var(--color-bg);
  position: relative;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card-header {
  margin-bottom: var(--space-6);
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.04em;
}

.pricing-original {
  font-size: var(--text-lg);
  color: var(--color-text-subtle);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.2em;
}

.pricing-popular-badge {
  position: absolute;
  top: calc(-0.85rem);
  left: 50%;
  transform: translateX(-50%);
}


/* ========== TRUST ========== */
.trust {
  background: var(--color-bg);
  position: relative;
}

.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(24, 224, 199, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.trust-bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .trust-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .trust-bento { grid-template-columns: repeat(4, 1fr); }
}

.trust-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.trust-card h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  line-height: var(--leading-relaxed);
}

.early-box {
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  max-width: 40rem;
  margin: var(--space-16) auto 0;
  position: relative;
  overflow: hidden;
}

.early-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.early-box h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  text-align: center;
  letter-spacing: -0.03em;
}


/* ========== FAQ ========== */
.faq {
  background: var(--color-bg);
  position: relative;
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--max-w-md);
  margin: 0 auto;
}


/* ========== FINAL CTA ========== */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(24, 224, 199, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin-bottom: var(--space-4);
}

.final-cta > .container > p {
  max-width: 36rem;
  margin: 0 auto var(--space-8);
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .final-cta-buttons { flex-direction: row; }
}


/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .nav-logo {
  position: static;
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  color: var(--color-text-subtle);
  max-width: 20rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  transition: color var(--duration) var(--ease-default);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}


/* ========== LIGHT MODE SECTION OVERRIDES ========== */

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(168, 85, 247, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(24, 224, 199, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero-visual {
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 32px 80px rgba(0, 0, 0, 0.08);
  border-color: var(--color-border);
}

[data-theme="light"] .hero-visual::before {
  opacity: 0.3;
}

[data-theme="light"] .mockup-browser {
  background: var(--color-bg);
  border-color: var(--color-border);
}

[data-theme="light"] .mockup-browser-bar {
  background: var(--color-elevated);
  border-bottom-color: var(--color-border);
}

[data-theme="light"] .mockup-url-bar {
  background: var(--color-surface);
}

[data-theme="light"] .mockup-browser-glow {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Process steps: richer card shadow, blue-tinted section */
[data-theme="light"] .process {
  background: linear-gradient(180deg, #f7f6f2 0%, rgba(59, 130, 246, 0.04) 50%, #f7f6f2 100%);
}

[data-theme="light"] .process-step {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Pricing: subtle purple glow from below */
[data-theme="light"] .pricing {
  background: linear-gradient(180deg, #f7f6f2 0%, rgba(168, 85, 247, 0.05) 60%, #f7f6f2 100%);
}

[data-theme="light"] .pricing::before {
  opacity: 0.6;
}

/* Trust: subtle teal tint */
[data-theme="light"] .trust {
  background: linear-gradient(180deg, #f7f6f2 0%, rgba(24, 224, 199, 0.05) 50%, #f7f6f2 100%);
}

[data-theme="light"] .trust::before {
  opacity: 0.6;
}

/* Founding client offer box: filled gradient tint instead of plain white */
[data-theme="light"] .early-box {
  background: linear-gradient(135deg, rgba(24, 224, 199, 0.07) 0%, rgba(168, 85, 247, 0.07) 100%);
  border-color: transparent;
}

/* Final CTA: bold gradient section in light mode */
[data-theme="light"] .final-cta {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.07) 0%, rgba(24, 224, 199, 0.07) 100%);
}

[data-theme="light"] .final-cta::before {
  opacity: 0.7;
}

/* FAQ: subtle purple tint at bottom */
[data-theme="light"] .faq {
  background: linear-gradient(180deg, #f7f6f2 0%, rgba(168, 85, 247, 0.03) 100%);
}

[data-theme="light"] .faq::before {
  opacity: 0.6;
}
