:root {
  color-scheme: dark;
  --ink: #fff7ef;
  --muted: rgba(255, 247, 239, 0.68);
  --faint: rgba(255, 247, 239, 0.44);
  --line: rgba(255, 247, 239, 0.16);
  --amber: #d5a148;
  --amber-2: #9b7040;
  --rose: #8d5c56;
  --clay: #4a2c28;
  --night: #130f12;
  --blue: #263753;
  --panel: rgba(17, 13, 14, 0.58);
  --panel-2: rgba(255, 247, 239, 0.075);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(141, 92, 86, 0.55), transparent 34rem),
    linear-gradient(160deg, #130f12 0%, #261819 35%, #4d302a 70%, #a87252 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.06));
}

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

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(19, 15, 18, 0.64);
  border-bottom: 1px solid rgba(255, 247, 239, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 239, 0.16);
  background: rgba(255, 247, 239, 0.08);
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.button.primary {
  background: linear-gradient(135deg, rgba(213, 161, 72, 0.95), rgba(151, 96, 54, 0.98));
  border-color: rgba(255, 216, 135, 0.58);
  color: #17100e;
}

.button.ghost {
  background: rgba(0, 0, 0, 0.16);
}

.hero {
  padding: 88px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 58px;
  align-items: center;
}

.hero-grid > *,
.story > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 247, 239, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  line-height: 0.94;
}

.lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.56;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  padding: 9px 12px;
  border: 1px solid rgba(255, 247, 239, 0.12);
  border-radius: 999px;
  color: rgba(255, 247, 239, 0.72);
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.88rem;
}

.phone-stage {
  position: relative;
  min-height: 690px;
}

.phone {
  position: absolute;
  width: min(310px, 70vw);
  border-radius: 38px;
  overflow: hidden;
  background: #0b0909;
  border: 1px solid rgba(255, 247, 239, 0.16);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
}

.phone.main {
  right: 70px;
  top: 18px;
  z-index: 4;
}

.phone.back {
  right: 0;
  top: 112px;
  transform: rotate(5deg) scale(0.92);
  opacity: 0.82;
  z-index: 2;
}

.phone.left {
  right: 210px;
  top: 138px;
  transform: rotate(-7deg) scale(0.84);
  opacity: 0.78;
  z-index: 1;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: rgba(9, 8, 9, 0.34);
  border-top: 1px solid rgba(255, 247, 239, 0.08);
  border-bottom: 1px solid rgba(255, 247, 239, 0.08);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  min-height: 210px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.feature h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.feature p {
  color: var(--muted);
  line-height: 1.56;
  margin: 12px 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.shot {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 247, 239, 0.14);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.story-panel {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 247, 239, 0.06);
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(213, 161, 72, 0.18);
  color: #f4ce86;
  border: 1px solid rgba(213, 161, 72, 0.32);
  font-weight: 700;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.legal-page {
  padding: 72px 0 92px;
}

.legal-card {
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 54px);
  background: rgba(15, 12, 13, 0.62);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.55rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.68;
}

.legal-card ul {
  padding-left: 1.2rem;
}

.footer {
  padding: 42px 0 52px;
  border-top: 1px solid rgba(255, 247, 239, 0.1);
  background: rgba(9, 8, 9, 0.42);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .story {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 560px;
  }

  .phone.main {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .phone.back {
    left: 50%;
    right: auto;
    transform: translateX(-10%) rotate(5deg) scale(0.78);
  }

  .phone.left {
    left: 50%;
    right: auto;
    transform: translateX(-92%) rotate(-7deg) scale(0.72);
  }

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

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

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .shell {
    width: min(100% - 28px, 1160px);
  }

  .nav-inner {
    min-height: 66px;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .phone-stage {
    min-height: 470px;
  }

  .phone {
    width: 238px;
    border-radius: 30px;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .shot:nth-child(n+4) {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .phone.main {
    animation: float-main 7s ease-in-out infinite;
  }

  .phone.back {
    animation: float-back 8s ease-in-out infinite;
  }

  @keyframes float-main {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
  }

  @keyframes float-back {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 10px; }
  }
}
