/* Etuper — international product UI
   Craft: global SaaS / design-system maturity (Pinterest-adjacent red,
   generous whitespace, soft elevation, precise type)
   Brand primary: #cc0000
*/

:root {
  --red: #cc0000;
  --red-dark: #b00000;
  --red-deep: #8f0000;
  --red-soft: rgba(204, 0, 0, 0.07);
  --red-glow: rgba(204, 0, 0, 0.14);
  --ink: #111111;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --surface: #f4f4f5;
  --surface-2: #fafafa;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 20px 50px rgba(17, 17, 17, 0.08), 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-sm: 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-ring: 0 0 0 1px rgba(17, 17, 17, 0.04);
  --max: 1140px;
  --nav-h: 68px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(204, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(204, 0, 0, 0.14);
  color: var(--ink);
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0.85rem;
  box-shadow: var(--focus);
}

button,
input,
textarea {
  font: inherit;
}

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

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 24px rgba(17, 17, 17, 0.03);
  background: rgba(255, 255, 255, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.75rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 0;
  border-radius: var(--radius-xs);
}

.brand__logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand__logo--footer {
  height: 26px;
  filter: grayscale(1);
  opacity: 0.72;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}

.brand__mark--footer {
  width: 32px;
  height: 32px;
  filter: grayscale(1);
  opacity: 0.72;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  letter-spacing: -0.01em;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--red);
  background: var(--red-soft);
}

.nav__toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-xs);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 0;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease), width 0.18s;
  transform-origin: center;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.925rem;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px rgba(204, 0, 0, 0.22);
}

.btn--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 28px rgba(204, 0, 0, 0.28);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

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

.btn--light:hover {
  background: var(--surface);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 5.25rem 0 5.75rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 88% 8%, var(--red-glow), transparent 58%),
    radial-gradient(ellipse 45% 40% at 8% 88%, rgba(204, 0, 0, 0.05), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-2) 55%, #f0f0f2 100%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--red-soft);
  border: 1px solid rgba(204, 0, 0, 0.08);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.15);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 4.8vw, 3.45rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.2rem;
  color: var(--ink);
  max-width: 14ch;
}

.hero__lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.85rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.85rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.55;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  isolation: isolate;
}

.hero-stage {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1 / 1.12;
  margin-inline: auto;
}

.hero-stage__glow {
  position: absolute;
  inset: 12% 8% 8%;
  background:
    radial-gradient(ellipse 70% 55% at 55% 45%, rgba(204, 0, 0, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 40% 60%, rgba(17, 17, 17, 0.06), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.hero-devices {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Hero reuses .device shell from work showcase */
.device--hero {
  position: absolute;
  width: 58%;
}

.device--hero.device--back {
  top: 6%;
  right: 0;
  width: 54%;
  transform: rotate(8deg) scale(0.96);
  z-index: 1;
  opacity: 0.94;
  filter: saturate(0.94);
}

.device--hero.device--front {
  left: 4%;
  bottom: 2%;
  width: 62%;
  z-index: 2;
  transform: rotate(-3deg);
}

.device--hero:hover {
  /* keep hero composition stable; subtle lift only on front */
}

.device--hero.device--front:hover {
  transform: rotate(-3deg) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(204, 0, 0, 0.12),
    0 32px 64px rgba(17, 17, 17, 0.2),
    0 0 48px rgba(204, 0, 0, 0.1);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border: 1px solid rgba(228, 228, 231, 0.95);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 11.5rem;
  line-height: 1.25;
}

.float-card__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.14);
}

.float-card--tl {
  top: 4%;
  left: 0;
  animation: hero-float 5.5s var(--ease) infinite alternate;
}

.float-card--br {
  bottom: 6%;
  right: 0;
  animation: hero-float 6.2s var(--ease) 0.6s infinite alternate-reverse;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  letter-spacing: 0;
}

@keyframes hero-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card--tl,
  .float-card--br {
    animation: none;
  }
}

/* ——— Sections ——— */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.85rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section--surface {
  background:
    linear-gradient(180deg, var(--surface) 0%, #f0f0f2 100%);
}

.section--dark {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(204, 0, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  color: var(--white);
}

.section--dark .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.section--dark .muted {
  color: rgba(255, 255, 255, 0.62);
}

/* ——— About ——— */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.75rem;
  align-items: start;
}

.about__body p {
  color: var(--ink-soft);
  margin: 0 0 1.05rem;
  font-size: 1.02rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pill:hover {
  border-color: rgba(204, 0, 0, 0.2);
  box-shadow: var(--shadow-sm);
}

.pill span {
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(204, 0, 0, 0.35));
  border-radius: 2px;
  margin-bottom: 0.7rem;
}

/* ——— Services ——— */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.4rem 1.5rem;
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.card:hover {
  border-color: rgba(204, 0, 0, 0.18);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--display);
  border: 1px solid rgba(204, 0, 0, 0.06);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ——— Solutions ——— */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.solution__copy h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.solution__copy p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin: 0 0 1.55rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--red-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23cc0000' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5z'/%3E%3C/svg%3E")
    center/12px no-repeat;
  border: 1px solid rgba(204, 0, 0, 0.08);
}

.solution__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0.35rem;
}

.shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e4e4e7;
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow-sm);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s var(--ease);
}

.solution:hover .shot img {
  transform: scale(1.02);
}

.shot:first-child {
  transform: translateY(0.9rem);
}

/* ——— Work / product showcase ——— */
.work-section {
  padding-bottom: 4.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(204, 0, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, #fafafa 40%, #f4f4f5 100%);
}

.section-head--work {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head--work .eyebrow {
  margin-inline: auto;
}

.section-head--work p {
  margin-inline: auto;
  max-width: 34rem;
}

.work-stage {
  position: relative;
  margin-top: 0.5rem;
}

.work-stage__fade {
  position: absolute;
  top: 0;
  bottom: 3rem;
  width: clamp(2rem, 6vw, 5rem);
  z-index: 2;
  pointer-events: none;
}

.work-stage__fade--left {
  left: 0;
  background: linear-gradient(90deg, #fafafa 10%, transparent);
}

.work-stage__fade--right {
  right: 0;
  background: linear-gradient(270deg, #f4f4f5 10%, transparent);
}

.work-rail {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding: 1.25rem max(1.25rem, calc((100vw - var(--max)) / 2)) 1.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(204, 0, 0, 0.35) transparent;
}

.work-rail:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(204, 0, 0, 0.25);
}

.work-rail::-webkit-scrollbar {
  height: 6px;
}

.work-rail::-webkit-scrollbar-thumb {
  background: rgba(204, 0, 0, 0.28);
  border-radius: 999px;
}

.work-pin {
  flex: 0 0 auto;
  width: min(260px, 72vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.work-pin:first-child {
  scroll-snap-align: start;
}

/* Realistic device shell */
.device {
  position: relative;
  background: linear-gradient(165deg, #2a2a2e 0%, #0c0c0e 55%, #000 100%);
  border-radius: 36px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(17, 17, 17, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.work-pin:hover .device {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(204, 0, 0, 0.15),
    0 32px 64px rgba(17, 17, 17, 0.22),
    0 0 40px rgba(204, 0, 0, 0.08);
}

.device__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #e4e4e7;
  aspect-ratio: 9 / 19.5;
  position: relative;
}

.device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.work-pin__meta {
  padding: 0 0.35rem;
  text-align: center;
}

.work-pin__index {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.45rem;
}

.work-pin__meta h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.work-pin__meta p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 22ch;
  margin-inline: auto;
}

.work-stage__hint {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  opacity: 0.75;
}

/* Legacy grid class kept for safety if referenced */
.work-grid {
  display: none;
}

/* ——— Industries ——— */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 525;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  transition:
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  cursor: default;
}

.chip:hover {
  border-color: rgba(204, 0, 0, 0.28);
  color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.06);
}

/* ——— Approach ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  counter-reset: step;
}

.step {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem;
  counter-increment: step;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.step:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(204, 0, 0, 0.25);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ff5a5a;
  margin-bottom: 0.8rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

/* ——— Why ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.95rem;
}

.why-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.why-card:hover {
  border-color: rgba(204, 0, 0, 0.16);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ——— Contact ——— */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.75rem;
  align-items: start;
}

.contact__aside h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.contact__aside p {
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  line-height: 1.7;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

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

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a1a1aa;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(204, 0, 0, 0.45);
  background: var(--white);
  box-shadow: var(--focus);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.form__note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  line-height: 1.5;
}

.form__note a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__error {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-xs);
  background: rgba(204, 0, 0, 0.07);
  border: 1px solid rgba(204, 0, 0, 0.22);
  color: var(--red-deep);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form__error[hidden] {
  display: none;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

/* Honeypot — visually hidden, still in tab order only via negative tabindex */
.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__success {
  display: none;
  padding: 1.75rem 1rem;
  text-align: center;
}

.form__success.is-visible {
  display: block;
}

.form__success a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form.is-sent .form__fields {
  display: none;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.85rem 0 2.25rem;
  background: var(--white);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.footer__links {
  display: flex;
  gap: 0.35rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer__links a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.footer__links a:hover {
  color: var(--red);
  background: var(--red-soft);
}

/* ——— Responsive ——— */
/* Large tablet / small laptop */
@media (max-width: 1100px) {
  .hero__grid {
    gap: 2rem;
  }

  .hero-stage {
    width: min(100%, 340px);
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .about__grid,
  .solution,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero__visual {
    min-height: 0;
    order: -1; /* product first on tablet — social proof above the fold */
    margin-bottom: 0.5rem;
  }

  .hero__grid {
    gap: 2rem;
  }

  .hero-stage {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1.05;
  }

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

  .work-pin {
    width: min(240px, 70vw);
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  /* Header: logo left, burger right — same inset as page content */
  .nav__inner {
    width: min(100% - 1.75rem, var(--max));
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand__logo {
    height: 30px;
    max-width: min(148px, 58vw);
  }

  .nav__toggle {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  /* Don't let the <nav> wrapper steal flex space (links are fixed) */
  .nav__inner > nav {
    order: 4;
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .nav__cta {
    display: none;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.75rem max(0.875rem, calc((100vw - var(--max)) / 2 + 0.875rem)) 1.15rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
    z-index: 99;
  }

  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    list-style: none;
  }

  .nav__links a {
    display: block;
    padding: 0.9rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav__links a:hover,
  .nav__links a:active {
    background: var(--red-soft);
    color: var(--red);
  }

  .cards,
  .pill-grid,
  .form__row,
  .why-grid,
  .steps,
  .solution__shots {
    grid-template-columns: 1fr;
  }

  .work-section {
    padding-bottom: 3.5rem;
  }

  .work-pin {
    width: min(220px, 78vw);
  }

  .device {
    border-radius: 32px;
    padding: 9px;
  }

  .device__screen {
    border-radius: 24px;
  }

  .work-stage__hint {
    font-size: 0.72rem;
  }

  .shot:first-child {
    transform: none;
  }

  .hero {
    padding: 2.25rem 0 3.25rem;
  }

  .hero__visual {
    order: 0; /* copy first on small phones for scannability */
  }

  .hero-stage {
    width: min(100%, 280px);
    aspect-ratio: 0.92 / 1;
    margin-top: 0.25rem;
  }

  .device--hero.device--back {
    width: 48%;
    top: 4%;
    right: 2%;
    transform: rotate(6deg) scale(0.94);
  }

  .device--hero.device--front {
    width: 58%;
    left: 6%;
    bottom: 0;
  }

  .float-card {
    font-size: 0.74rem;
    padding: 0.6rem 0.75rem;
    max-width: 9.5rem;
    border-radius: 12px;
  }

  .float-card--tl {
    top: 0;
    left: -2%;
  }

  .float-card--br {
    bottom: 2%;
    right: -2%;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }

  .hero__meta {
    gap: 0.45rem 1rem;
    font-size: 0.8rem;
  }

  section {
    padding: 3.75rem 0;
  }

  .solution {
    padding: 1.25rem;
  }

  .form {
    padding: 1.25rem;
  }
}

/* Extra-small phones: single hero device for clarity */
@media (max-width: 400px) {
  .device--hero.device--back {
    display: none;
  }

  .device--hero.device--front {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(72%, 220px);
    margin: 0.5rem auto 0;
    transform: none;
  }

  .hero-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding-bottom: 0.5rem;
  }

  .hero-devices {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
  }

  .float-card--tl {
    position: static;
    margin: 0.85rem auto 0;
    max-width: 14rem;
  }

  .float-card--br {
    display: none;
  }

  .hero-stage__glow {
    display: none;
  }
}
