/* ==========================================================================
   Right Hook Dev — landing page
   ========================================================================== */

:root {
  /* Dark UA widgets: scrollbars, form controls, focus rings. */
  color-scheme: dark;

  --bg: #000000;
  --bg-elev: #0a0a0b;
  --bg-elev-2: #101012;

  --text: #f4f4f5;
  --text-dim: #a1a1a6;
  --text-faint: #757579;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --accent: #ff5a36;
  --accent-soft: rgba(255, 90, 54, 0.16);

  --shell: 1160px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

p {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: #000;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------- shared bits */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--text);
  color: #000;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.site-header.is-menu-open {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-menu-open {
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex: none;
  stroke-width: 2;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

.logo:hover .logo-mark {
  transform: translateX(2px);
}

.logo-suffix {
  margin-left: 6px;
  color: var(--text-faint);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.925rem;
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

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

.nav .nav-cta {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-3px);
}

.nav-toggle span:last-child {
  transform: translateY(3px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(72px, 13vw, 148px) 0 clamp(40px, 5vw, 56px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -44%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
      circle at 50% 50%,
      rgba(255, 90, 54, 0.13),
      transparent 58%
    ),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.07), transparent 52%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.028) 0 1px,
    transparent 1px 96px
  );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}

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

.hero-title {
  max-width: none;
  font-size: clamp(2.55rem, 7.4vw, 5.25rem);
  letter-spacing: -0.045em;
}

.hero-sub {
  max-width: 54ch;
  margin-top: 26px;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.5vw, 1.185rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: clamp(48px, 7vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.capabilities li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-faint);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.capabilities li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

/* ------------------------------------------------------------------ section */

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.section-title {
  max-width: 24ch;
  font-size: clamp(1.95rem, 4.4vw, 3.1rem);
}

/* -------------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--bg-elev);
  transition: background 0.3s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at 50% 0%,
    rgba(255, 90, 54, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

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

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 26px;
  color: var(--accent);
  stroke-width: 1.4;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  letter-spacing: -0.028em;
}

.card p {
  max-width: 42ch;
  color: var(--text-dim);
  font-size: 0.965rem;
  line-height: 1.66;
}

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

.track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(30px, 3.6vw, 48px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 1.8vw, 22px);
  overflow: hidden;
}

.track > *:not(.track-glow) {
  position: relative;
  z-index: 1;
}

/* The in-house track is the one new thing on the page, so it carries the
   accent; the client track stays quiet beside it. */
.track-primary {
  border-color: rgba(255, 90, 54, 0.28);
}

.track-glow {
  position: absolute;
  top: -55%;
  left: 50%;
  width: min(620px, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 90, 54, 0.13),
    transparent 58%
  );
  pointer-events: none;
}

.track-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track:not(.track-primary) .track-label {
  color: var(--text-faint);
}

.track h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  text-wrap: balance;
}

.track-body {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.66;
}

.track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.track-meta li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------------------- steps */

.section-capabilities,
.section-approach {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 3.6vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}

.step-body {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: start;
}

.step-body h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.step-body p {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.0rem;
  line-height: 1.66;
}

/* ----------------------------------------------------------------------- cta */

.section-contact {
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.cta {
  position: relative;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 72px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  width: min(900px, 120%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 90, 54, 0.12),
    transparent 56%
  );
  pointer-events: none;
}

.cta > *:not(.cta-glow) {
  position: relative;
  z-index: 1;
}

.cta-title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
}

.cta-sub {
  max-width: 50ch;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}

.email-link {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.email-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

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

.copyright {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------- reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.07s; }
[data-reveal-delay="2"] { transition-delay: 0.14s; }
[data-reveal-delay="3"] { transition-delay: 0.21s; }
[data-reveal-delay="4"] { transition-delay: 0.28s; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .step-num {
    padding-top: 0;
  }

  .step-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1.05rem;
  }

  .nav .nav-cta {
    height: 48px;
    margin-top: 20px;
    justify-content: center;
    border-bottom: 1px solid var(--line-strong);
  }

  .tracks {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero-title {
    max-width: none;
  }

  .btn {
    width: 100%;
  }

  .capabilities {
    gap: 10px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------- legal */
/* Long-form text pages: privacy policy, support. */

.legal {
  padding: clamp(56px, 9vw, 104px) 0 clamp(88px, 11vw, 148px);
}

.legal .shell {
  max-width: 780px;
}

.legal-title {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.legal-meta {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.legal-lead {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.66;
}

.legal h2 {
  margin: clamp(44px, 6vw, 60px) 0 16px;
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  letter-spacing: -0.028em;
}

.legal h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--text-dim);
  line-height: 1.72;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0;
  padding-left: 1.2em;
  list-style: disc;
}

.legal li + li {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--text-faint);
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

.legal a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.legal .btn-primary {
  margin-top: 24px;
  border-bottom: 1px solid transparent;
  color: #000;
}

.legal .btn-primary:hover {
  color: #000;
  border-bottom-color: transparent;
}
