/* ============ Tokens ============ */
:root {
  --bg: #EDF0F7;          /* cool porcelain */
  --surface: #FFFFFF;
  --ink: #172036;         /* deep navy ink */
  --muted: #5A6480;
  --line: #D6DCEA;
  --cobalt: #2E4BF5;      /* primary */
  --cobalt-dark: #1F36C9;
  --lilac: #DCD7FF;
  --mint: #C8F0DF;
  --mint-ink: #0D6B4B;

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill);
}
.skip:focus { top: 16px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer;
  background: var(--cobalt); color: #fff;
  font: 600 16px/1 var(--body);
  padding: 17px 26px; border-radius: var(--pill);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--cobalt-dark); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 11px 18px; font-size: 15px; }

.text-link { font-weight: 600; color: var(--cobalt); text-underline-offset: 4px; }

/* ============ Nav ============ */
.nav-wrap {
  position: sticky; top: 12px; z-index: 50;
  padding: 0 var(--gutter);
}
.nav {
  max-width: var(--wrap); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(214,220,234,.8);
  border-radius: var(--pill);
  padding: 8px 8px 8px 24px;
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 24px;
  text-decoration: none; letter-spacing: -0.03em;
}
.brand span { color: var(--cobalt); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 14px; border-radius: var(--pill); color: var(--muted);
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg); }
.nav-toggle {
  display: none; border: 0; background: var(--bg); color: var(--ink);
  font: 600 15px var(--body); padding: 11px 18px; border-radius: var(--pill); cursor: pointer;
}

