:root {
  --black: #111111;
  --white: #ffffff;
  --surface: #f5f5f5;
  --border: #e6e6e6;
  --text-light: #686868;
  --text-dark: #a6a6a6;
  --escalea: #c6ff3d;
  --line-dark: rgba(255, 255, 255, .14);
  --page-pad: 32px;
  --section-pad: clamp(96px, 9vw, 128px);
  --motion: 200ms ease-out;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

svg { display: block; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; }

.container {
  width: 100%;
  max-width: calc(1200px + var(--page-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* Logo */
.logo { display: block; flex: none; }

.logo img { display: block; width: 153px; height: auto; }

.logo--small img { width: 113px; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }

.main-nav { display: flex; gap: 40px; font-size: 15px; }

.main-nav a { position: relative; padding-block: 8px; color: var(--text-dark); transition: color var(--motion); }

.main-nav a:hover, .main-nav a.is-active { color: var(--white); }

.main-nav a.is-active::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--white); }

.lang { display: flex; padding: 2px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 13px; }

.lang button { padding: 6px 10px; border-radius: 999px; color: var(--text-dark); transition: background var(--motion), color var(--motion); }

.lang button[aria-pressed="true"] { background: var(--white); color: var(--black); font-weight: 500; }

.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--motion), background var(--motion), color var(--motion);
}

.btn:hover { transform: translateY(-2px); }

.btn-arrow { width: 16px; height: 16px; flex: none; }

.btn--light { background: var(--white); color: var(--black); }

.btn--outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }

.btn--outline:hover { background: var(--white); color: var(--black); }

.btn--dark { background: var(--black); color: var(--white); }

.btn--escalea { background: var(--escalea); color: var(--black); }

/* Shared section parts */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .25em; color: var(--black); }

.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }

.eyebrow--dark { color: var(--white); }

h2 { margin-top: 16px; font-size: clamp(28px, 4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }

.section-text { max-width: 400px; font-size: 16px; line-height: 1.5; color: var(--text-light); }

/* Hero */
.hero { overflow: hidden; background: var(--black); }

.hero-row {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 16px;
  padding-top: 136px;
  padding-bottom: 72px;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 5.300vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-text { max-width: 480px; margin-top: 24px; font-size: 18px; line-height: 1.5; color: var(--text-dark); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero-art {
  display: block;
  width: 124%;
  max-width: none;
  height: auto;
  margin-left: -8%;
  mask-image: radial-gradient(farthest-corner, #000 68%, transparent 100%);
}

/* Services */
.services { padding-block: var(--section-pad); background: var(--surface); color: var(--black); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(17, 17, 17, .04);
  transition: transform var(--motion), box-shadow var(--motion);
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(17, 17, 17, .06); }

.card-icon { display: block; width: 48px; height: 48px; margin-left: -6px; }

.card h3 { margin-top: 24px; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }

.card p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--text-light); }

/* Products */
.products { padding-block: var(--section-pad); background: var(--black); }

.products .section-text { color: var(--text-dark); }

.escalea {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
}

.escalea-art {
  display: flex;
  justify-content: center;
  height: 440px;
  padding-top: 48px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 60%, rgba(198, 255, 61, .13), transparent 75%);
}

/* Escalea app mock, cropped by the card at the bottom */
.phone {
  flex: none;
  width: 264px;
  height: 560px;
  padding: 32px 18px;
  border: 6px solid #2a2a2a;
  border-radius: 36px;
  background: #0b0b0b;
}

.phone-symbol { display: block; width: 40px; height: 40px; margin: -10px 0 10px -6px; }

.phone-today { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.phone-sub { margin-top: 4px; font-size: 13px; color: var(--text-dark); }

.phone-chart { margin-block: 20px 12px; padding: 14px; border-radius: 14px; background: #1b1b1b; }

.phone-label { font-size: 12px; color: var(--text-dark); }

.phone-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 12px; }

.phone-bars i { flex: 1; border-radius: 3px; background: var(--escalea); }

.phone-bars i:nth-child(1) { height: 28%; opacity: .45; }
.phone-bars i:nth-child(2) { height: 40%; opacity: .55; }
.phone-bars i:nth-child(3) { height: 48%; opacity: .65; }
.phone-bars i:nth-child(4) { height: 62%; opacity: .75; }
.phone-bars i:nth-child(5) { height: 78%; opacity: .85; }
.phone-bars i:nth-child(6) { height: 100%; }

.phone-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1b1b1b;
  font-size: 13px;
}

.phone-row b { font-weight: 500; color: var(--escalea); }

.escalea-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 48px; }

