@font-face {
  font-family: "Croogla 4F";
  src: url("/assets/croogla-4f-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-muted: #f8f9fb;
  --line: #e1e4e8;
  --line-strong: #cbd1d8;
  --text: #17212b;
  --muted: #687583;
  --sidebar: #27242b;
  --sidebar-light: #343039;
  --accent: #ee353a;
  --accent-dark: #cc252a;
  --accent-soft: #fff0f1;
  --shadow: 0 16px 42px rgb(23 33 43 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 18%, rgb(238 53 58 / 8%), transparent 26rem),
    var(--bg);
}

.site-header {
  min-height: 94px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--sidebar);
  border-bottom: 3px solid var(--accent);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo-frame {
  width: 224px;
  height: 70px;
  display: block;
  overflow: hidden;
  background: var(--sidebar);
}
.brand-logo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.launch-status {
  color: #f1edf3;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 670px;
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(400px, .85fr);
  align-items: center;
  gap: clamp(36px, 4vw, 56px);
}

.hero-copy { min-width: 0; }

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 24px 0 0;
  color: var(--sidebar);
  font-family: "Croogla 4F", "Segoe UI", sans-serif;
  font-size: clamp(55px, 6.7vw, 94px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .9;
}
.hero h1 span { color: var(--accent); }
.hero-lead {
  max-width: 700px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.button {
  min-height: 47px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: var(--surface); color: #485665; border-color: var(--line-strong); }
.button-secondary:hover { background: var(--surface-muted); color: var(--text); }
.launch-message { min-height: 18px; margin: 13px 0 0; color: #7c8894; font-size: 11px; }
.launch-message.is-highlighted { color: var(--accent-dark); }

.preview-panel {
  overflow: hidden;
  border: 1px solid #3b3740;
  border-radius: 12px;
  background: var(--sidebar);
  color: #fff;
  box-shadow: var(--shadow);
}
.preview-toolbar {
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #413c46;
}
.preview-label { font-family: "Croogla 4F", "Segoe UI", sans-serif; color: var(--accent); font-size: 24px; }
.preview-code { color: #9b94a2; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }

.preview-screen {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgb(238 53 58 / 24%), transparent 30%),
    linear-gradient(145deg, #312d35, #1d1b20);
  background-size: 25% 33.333%, 25% 33.333%, auto, auto;
}
.recording,
.timecode {
  position: absolute;
  z-index: 2;
  color: #bdb7c2;
  font: 10px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .09em;
}
.recording { top: 20px; left: 22px; color: #ff7b7f; }
.recording i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.timecode { right: 22px; bottom: 19px; }
.focus-frame { position: absolute; inset: 38px; }
.focus-frame i { position: absolute; width: 30px; height: 30px; border-color: rgb(255 255 255 / 55%); border-style: solid; }
.focus-frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.focus-frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.focus-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.focus-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.preview-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; }
.play {
  width: 66px;
  height: 66px;
  padding-left: 4px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  background: rgb(255 255 255 / 7%);
  color: var(--accent);
}
.preview-center strong { color: #d8d3db; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.order-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.order-steps li { min-height: 102px; padding: 19px 16px; display: grid; grid-template-columns: 26px 1fr; gap: 8px; border-top: 1px solid #413c46; }
.order-steps li:not(:first-child) { border-left: 1px solid #413c46; }
.order-steps li > span { color: var(--accent); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.order-steps strong { display: block; color: #f4f1f5; font-size: 12px; }
.order-steps small { display: block; margin-top: 6px; color: #98919f; font-size: 10px; line-height: 1.4; }

.service-note {
  padding: 72px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-note h2 {
  margin: 0;
  font-family: "Croogla 4F", "Segoe UI", sans-serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}
.service-note div > p { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.site-footer {
  min-height: 96px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  color: #7b8792;
  font-size: 11px;
}
.social-links { display: flex; align-items: center; justify-content: center; gap: 8px 20px; }
.social-links a {
  color: #566575;
  font-size: 12px;
  font-weight: 700;
  transition: color .18s ease;
}
.social-links a:hover { color: var(--accent); }
.social-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 58px 0; }
  .preview-panel { width: min(100%, 680px); }
  .service-note { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 82px; padding-inline: 16px; gap: 12px; }
  .brand-logo-frame { width: 150px; height: 55px; }
  .launch-status { max-width: 125px; text-align: right; font-size: 12px; }
  .hero { width: calc(100% - 32px); min-height: 0; padding: 48px 0; gap: 42px; }
  .hero h1 { font-size: clamp(52px, 16vw, 74px); }
  .hero-actions { display: grid; }
  .preview-screen { min-height: 280px; }
  .order-steps { grid-template-columns: 1fr; }
  .order-steps li { min-height: 78px; }
  .order-steps li:not(:first-child) { border-left: 0; }
  .site-footer { min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
  .social-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .preview-panel { animation: enter .55s ease-out both; }
  .preview-panel { animation-delay: .08s; }
  @keyframes enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