/* ============ Layout ============ */
.section, .hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: clamp(72px, 10vw, 128px); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ============ Hero ============ */
.hero {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center;
  padding-top: clamp(56px, 9vw, 112px);
}
.hero h1 {
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .92;
  margin-bottom: 28px;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ticket {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(23,32,54,.25);
  transform: rotate(1.5deg);
}
.ticket-title { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.ticket dl { margin: 0; display: grid; gap: 4px; }
.ticket dl > div {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--bg);
}
.ticket dt { color: var(--muted); font-size: 14px; }
.ticket dd { margin: 0; font-weight: 600; font-size: 15px; }
.ticket-status {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--mint); color: var(--mint-ink);
  font-weight: 600; padding: 10px 18px; border-radius: var(--pill);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* ============ Services ============ */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.service {
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
}
.service h3 { font-size: clamp(26px, 3vw, 34px); }
.service > p { color: var(--muted); max-width: 40ch; }
.service ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.service li { padding-left: 26px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 4px; background: currentColor; opacity: .25;
}
.service-support { background: var(--surface); }
.service-repair  { background: var(--lilac); }
.service-repair > p { color: #4A4670; }
.service-web {
  grid-column: 1 / -1;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start;
}
.service-web h3, .service-web > p { grid-column: 1; }
.service-web > p { color: #AEB6CE; }
.service-web ul { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.service-web .text-link { grid-column: 1; color: #9EAEFF; }

/* ============ How it works ============ */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 28px 24px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cobalt); color: #fff;
  font: 700 18px var(--display);
  margin-bottom: 22px;
}
.steps li:last-child::before { background: var(--mint); color: var(--mint-ink); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

.where {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
}
.where-item { padding: 26px 28px; }
.where-item + .where-item { border-left: 1.5px solid var(--line); }
.where h3 { font-size: 19px; margin-bottom: 6px; }
.where p { color: var(--muted); font-size: 16px; }

/* ============ Showcase (stacked pages) ============ */
.stack {
  display: flex; flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
  max-width: 980px; margin: 0 auto;
  padding-top: 48px;
}
.stack-card {
  margin: 0;
  position: relative;
  display: flex; flex-direction: column;
  transform-origin: 50% 0;
  will-change: transform;
}
.stack-caption {
  order: 2;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 20px 8px 0;
  opacity: var(--cap, 1);
}
.stack-caption strong { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.stack-caption span { color: var(--muted); }

.browser {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(23,32,54,.45), 0 0 0 1px rgba(23,32,54,.06);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: #F6F7FB; border-bottom: 1px solid #E6E9F2;
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D3D8E5; }
.browser-bar span {
  margin-left: 14px; font-size: 13px; color: var(--muted);
  background: #fff; padding: 4px 14px; border-radius: var(--pill); border: 1px solid #E6E9F2;
}

.mock {
  container-type: inline-size;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  position: relative;
}
.mock em { font-style: normal; }

/* --- Formal mock --- */
.mock-formal { background: #F7F5EF; color: #1E2A44; font-family: "Libre Caslon Text", Georgia, serif; }
.mf-nav {
  display: flex; align-items: center; gap: 3.2cqw;
  padding: 2.6cqw 4.5cqw; border-bottom: 1px solid #D9D3C3;
  font-family: var(--body); font-size: 1.35cqw; color: #4B5670;
}
.mf-nav b { font-family: "Libre Caslon Text", serif; font-size: 2.2cqw; color: #1E2A44; margin-right: auto; }
.mf-nav em { background: #1E2A44; color: #F7F5EF; padding: 1cqw 2cqw; border-radius: 2px; }
.mf-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4cqw; padding: 5cqw 4.5cqw 3.5cqw; align-items: center; }
.mf-hero small { font-family: var(--body); font-size: 1.3cqw; color: #8A6D3B; display: block; margin-bottom: 1.6cqw; }
.mf-hero h4 { font-size: 4.3cqw; font-weight: 400; line-height: 1.12; margin: 0 0 2cqw; }
.mf-hero p { font-family: var(--body); font-size: 1.55cqw; color: #4B5670; margin-bottom: 2.8cqw; max-width: 40ch; }
.mf-hero em { display: inline-block; font-family: var(--body); font-size: 1.4cqw; border: 1px solid #1E2A44; padding: 1.2cqw 2.4cqw; }
.mf-pillar {
  height: 20cqw; border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, #E8E2D2 0 1.6cqw, #F1ECDF 1.6cqw 2.4cqw),
    #EDE7D8;
  border-top: 1.4cqw solid #1E2A44;
}
.mf-areas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #D9D3C3; margin: 0 4.5cqw; }
.mf-areas div { padding: 2.4cqw 0; display: grid; gap: .6cqw; }
.mf-areas div + div { padding-left: 2.4cqw; border-left: 1px solid #D9D3C3; }
.mf-areas b { font-weight: 700; font-size: 1.7cqw; }
.mf-areas span { font-family: var(--body); font-size: 1.3cqw; color: #6B7488; }

/* --- Luxury mock --- */
.mock-lux { background: #14110D; color: #EFE6D2; font-family: "Cormorant Garamond", Georgia, serif; text-align: center; }
.ml-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2.8cqw 5cqw; font-family: var(--body); font-size: 1.2cqw; color: #A8997A;
}
.ml-nav b { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 2.2cqw; letter-spacing: .4em; color: #E6CF9A; }
.ml-hero { position: relative; padding: 4cqw 0 4cqw; }
.ml-glow {
  position: absolute; left: 50%; top: 45%; width: 46cqw; height: 46cqw; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,169,106,.32), rgba(200,169,106,0) 62%);
}
.ml-hero h4 { position: relative; font-weight: 400; font-size: 6.4cqw; line-height: 1; margin: 0 0 2cqw; color: #F4EBD6; }
.ml-hero h4 i { color: #D9BC7E; }
.ml-hero p { position: relative; font-size: 2cqw; font-style: italic; color: #B5A684; margin-bottom: 3cqw; }
.ml-hero em { position: relative; display: inline-block; font-family: var(--body); font-size: 1.25cqw; color: #E6CF9A; border-bottom: 1px solid #C8A96A; padding-bottom: .5cqw; }
.ml-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 0 8cqw; }
.ml-row div { display: grid; justify-items: center; gap: 1.2cqw; }
.ml-orb {
  width: 9cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F6E3B4, #B48D4C 45%, #3A2C17 80%);
  box-shadow: 0 0 4cqw rgba(200,169,106,.25);
}
.ml-row b { font-weight: 500; font-size: 2cqw; letter-spacing: .08em; color: #E2D6BC; }

/* --- Modern tech mock --- */
.mock-tech {
  background:
    radial-gradient(60cqw 40cqw at 85% 10%, rgba(124,77,255,.45), transparent 60%),
    radial-gradient(50cqw 40cqw at 5% 100%, rgba(0,212,255,.25), transparent 60%),
    #070B1F;
  color: #E8ECFF; font-family: "Space Grotesk", var(--body);
}
.mock-tech::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 4cqw 4cqw;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.mt-nav { position: relative; display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 4.5cqw; font-size: 1.35cqw; color: #9AA3D6; }
.mt-nav b { font-size: 2.2cqw; color: #fff; margin-right: auto; letter-spacing: -0.02em; }
.mt-nav b span { color: #3EF0FF; }
.mt-nav em { color: #070B1F; background: #3EF0FF; padding: 1cqw 2cqw; border-radius: 999px; font-weight: 700; }
.mt-hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 4cqw; padding: 5cqw 4.5cqw; align-items: center; }
.mt-hero small {
  display: inline-block; font-size: 1.25cqw; color: #3EF0FF;
  border: 1px solid rgba(62,240,255,.4); padding: .6cqw 1.6cqw; border-radius: 999px; margin-bottom: 2cqw;
}
.mt-hero h4 { font-size: 4.8cqw; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 2cqw; font-weight: 700; }
.mt-hero p { font-size: 1.6cqw; color: #9AA3D6; margin-bottom: 3cqw; }
.mt-btns { display: flex; gap: 1.4cqw; }
.mt-btns em {
  font-size: 1.4cqw; font-weight: 700; padding: 1.3cqw 2.6cqw; border-radius: 999px;
  background: linear-gradient(90deg, #3EF0FF, #7C4DFF); color: #070B1F;
}
.mt-btns em.ghost { background: rgba(255,255,255,.08); color: #E8ECFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.mt-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 2.4cqw; padding: 2.6cqw;
  box-shadow: 0 0 6cqw rgba(124,77,255,.35);
  display: grid; gap: 1.6cqw;
}
.mt-line { display: flex; justify-content: space-between; font-size: 1.4cqw; color: #9AA3D6; }
.mt-line b { color: #3EF0FF; font-size: 1.8cqw; }
.mt-bars { display: flex; align-items: flex-end; gap: 1cqw; height: 12cqw; }
.mt-bars i { flex: 1; height: var(--h); border-radius: .8cqw .8cqw .3cqw .3cqw; background: linear-gradient(to top, #7C4DFF, #3EF0FF); }

/* ============ Guarantee ============ */
.guarantee {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px;
}
.guarantee-main {
  background: var(--mint); color: var(--mint-ink);
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px);
}
.guarantee-main h2 { font-size: clamp(40px, 6vw, 72px); color: var(--ink); margin-bottom: 14px; }
.guarantee-main p { font-size: 19px; max-width: 34ch; }
.guarantee-slot {
  border: 2px dashed var(--line); border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.guarantee-slot h3 { font-size: 26px; }
.guarantee-slot p { color: var(--muted); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about h2 { font-size: clamp(36px, 5vw, 56px); }
.about-copy { display: grid; gap: 18px; font-size: 19px; max-width: 60ch; }
.about-copy p + p { color: var(--muted); }

/* ============ Contact ============ */
.contact { padding-bottom: clamp(72px, 10vw, 120px); }
.contact-panel {
  background: var(--surface); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(32px, 5vw, 64px);
}
.contact-info h2 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li {
  background: var(--bg); border-radius: var(--r-md);
  padding: 14px 18px; display: grid; gap: 2px; font-weight: 500;
}
.contact-list span { font-size: 13px; color: var(--muted); font-weight: 400; }
.contact-list a { text-decoration: none; }

.contact-form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 16px var(--body); color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent;
  border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #D2365A; }
.field legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: var(--pill);
  background: var(--bg); font-weight: 500; font-size: 15px;
  border: 1.5px solid transparent; transition: background .2s, color .2s;
}
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--mint-ink); }
.form-status.err { color: #B0213F; }

/* ============ Footer ============ */
.footer {
  max-width: var(--wrap); margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
}
.footer .brand { color: var(--ink); }
.footer-small { margin-left: auto; font-size: 14px; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .ticket { max-width: 460px; transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-panel, .guarantee { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-left: 20px; border-radius: 28px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 8px 4px 6px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 12px 14px; }
  .nav-links .btn { width: 100%; margin-top: 6px; }

  .services { grid-template-columns: 1fr; }
  .service-web { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
  .where-item + .where-item { border-left: 0; border-top: 1.5px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .browser-bar span { display: none; }
  .stack-caption strong { font-size: 22px; }
  .stack-caption span { font-size: 15px; }
  .footer-small { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack-card { transform: none !important; }
  .stack-caption { opacity: 1 !important; }
}