/* Provisional Escalea wordmark: kit symbol as the "E" plus "scalea", same construction as the kit logo */
.escalea-logo { display: flex; align-items: flex-end; gap: 9px; font-size: 43px; font-weight: 700; line-height: .78; letter-spacing: -.043em; }

.escalea-logo svg { width: 1.45em; height: auto; flex: none; margin-bottom: -.08em; }

.escalea h3 { margin-top: 24px; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }

.escalea-text { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--text-dark); }

.escalea .btn { margin-top: 32px; }

.escalea-note { margin-top: 16px; font-size: 12px; color: var(--text-dark); }

/* Contact */
.contact {
  padding-block: var(--section-pad);
  border-radius: 24px;
  background: var(--surface);
  color: var(--black);
}

.contact-row { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }

.contact-intro .section-text { margin-top: 16px; }

.contact-email { display: inline-block; margin-top: 24px; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.field { display: grid; gap: 8px; }

.field--wide, .form-end { grid-column: 1 / -1; }

.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field label { font-size: 14px; font-weight: 500; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #b4b4b4;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--motion);
}

.field textarea { resize: vertical; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--black);
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-radius: 10px;
}

.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.btn--dark:disabled { opacity: .6; cursor: progress; transform: none; }

.form-status { font-size: 14px; line-height: 1.4; color: var(--text-light); }

/* Footer */
.site-footer { padding-block: 40px; }

.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; color: var(--text-dark); }

.footer-nav a { transition: color var(--motion); }

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

/* Privacy page */
.legal { padding-block: 64px 96px; background: var(--surface); color: var(--black); }

.legal-body { max-width: 720px; }

.legal h1 { font-size: clamp(36px, 4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }

.legal h2 { margin-top: 64px; font-size: 28px; }

.legal h3 { margin-top: 32px; font-size: 20px; font-weight: 600; }

.legal p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text-light); }

.legal a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

.legal-header { padding-block: 24px; }

/* Tablet */
@media (max-width: 900px) {
  :root { --page-pad: 20px; --section-pad: 72px; }

  .logo img { width: 121px; }

  .logo--small img { width: 113px; }

  .menu-toggle { display: grid; order: 3; place-content: center; gap: 6px; width: 40px; height: 40px; }

  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform var(--motion); }

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

  .lang { margin-left: auto; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--page-pad) 24px;
    background: var(--black);
    border-bottom: 1px solid var(--line-dark);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a.is-active::after { display: none; }

  .hero-row { grid-template-columns: 1fr; gap: 24px; padding-top: 120px; padding-bottom: 32px; }

  .hero h1 { font-size: clamp(36px, 7.500vw, 44px); }

  .hero-text { font-size: 16px; }

  .hero-art { width: min(100%, 520px); margin-inline: auto; }

  h2 { font-size: clamp(28px, 6vw, 34px); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  .escalea { grid-template-columns: 1fr; margin-top: 32px; }

  .escalea-art { order: 2; height: 360px; padding-top: 32px; }

  .escalea-content { padding: 32px 28px; }

  .contact-row { grid-template-columns: 1fr; gap: 32px; }

  .footer-row { flex-direction: column; }

  .footer-nav { justify-content: center; }
}

/* Phone */
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }

  .contact-form { grid-template-columns: 1fr; }

  .form-end .btn { width: 100%; }
}

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

  * { transition: none !important; }

  .btn:hover, .card:hover { transform: none; }
}
