/* ==========================================================================
   Layups are Hard Foundation — homepage stylesheet
   Dark theme · orange-red accent · near-black surface
   ========================================================================== */

:root {
  --bg: #0B0E14;
  --bg-2: #111624;
  --bg-3: #1A2130;
  --panel: #131A27;
  --panel-2: #0E121C;
  --ink: #E8EAED;
  --ink-strong: #FFFFFF;
  --muted: #9AA4B6;
  --muted-2: #C3CAD6;
  --accent: #F0502E;
  --accent-2: #FF6B35;
  --accent-deep: #C93E20;
  --accent-ink: #1B0A05;
  --line: #242C3A;
  --light: #F4F1EC;
  --light-ink: #10141C;
  --light-muted: #5A6270;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home-page {
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-strong);
}

/* --------------------------------------------------------------------------
   Pill-shaped floating navigation
   -------------------------------------------------------------------------- */
.pill-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 22px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
}

.pill-nav.scrolled {
  background-color: var(--bg-3);
}

.pill-nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--ink-strong);
  white-space: nowrap;
}

.pill-nav-brand span {
  color: var(--accent);
}

.pill-nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pill-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pill-nav-links a:hover {
  color: var(--ink-strong);
  background-color: var(--bg-3);
}

.pill-nav-cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  background-color: var(--accent);
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pill-nav-cta:hover {
  background-color: var(--accent-2);
  transform: translateY(-1px);
}

.pill-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pill-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink-strong);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pill-nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.pill-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.pill-nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Asymmetric two-column hero
   -------------------------------------------------------------------------- */
.asymmetric-hero {
  position: relative;
  padding: 168px 0 96px;
  background:
    radial-gradient(1200px 600px at 82% -10%, rgba(240, 80, 46, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(255, 107, 53, 0.07), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.asymmetric-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.06;
}

.hero-lede {
  font-size: 18px;
  color: var(--muted-2);
  max-width: 560px;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.btn {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-strong);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 38px;
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--ink-strong);
}

.stat-num::after {
  content: "+";
  color: var(--accent);
}

.hero-stats li:nth-child(2) .stat-num::after {
  content: "%";
}

.hero-stats li:nth-child(3) .stat-num::after {
  content: "";
}

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

/* Hero visual / angled quote panel */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-panel {
  position: relative;
  background: linear-gradient(160deg, var(--bg-3), var(--panel));
  border: 1px solid var(--line);
  padding: 44px 40px;
  max-width: 440px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
}

.hero-panel-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-panel-quote {
  margin: 22px 0 28px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-strong);
  font-family: var(--font-display);
}

.hero-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.hero-panel-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.hero-panel-sub {
  font-size: 13px;
  color: var(--muted);
}

.hero-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.hero-chip-a {
  top: -26px;
  right: 4px;
}

.hero-chip-b {
  bottom: 14px;
  left: -20px;
}

.chip-kicker {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.chip-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-strong);
}

/* --------------------------------------------------------------------------
   Shared section scaffolding
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head-tight {
  margin-bottom: 44px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

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

/* --------------------------------------------------------------------------
   Method section (numbered four phase model)
   -------------------------------------------------------------------------- */
.method-section {
  padding: 96px 24px;
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.method-step {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.method-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.method-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.method-step h3 {
  font-size: 20px;
}

.method-step p {
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Comparison table section
   -------------------------------------------------------------------------- */
.comparison-section {
  padding: 96px 24px;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(240, 80, 46, 0.08), transparent 60%),
    var(--bg);
}

.comparison-table-wrap {
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--panel);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table thead th {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  background-color: var(--bg-3);
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line);
}

.comparison-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 18px 24px;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line);
  background-color: var(--panel);
  white-space: nowrap;
}

.comparison-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.col-designed {
  color: var(--ink-strong) !important;
  background-color: #F0502E14;
}

.comparison-table thead .col-designed {
  color: var(--accent-2) !important;
  background-color: #F0502E1F;
}

.comparison-note {
  max-width: 980px;
  margin: 28px auto 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Bento grid section
   -------------------------------------------------------------------------- */
.bento-grid {
  padding: 96px 24px;
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
}

.bento-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 20px;
}

.bento-card {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.bento-tall {
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: var(--bg-3);
  color: var(--accent-2);
}

.bento-card h3 {
  font-size: 20px;
}

.bento-card p {
  font-size: 15px;
  color: var(--muted);
}

.bento-tall p {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Engagement / contact section
   -------------------------------------------------------------------------- */
.engagement-section {
  padding: 96px 24px;
  background:
    radial-gradient(800px 400px at 10% 80%, rgba(255, 107, 53, 0.1), transparent 55%),
    var(--bg);
}

.engagement-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.engagement-copy .section-title {
  text-align: left;
}

.engagement-copy .section-kicker {
  text-align: left;
}

.engagement-copy .section-desc {
  margin-bottom: 26px;
}

.engagement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.engagement-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--muted-2);
}

.engagement-list .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.contact-form {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #6B7486;
}

.form-note {
  font-size: 14px;
  color: var(--accent-2);
  min-height: 20px;
}

/* --------------------------------------------------------------------------
   Split dark / light footer
   -------------------------------------------------------------------------- */
.footer-split {
  border-top: 1px solid var(--line);
}

.footer-dark {
  background-color: var(--bg-2);
  padding: 70px 24px 60px;
}

.footer-dark-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-light {
  background-color: var(--light);
  color: var(--light-ink);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

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

.footer-light p:first-child {
  color: var(--light-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Scroll reveal animation (JS + no-JS safe)
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-wrap {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .bento-tall,
  .bento-wide {
    grid-column: span 2;
    grid-row: auto;
  }

  .engagement-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-dark-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .pill-nav {
    gap: 12px;
    padding: 10px 12px;
  }

  .pill-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 4px;
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    width: 220px;
    box-shadow: var(--shadow);
  }

  .pill-nav-links.open {
    display: flex;
  }

  .pill-nav-links a {
    text-align: center;
    padding: 12px;
  }

  .pill-nav-cta {
    display: none;
  }

  .pill-nav-toggle {
    display: flex;
  }

  .asymmetric-hero {
    padding: 140px 0 72px;
  }

  .hero-chip-a {
    right: -6px;
  }

  .hero-chip-b {
    left: -6px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .bento-wrap {
    grid-template-columns: 1fr;
  }

  .bento-tall,
  .bento-wide {
    grid-column: span 1;
  }

  .footer-dark-grid {
    grid-template-columns: 1fr;
  }
}
