:root {
  --red:      #FF3D3D;
  --red-dark: #C81E1E;
  --red-soft: #FFE4E4;
  --ink:      #0A0A0A;
  --paper:    #FAF7F3;
  --cream:    #F2ECE4;
  --white:    #FFFFFF;
  --line:     #E5DED4;
  --muted:    #6B645B;
  --gray-800: #2A2724;
  --text:     #0A0A0A;
  --soft:     #F2ECE4;

  --f-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-text:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 243, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.nav-bar,
section,
.footer-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  display: block;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 13px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
  background: var(--cream);
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  min-height: 720px;
  margin-top: 16px;
  padding: 72px 70px;
  align-items: center;
  border-radius: 40px;
  background: var(--red);
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  right: -170px;
  top: 80px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
}

.hero-copy h1 {
  max-width: 640px;
  margin: 22px 0 22px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.hero-copy p {
  max-width: 500px;
  color: #3f1111;
  font-family: var(--f-text);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 0 26px;
}

.btn-link {
  color: var(--ink);
  gap: 8px;
}

.btn-link::after {
  content: "→";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 600px;
  place-items: center;
}

.device {
  position: relative;
  width: min(315px, 82vw);
  height: 610px;
  border: 10px solid var(--ink);
  border-radius: 52px;
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 132px;
  height: 26px;
  border-radius: 0 0 22px 22px;
  background: var(--ink);
  transform: translateX(-50%);
}

.device-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 42px 22px 24px;
  border-radius: 40px;
  background: #111111;
  color: var(--paper);
}

.screen-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5d5d5;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.screen-logo {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.screen-hero {
  min-height: 170px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 61, 61, 0.88), rgba(255, 255, 255, 0.08)),
    #2b2b2b;
}

.screen-lines span {
  display: block;
  height: 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #2c2c2c;
}

.screen-lines span:nth-child(1) { width: 92%; }
.screen-lines span:nth-child(2) { width: 74%; }
.screen-lines span:nth-child(3) { width: 58%; }

.screen-card {
  padding: 18px;
  border: 1px solid #2f2f2f;
  border-radius: 20px;
  background: #191919;
}

.screen-card strong,
.screen-card small {
  display: block;
}

.screen-card strong {
  color: var(--red);
  font-family: var(--f-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-card small {
  color: #bdbdbd;
  font-family: var(--f-mono);
  font-size: 11px;
  margin-top: 4px;
}

.screen-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.screen-actions span {
  min-height: 46px;
  border-radius: 14px;
  background: #252525;
}

.screen-actions span:last-child {
  background: var(--red);
}

.floating-panel {
  position: absolute;
  z-index: 3;
  min-width: 138px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: rgba(250, 247, 243, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.floating-panel span,
.floating-panel strong {
  display: block;
}

.floating-panel span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floating-panel strong {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.panel-left {
  left: 10px;
  top: 110px;
}

.panel-right {
  right: 0;
  bottom: 108px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.metrics div {
  text-align: center;
}

.metrics strong {
  display: block;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro {
  max-width: 900px;
  padding: 78px 0 56px;
  text-align: center;
}

.intro h2 {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.intro p {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.services,
.process-section {
  padding: 50px 0 82px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.section-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

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

.service-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--cream);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.09);
}

.service-card.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.number {
  display: block;
  margin-bottom: 80px;
  color: var(--red-dark);
  font-family: var(--f-mono);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-card.dark .number {
  color: var(--red);
}

.service-card h3 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.service-card.dark p {
  color: #b8b8b8;
}

.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 52px;
  margin-bottom: 72px;
  padding: 58px;
  border-radius: 42px;
  background: var(--ink);
  color: var(--paper);
}

.benefits h2 {
  margin-top: 18px;
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.benefits .badge {
  background: var(--red);
  color: var(--ink);
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list div {
  padding: 24px;
  border: 1px solid #2b2b2b;
  border-radius: 24px;
  background: #151515;
}

.benefit-list strong {
  display: block;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.benefit-list p {
  margin-top: 6px;
  color: #bdbdbd;
  font-size: 15px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  overflow: hidden;
}

.step span {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(255, 61, 61, 0.7);
  font-family: var(--f-mono);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  position: relative;
  margin-top: 80px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  position: relative;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 80px;
  padding: 58px;
  border-radius: 40px;
  background: var(--red);
}

.cta h2 {
  max-width: 760px;
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.cta p {
  max-width: 650px;
  margin-top: 12px;
  color: #3f1111;
  font-size: 18px;
}

footer {
  border-radius: 40px 40px 0 0;
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: 48px 0;
}

.footer-logo {
  color: var(--paper);
}

.footer-inner p {
  color: #a9a9a9;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-inner div p {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    padding: 54px 34px;
  }

  .hero-visual {
    min-height: 540px;
  }

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

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

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

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

@media (max-width: 768px) {
  .hero-shell {
    padding: 44px 28px;
  }

  .benefits,
  .cta {
    padding: 38px;
  }

  .benefits {
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .nav-bar,
  section,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    padding: 8px 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hero-shell {
    min-height: auto;
    margin-top: 10px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 46px);
  }

  .hero-copy p {
    font-size: clamp(15px, 4vw, 18px);
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
  }

  .actions .btn,
  .cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: 400px;
  }

  .device {
    width: min(260px, 82vw);
    height: 420px;
    border-radius: 38px;
  }

  .device-screen {
    padding: 38px 18px 20px;
    gap: 14px;
  }

  .screen-hero {
    min-height: 100px;
  }

  .screen-card {
    padding: 14px;
  }

  .screen-card strong {
    font-size: 19px;
  }

  .floating-panel {
    display: none;
  }

  .metrics,
  .service-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .metrics {
    gap: 20px;
    padding: 32px 0;
  }

  .intro,
  .services,
  .process-section {
    padding: 44px 0;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .benefits {
    padding: 24px;
    border-radius: 22px;
    gap: 14px;
    margin-bottom: 48px;
  }

  .cta {
    padding: 24px;
    border-radius: 22px;
    gap: 20px;
    margin-bottom: 52px;
  }

  .number {
    font-size: 40px;
    margin-bottom: 46px;
  }

  .step {
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
  }

  .step span {
    font-size: 42px;
    top: 14px;
    right: 16px;
  }

  .step h3 {
    margin-top: 52px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 36px 0;
  }
}
