:root {
  --ink: #171714;
  --paper: #f3f0e7;
  --paper-strong: #fffdf7;
  --muted: #6f6d64;
  --line: rgba(23, 23, 20, 0.15);
  --accent: #ff5c35;
  --acid: #d9ff57;
  --blue: #94c6ff;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(39, 34, 23, 0.1);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(217, 255, 87, 0.24), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

::selection {
  background: var(--acid);
  color: var(--ink);
}

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 14px 0;
  background: rgba(243, 240, 231, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-mark::before {
  width: 15px;
  height: 15px;
  top: 5px;
  left: 5px;
  background: var(--acid);
}

.brand-mark::after {
  width: 12px;
  height: 12px;
  right: 4px;
  bottom: 4px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--paper-strong) !important;
  background: var(--ink);
  border-radius: 99px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-button span,
.menu-button::before {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  transform: translateY(-3px) rotate(-45deg);
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(3px) rotate(45deg);
}

main {
  overflow: hidden;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 54px 0;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

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

h1,
h2,
h3 {
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 1040px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 750;
}

h2 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.7vw, 5.6rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.display-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  padding: clamp(68px, 12vh, 140px) 0 68px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

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

.hero-intro p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  width: clamp(280px, 35vw, 500px);
  aspect-ratio: 1;
  top: 5%;
  right: -9%;
  border: 1px solid rgba(23, 23, 20, 0.15);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.hero-orbit::before {
  width: 44px;
  height: 44px;
  top: 12%;
  left: 7%;
  background: var(--accent);
}

.hero-orbit::after {
  width: 22px;
  height: 22px;
  right: -11px;
  bottom: 35%;
  background: var(--ink);
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(68px, 14vh, 150px);
}

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 650;
}

.chip-dot {
  width: 7px;
  height: 7px;
  background: #45a46b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(69, 164, 107, 0.13);
}

.section-heading {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 420px;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 20, 0.08);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.project-card:nth-child(1),
.project-card:nth-child(4n) {
  grid-column: span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(3) {
  grid-column: span 5;
}

.project-card:nth-child(n + 5) {
  grid-column: span 6;
}

.project-card[data-theme="orange"] {
  background: var(--accent);
}

.project-card[data-theme="acid"] {
  background: var(--acid);
}

.project-card[data-theme="blue"] {
  background: var(--blue);
}

.project-card[data-theme="cream"] {
  background: var(--paper-strong);
}

.project-card[data-theme="dark"] {
  color: var(--paper-strong);
  background: var(--ink);
}

.project-card[data-theme="charka"] {
  color: #fff9ec;
  background:
    radial-gradient(circle at 85% 20%, rgba(218, 130, 73, 0.5), transparent 17rem),
    #183b52;
}

.card-number {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.card-visual {
  position: absolute;
  width: 58%;
  aspect-ratio: 0.72;
  top: 15%;
  right: -8%;
  border: 2px solid currentColor;
  border-radius: 36px;
  opacity: 0.88;
  transform: rotate(8deg);
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-visual::before,
.card-visual::after {
  position: absolute;
  content: "";
}

.card-visual::before {
  width: 50%;
  height: 10px;
  top: 12%;
  left: 13%;
  background: currentColor;
  border-radius: 10px;
  box-shadow: 0 30px 0 -2px currentColor, 0 58px 0 -2px currentColor;
}

.card-visual::after {
  width: 52%;
  aspect-ratio: 1;
  right: 12%;
  bottom: 12%;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.project-card:hover .card-visual {
  transform: rotate(4deg) translate(-6px, -6px);
}

.card-real-visual {
  position: absolute;
  width: min(46%, 270px);
  top: 15%;
  right: 3%;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.18));
  transform: rotate(5deg);
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-real-visual img {
  width: 100%;
}

.project-card:hover .card-real-visual {
  transform: rotate(1deg) translate(-6px, -6px);
}

.card-content {
  position: relative;
  z-index: 2;
  max-width: 70%;
}

.card-content p {
  max-width: 360px;
  margin-bottom: 0;
  opacity: 0.72;
}

.card-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  transition: background 180ms ease, color 180ms ease;
}

.project-card:hover .card-arrow {
  color: var(--paper-strong);
  background: var(--ink);
}

.project-card[data-theme="dark"]:hover .card-arrow {
  color: var(--ink);
  background: var(--paper-strong);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.split-copy {
  max-width: 530px;
}

.split-copy > p {
  color: var(--muted);
  font-size: 1.12rem;
}

.capability-list {
  border-top: 1px solid var(--line);
}

.capability-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.capability-row span:first-child {
  color: var(--muted);
  font-size: 12px;
}

.capability-row strong {
  font-size: 1.07rem;
}

.capability-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 8vw, 96px);
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: calc(var(--radius) + 10px);
}

.cta-panel::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -100px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
}

.button-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--paper-strong);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

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

.button-light {
  color: var(--ink);
  background: var(--paper-strong);
  border-color: var(--paper-strong);
}

.button-outline {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

.page-hero {
  padding: clamp(80px, 12vw, 150px) 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1100px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.error-hero {
  position: relative;
  min-height: calc(100vh - 73px);
  padding: clamp(70px, 12vw, 140px) 0 68px;
  overflow: hidden;
}

.error-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.error-copy h1 {
  max-width: 940px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
}

.error-copy > p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.error-code-card {
  position: relative;
  display: grid;
  min-height: clamp(280px, 38vw, 470px);
  overflow: hidden;
  color: #fff9ec;
  background:
    radial-gradient(circle at 78% 18%, rgba(218, 130, 73, 0.62), transparent 13rem),
    linear-gradient(145deg, #183b52, #102836);
  border-radius: calc(var(--radius) + 18px);
  box-shadow: var(--shadow);
  place-items: center;
  transform: rotate(3deg);
}

.error-code-card::before,
.error-code-card::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.error-code-card::before {
  width: 54%;
  aspect-ratio: 1;
  top: -18%;
  right: -16%;
  background: rgba(217, 255, 87, 0.28);
}

.error-code-card::after {
  width: 18px;
  height: 18px;
  right: 16%;
  bottom: 18%;
  background: var(--acid);
  box-shadow: 42px -82px 0 -4px rgba(255, 255, 255, 0.75);
}

.error-code-card span {
  position: relative;
  z-index: 1;
  font-size: clamp(5.4rem, 13vw, 11rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.11em;
}

.error-code-card small {
  position: absolute;
  z-index: 1;
  left: clamp(22px, 4vw, 42px);
  bottom: clamp(22px, 4vw, 42px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.error-orbit {
  position: absolute;
  width: clamp(320px, 44vw, 620px);
  aspect-ratio: 1;
  right: -15%;
  bottom: -20%;
  border: 1px solid rgba(23, 23, 20, 0.14);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}

.error-orbit::before,
.error-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.error-orbit::before {
  width: 42px;
  height: 42px;
  top: 16%;
  left: 11%;
  background: var(--accent);
}

.error-orbit::after {
  width: 24px;
  height: 24px;
  right: 11%;
  bottom: 18%;
  background: var(--ink);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.error-link-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.error-link-card:hover {
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.error-link-card small {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.error-link-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.error-link-card span {
  display: block;
  color: var(--muted);
}

.product-hero {
  position: relative;
  padding: clamp(76px, 12vw, 140px) 0 70px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.product-hero h1 {
  font-size: clamp(4rem, 9vw, 8rem);
}

.product-tagline {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.product-icon {
  display: grid;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-left: auto;
  overflow: hidden;
  color: var(--ink);
  border-radius: 28%;
  box-shadow: var(--shadow);
  place-items: center;
  transform: rotate(4deg);
}

.product-icon span {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.1em;
}

.product-icon[data-theme="orange"] {
  background: var(--accent);
}

.product-icon[data-theme="acid"] {
  background: var(--acid);
}

.product-icon[data-theme="blue"] {
  background: var(--blue);
}

.product-icon[data-theme="dark"] {
  color: var(--paper-strong);
  background: var(--ink);
}

.product-icon[data-theme="charka"] {
  background:
    radial-gradient(circle at 60% 28%, rgba(218, 130, 73, 0.38), transparent 12rem),
    #183b52;
}

.product-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.2));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 28px 18px 28px 0;
}

.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

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

.feature-card {
  min-height: 280px;
  padding: 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-index {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 70px;
  background: var(--acid);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mockup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 34px;
  background: var(--ink);
  border-radius: calc(var(--radius) + 12px);
}

.phone {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  padding: 40px 22px 22px;
  background: var(--paper-strong);
  border: 7px solid #363633;
  border-radius: 42px;
}

.phone:nth-child(2) {
  transform: translateY(32px);
}

.phone::before {
  position: absolute;
  width: 32%;
  height: 22px;
  top: 8px;
  left: 34%;
  content: "";
  background: #363633;
  border-radius: 12px;
}

.screen-pill,
.screen-line,
.screen-card {
  background: var(--line);
  border-radius: 99px;
}

.screen-pill {
  width: 34%;
  height: 9px;
  margin-bottom: 22px;
}

.screen-title {
  margin-bottom: 30px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.06em;
}

.screen-card {
  height: 130px;
  margin-bottom: 14px;
  padding: 18px;
  background: var(--acid);
  border-radius: 18px;
}

.phone:nth-child(2) .screen-card {
  background: var(--accent);
}

.phone:nth-child(3) .screen-card {
  background: var(--blue);
}

.screen-line {
  width: 90%;
  height: 10px;
  margin-top: 15px;
}

.screen-line.short {
  width: 58%;
}

.real-screenshot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  background: #183b52;
  border-radius: calc(var(--radius) + 12px);
}

.real-screenshot-row img {
  width: 100%;
  height: auto;
  border: 6px solid #0f2b3e;
  border-radius: 30px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.23);
}

.real-screenshot-row img:nth-child(even) {
  transform: translateY(36px);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 70px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.prose p,
.prose li {
  color: #4f4e48;
  font-size: 1.05rem;
}

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

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

.contact-card {
  min-height: 230px;
  padding: 30px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card small {
  display: block;
  margin-bottom: 60px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 8px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-intro,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-orbit {
    opacity: 0.5;
  }

  .project-card,
  .project-card:nth-child(n) {
    min-height: 460px;
    grid-column: span 6;
  }

  .split,
  .error-grid,
  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .error-code-card {
    width: min(100%, 520px);
    min-height: 300px;
    margin-inline: auto;
    transform: rotate(1.5deg);
  }

  .error-links {
    grid-template-columns: 1fr;
  }

  .product-icon {
    width: min(70vw, 360px);
    margin: 30px auto 0;
  }

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

  .feature-card:last-child {
    grid-column: span 2;
  }

  .mockup-row {
    padding: 24px;
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }

  .real-screenshot-row {
    padding: 30px;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }
}

@media (max-width: 620px) {
  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(3.15rem, 17vw, 5.5rem);
  }

  .project-grid {
    display: block;
  }

  .project-card {
    min-height: 430px;
    margin-bottom: 14px;
  }

  .card-content {
    max-width: 90%;
  }

  .card-visual {
    width: 65%;
    top: 12%;
  }

  .feature-grid,
  .contact-grid,
  .error-links {
    grid-template-columns: 1fr;
  }

  .error-hero {
    min-height: auto;
    padding-top: 68px;
  }

  .error-copy h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .error-code-card {
    min-height: 240px;
    border-radius: var(--radius);
    transform: none;
  }

  .error-code-card span {
    font-size: clamp(5rem, 25vw, 8rem);
  }

  .error-link-card {
    min-height: 150px;
  }

  .error-link-card small {
    margin-bottom: 28px;
  }

  .feature-card:last-child {
    grid-column: auto;
  }

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

  .stat + .stat {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mockup-row {
    margin-inline: -14px;
    border-radius: 0;
  }

  .real-screenshot-row {
    margin-inline: -14px;
    border-radius: 0;
  }

  .phone {
    min-height: 500px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
