/* ==================== DESIGN SYSTEM TOKENS ==================== */
:root {
  --bg: #ffffff;
  --bg-2: #fafaf7;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6b6b;
  --muted-2: #8a8a8a;
  --border: #ececec;
  --border-2: #f3f3f0;
  --coral: #FF6A2C;
  --coral-2: #FF8A47;
  --coral-soft: #FFE8D6;
  --coral-bg: #FFF4ED;
  --purple: #8B5CF6;
  --purple-soft: #EDE4FF;
  --radius: 24px;
  --radius-lg: 32px;
  --maxw: 1280px;
  --shadow: 0 4px 20px -4px rgba(15,15,15,.06);
  --shadow-lg: 0 12px 40px -8px rgba(15,15,15,.12);
}

/* ==================== GLOBAL STYLES ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}
img, svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  background: var(--ink);
  color: #fff;
  padding-block: 10px;
  padding-inline: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  transition: top .2s;
}
.skip-link:focus {
  top: 16px;
}

*:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: var(--coral);
  z-index: 200;
  pointer-events: none;
  transition: width .1s linear;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid rgba(0,0,0,0.04);
  z-index: 100;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
}
.logo-icon {
  width: 28px;
  height: 28px;
}
.logo-text {
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switch */
.lang-switch {
  display: flex;
  background: var(--border-2);
  padding: 3px;
  border-radius: 99px;
  gap: 2px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 700;
  padding-block: 5px;
  padding-inline: 10px;
  border-radius: 99px;
  color: var(--muted);
  transition: all .2s;
}
.lang-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ==================== BUTTONS ==================== */
.btn-coral, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 10px;
  padding-inline: 18px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 14px;
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover {
  background: #e55a1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 106, 44, 0.2);
}
.btn-coral:active {
  transform: translateY(0);
}
.btn-coral.lg {
  padding-block: 14px;
  padding-inline: 28px;
  font-size: 16px;
}
.btn-coral.sm {
  padding-block: 8px;
  padding-inline: 16px;
  font-size: 13px;
}
.btn-coral.full {
  width: 100%;
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-ghost.lg {
  padding-block: 14px;
  padding-inline: 28px;
  font-size: 16px;
}

/* Hamburger menu button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 110;
}
.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: all .3s ease;
  transform-origin: inset-inline-start;
}
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 100vh;
  background: #ffffff;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding-block-start: 100px;
  padding-inline: 32px;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu-links a {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
}

/* ==================== HERO ==================== */
.hero {
  padding-block-start: 160px;
  padding-block-end: 80px;
  background: radial-gradient(circle at 80% 20%, var(--coral-bg) 0%, transparent 60%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}
.eyebrow-pill {
  display: inline-block;
  padding-block: 6px;
  padding-inline: 14px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  border-radius: 99px;
  margin-block-end: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-block-end: 24px;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  margin-block-end: 36px;
  max-width: 68ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ==================== SECTIONS ==================== */
.section {
  padding-block: 100px;
  border-block-start: 1px solid var(--border-2);
}
.section:nth-of-type(even) {
  background: var(--bg-2);
}
.section-head {
  max-width: 650px;
  margin-block-end: 60px;
}
.section-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-block-end: 12px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
}

/* ==================== PIPELINE / FLOW STEPS ==================== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.flow-step {
  padding: 40px;
  background: #ffffff;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all .25s ease;
}
.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--coral-soft);
  box-shadow: var(--shadow-lg);
}
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  margin-block-end: 24px;
  background: var(--coral-bg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-block-end: 12px;
  color: var(--ink);
}
.flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== BENTO / JOBS GRID ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.bento-card {
  display: flex;
  flex-direction: column;
  padding: 44px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral-soft);
}
.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block-end: 28px;
}
.tag-badge {
  font-size: 11px;
  font-weight: 700;
  padding-block: 4px;
  padding-inline: 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bg-coral-soft {
  background: var(--coral-soft);
}
.text-coral {
  color: var(--coral);
}
.bg-gray {
  background: var(--border-2);
  color: var(--muted);
}
.bg-purple-soft {
  background: var(--purple-soft);
}
.text-purple {
  color: var(--purple);
}

.card-role-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-block-end: 16px;
  color: var(--ink);
}
.card-role-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-block-end: 32px;
  min-height: 72px;
}

.card-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block-end: auto;
  padding-block-end: 40px;
}
.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.bullet-icon {
  width: 14px;
  height: 14px;
  color: var(--coral);
  flex-shrink: 0;
  margin-block-start: 2px;
}

.card-action {
  width: 100%;
}

/* Aesthetic Card Overrides */
.accent-card {
  border-color: var(--coral-soft);
  background: linear-gradient(180deg, #ffffff 0%, var(--coral-bg) 100%);
}
.dark-card {
  background: var(--ink-2);
  color: #ffffff;
  border-color: #2a2a2a;
}
.dark-card .card-role-title, .dark-card .bullet-item {
  color: #ffffff;
}
.dark-card .card-role-desc {
  color: #a0a0a0;
}
.dark-card .tag-badge.bg-gray {
  background: #2a2a2a;
  color: #a0a0a0;
}

/* ==================== VALUES GRID ==================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  padding: 44px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value-icon {
  width: 52px;
  height: 52px;
  background: var(--coral-bg);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-block-end: 28px;
}
.value-icon svg {
  width: 24px;
  height: 24px;
}
.value-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== FAQ ==================== */
.faq-shell {
  max-width: 800px;
  margin-inline: auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all .2s ease;
}
details[open] {
  border-color: var(--coral-soft);
  box-shadow: var(--shadow);
}
summary {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '＋';
  font-size: 14px;
  color: var(--muted);
  transition: transform .2s ease;
}
details[open] summary::after {
  content: '－';
}
details p {
  margin-block-start: 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== FINAL CTA BAND ==================== */
.final-band {
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.final-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 106, 44, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-copy {
  max-width: 600px;
}
.section-kicker.on-dark {
  color: var(--coral);
}
.section-title.on-dark {
  color: #ffffff;
  font-size: 36px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-2);
  padding-block: 80px;
  border-block-start: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand {
  max-width: 320px;
}
.footer-blurb {
  font-size: 13px;
  color: var(--muted);
  margin-block-start: 16px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover, .footer-links a.active-footer-link {
  color: var(--ink);
}
.footer-copy {
  width: 100%;
  font-size: 13px;
  color: var(--muted-2);
  border-block-start: 1px solid var(--border);
  padding-block-start: 24px;
  margin-block-start: 16px;
}

/* ==================== MODAL DIALOG ==================== */
.modal {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: calc(100% - 32px);
  margin: auto;
  background: #ffffff;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity .25s ease, transform .25s ease;
}
.modal[open] {
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;
}
.modal::backdrop {
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-form {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.modal-head {
  padding: 32px;
  border-block-end: 1px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-head h3 {
  font-size: 22px;
  color: var(--ink);
  margin-block-end: 6px;
}
.modal-head p {
  font-size: 13px;
  color: var(--muted);
}
.modal-close {
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
}
.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.form-row label .opt-text {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding-block: 12px;
  padding-inline: 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-2);
  color: var(--ink);
  transition: all .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}
.form-row textarea {
  resize: vertical;
  min-height: 90px;
}

/* Form Platform Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-block-start: 4px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--coral);
}

.modal-foot {
  padding: 24px 32px;
  border-block-start: 1px solid var(--border-2);
  background: var(--bg-2);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RTL / BILINGUAL CONFIGS ==================== */
html[dir="rtl"] body {
  font-family: 'Tahoma', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}
html[dir="rtl"] .hero-title {
  letter-spacing: normal;
}
html[dir="rtl"] summary::after {
  content: '＋';
  float: left;
}
html[dir="rtl"] details[open] summary::after {
  content: '－';
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }
  .bento-grid, .flow-steps, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }
  .nav-inner {
    padding-inline: 20px;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero {
    padding-block-start: 120px;
    padding-block-end: 60px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .bento-grid, .flow-steps, .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .final-band {
    flex-direction: column;
    padding: 40px;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
}
