:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --bg: #f5f2eb;
  --ink: #12110f;
  --muted: #68635a;
  --panel: rgba(255, 255, 255, 0.74);
  --line: rgba(18, 17, 15, 0.1);
  --radius: 44px;
  --size: 212px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(236, 218, 180, 0.55), transparent 28rem),
    linear-gradient(135deg, #f8f5ef 0%, #eee7db 100%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: end;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.note,
.takeaways li,
.anatomy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero p {
  max-width: 720px;
  font-size: 1.15rem;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(28, 24, 18, 0.09);
  backdrop-filter: blur(24px);
}

.hero-card {
  display: grid;
  width: 198px;
  height: 198px;
  place-items: center;
  justify-self: end;
}

.app-icon {
  display: grid;
  width: 160px;
  height: 160px;
  place-items: center;
  color: #f9f5ea;
  background: #111;
  font-size: 4.3rem;
  font-weight: 820;
  letter-spacing: -0.09em;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0;
  padding: 20px;
  border-radius: 28px;
}

.controls label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: #111;
}

output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.comparison-card {
  display: grid;
  min-height: 520px;
  padding: 28px;
  border-radius: 36px;
  align-content: space-between;
}

.card-header {
  margin-bottom: 24px;
}

.comparison-shape {
  display: grid;
  width: var(--size);
  height: var(--size);
  place-items: center;
  margin: 0 auto 26px;
  color: #faf7ef;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
    #101010;
}

.normal-demo {
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.smooth-shadow {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.22));
}

.shape-content {
  display: grid;
  gap: 8px;
  text-align: center;
}

.metric {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 840;
  letter-spacing: -0.08em;
}

.caption {
  color: rgba(250, 247, 239, 0.7);
  font-weight: 720;
}

.mobile-preview {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-top: 24px;
  padding: 36px;
  border-radius: 42px;
}

.phone {
  width: 342px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 54px;
  background: #171717;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.phone-notch {
  width: 94px;
  height: 26px;
  margin: 0 auto -13px;
  border-radius: 999px;
  background: #111;
  position: relative;
  z-index: 2;
}

.phone-screen {
  min-height: 620px;
  padding: 48px 18px 20px;
  border-radius: 42px;
  background: #f7f4ee;
}

.mini-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.smooth-shadow.small {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}

.mini-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: #111;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.big-tile {
  display: grid;
  width: 100%;
  min-height: 230px;
  align-content: end;
  gap: 8px;
  padding: 24px;
  color: #f9f5ea;
  background: linear-gradient(145deg, #1c1c1a, #0c0c0b);
}

.tile-label,
.tile-subtitle,
.stat-tile span {
  color: rgba(249, 245, 234, 0.62);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.big-tile strong {
  font-size: 2.65rem;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0;
}

.stat-tile {
  display: grid;
  min-height: 116px;
  align-content: end;
  gap: 8px;
  padding: 18px;
  color: white;
  background: #242320;
}

.stat-tile strong {
  font-size: 2rem;
  letter-spacing: -0.07em;
}

.cta {
  width: 100%;
  min-height: 58px;
  border: 0;
  color: #111;
  background: #e2d7c6;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.takeaways ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.08);
}

.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 32px;
  border-radius: 36px;
}

.corner-zoom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.zoom,
#smooth-corner-svg {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(18, 17, 15, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

.normal-zoom {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.normal-zoom::before {
  content: "";
  position: absolute;
  inset: 30px 30px auto auto;
  width: 190px;
  height: 190px;
  border: 6px solid #111;
  border-radius: var(--zoom-radius, 72px);
}

.normal-zoom span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#smooth-corner-svg path {
  fill: none;
  stroke: #111;
  stroke-width: 6;
  stroke-linecap: round;
}

#smooth-corner-svg text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-grid,
  .controls,
  .comparison-grid,
  .mobile-preview,
  .anatomy {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
  }

  .mobile-preview {
    padding: 20px;
  }

  .phone {
    width: min(342px, 100%);
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 32px;
  }

  .comparison-card,
  .anatomy {
    padding: 20px;
  }

  .comparison-shape {
    width: min(var(--size), 100%);
    height: min(var(--size), 74vw);
  }
}
