/* ==========================================================================
   Nexorads — Purplish Performance Marketing Design System
   ========================================================================== */

:root {
  /* Core Purplish Color Grading */
  --bg-deep: #0b0713;
  --bg-elevated: #130d21;
  --bg-panel: #1a122e;
  --bg-panel-hover: #22183b;
  --bg-light: #f6f2fd;
  --bg-light-card: #ffffff;

  /* Brand Violet & Orchid Accents */
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-700: #6d28d9;
  --orchid-300: #d8b4fe;
  --orchid-400: #c084fc;
  --emerald-400: #34d399;

  /* Ink & Contrast */
  --text-primary: #f5f2fb;
  --text-secondary: #c3b7dc;
  --text-muted: #9b8cb9;
  --ink-dark: #140b29;
  --ink-dark-muted: #4b3d69;

  /* Borders & Elevation */
  --border-subtle: rgba(192, 132, 252, 0.16);
  --border-strong: rgba(192, 132, 252, 0.34);
  --border-light-surface: rgba(109, 40, 217, 0.14);
  --shadow-panel: 0 24px 56px -12px rgba(5, 2, 14, 0.72);
  --shadow-btn: 0 10px 24px -6px rgba(124, 58, 237, 0.52);

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout & Radii */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  position: relative;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orchid-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet-600);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   Ambient Purplish Grading Canvas
   ========================================================================== */

.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(124, 58, 237, 0.24), transparent 70%),
    linear-gradient(180deg, #0b0713 0%, #10091e 50%, #0b0713 100%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.42;
}

.orb-violet {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: #6d28d9;
}

.orb-orchid {
  width: 480px;
  height: 480px;
  top: 18%;
  right: -140px;
  background: #9333ea;
  opacity: 0.28;
}

.orb-indigo {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 25%;
  background: #4c1d95;
  opacity: 0.3;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 7, 19, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-out);
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #9b72fa, var(--violet-600));
}

.btn-secondary {
  background: rgba(192, 132, 252, 0.08);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(192, 132, 252, 0.16);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.65rem 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-cta {
  margin-top: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orchid-300);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
  color: #ffffff;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.hero-proof dt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-proof dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

/* Interactive Offer Explorer Console */
.offer-console {
  background: linear-gradient(165deg, rgba(28, 19, 49, 0.96), rgba(16, 10, 29, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-panel);
}

.console-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.console-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.console-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.console-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--violet-600);
  border-color: var(--violet-500);
  color: #ffffff;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.offer-row[hidden] {
  display: none;
}

.offer-row:hover {
  border-color: var(--border-strong);
  background: rgba(139, 92, 246, 0.08);
}

.offer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.offer-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orchid-400);
}

.offer-meta strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

.offer-geo {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.offer-payout {
  text-align: right;
  flex-shrink: 0;
}

.payout-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--emerald-400);
}

.payout-model {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.console-footer code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.status-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald-400);
  background: rgba(52, 211, 153, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(19, 13, 33, 0.72);
  padding: 1.5rem 0;
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.trust-caption {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}

.trust-badges li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orchid-300);
}

/* ==========================================================================
   Shared Section Rhythm
   ========================================================================== */

.section {
  padding: clamp(4.25rem, 7vw, 6.25rem) 0;
}

.section-head {
  max-width: 66ch;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Verticals Grid
   ========================================================================== */

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.vertical-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.vertical-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-panel-hover);
}

.vertical-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.vertical-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--orchid-300);
}

.vertical-rate {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald-400);
  background: rgba(52, 211, 153, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.vertical-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.vertical-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Solutions Hub (Publishers vs Advertisers)
   ========================================================================== */

.solutions-section {
  background: linear-gradient(180deg, rgba(26, 18, 46, 0.35), rgba(19, 13, 33, 0.85));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.solutions-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.solutions-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
}

.solutions-header p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-secondary);
}

.audience-switch {
  display: inline-flex;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.3rem;
}

.switch-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.switch-btn.is-active {
  background: var(--violet-600);
  color: #ffffff;
}

.solutions-panel {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 1.75rem;
  align-items: stretch;
}

.solutions-panel[hidden] {
  display: none;
}

.solution-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.solution-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.solution-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.solution-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.solution-cta-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(155deg, rgba(124, 58, 237, 0.28), rgba(26, 18, 46, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.solution-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
}

.solution-cta-box p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Light Contrast Band: Proprietary Technology
   ========================================================================== */

.tech-section {
  background: var(--bg-light);
  color: var(--ink-dark);
}

.tech-head h2 {
  color: var(--ink-dark);
}

.tech-head p {
  color: var(--ink-dark-muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 14px 36px -18px rgba(76, 29, 149, 0.22);
}

.tech-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-700);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: var(--ink-dark);
}

.tech-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-dark-muted);
}

.tech-card code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(124, 58, 237, 0.08);
  color: var(--violet-700);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ==========================================================================
   Payouts & Payment Rails
   ========================================================================== */

.payouts-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.payouts-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}

.payouts-copy > p {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tier-row {
  padding: 1rem 1.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.tier-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--orchid-300);
  margin-bottom: 0.2rem;
}

.tier-row span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rails-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.rails-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.rails-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rails-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.rails-grid li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.rails-grid strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

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

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  border-top: 1px solid var(--border-subtle);
  background: rgba(19, 13, 33, 0.55);
}

.faq-container {
  max-width: 880px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.faq-plus {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--orchid-400);
  transition: transform 0.2s var(--ease-out);
}

.faq-trigger[aria-expanded="true"] .faq-plus {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-content p {
  margin: 0;
}

/* ==========================================================================
   Application Section
   ========================================================================== */

.apply-box {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.2), rgba(22, 14, 41, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-panel);
}

.apply-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.apply-copy p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.apply-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.apply-highlights li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--orchid-300);
  font-weight: 500;
}

.apply-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-deep);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.role-pill {
  border: 0;
  background: transparent;
  padding: 0.6rem 0.9rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.role-pill.is-active {
  background: var(--violet-600);
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input,
.field select {
  background: rgba(11, 7, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  font-size: 0.95rem;
  color: #ffffff;
  transition: border-color 0.2s var(--ease-out);
}

.field input::placeholder {
  color: #b4a5d3;
  opacity: 1;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orchid-400);
}

.form-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-feedback {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-feedback.is-success {
  color: var(--emerald-400);
}

.form-feedback.is-error {
  color: #fda4af;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  background: #08050f;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 38ch;
  margin: 0.9rem 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .main-nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .solutions-panel,
  .payouts-grid,
  .apply-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .verticals-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-actions .btn-primary {
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verticals-grid,
  .tech-grid,
  .solution-feature-list,
  .rails-grid,
  .form-row,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .offer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-payout {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
