:root {
  --ink: #0b0f14;
  --paper: #f7f6f2;
  --white: #ffffff;
  --blue: #3aadde;
  --blue-deep: #1677a8;
  --muted: #5a6470;
  --line: rgba(11, 15, 20, 0.12);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.brand svg { width: 46px; height: auto; }
.menu { display: flex; align-items: center; gap: 32px; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.menu a:hover { color: var(--ink); }
.menu .pill { color: var(--white); background: var(--ink); padding: 10px 18px; border-radius: 999px; }
.menu .pill:hover { color: var(--white); background: var(--blue-deep); }
@media (max-width: 720px) { .menu a:not(.pill) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, transparent 0%, var(--paper) 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(58, 173, 222, 0.18); }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 16px; height: 16px; }
.mark { display: flex; justify-content: flex-end; }
.mark svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 30px 40px rgba(22, 119, 168, 0.18)); }
@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .mark { order: -1; justify-content: flex-start; }
  .mark svg { max-width: 170px; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--blue); color: var(--white); overflow: hidden; border-block: 1px solid var(--blue-deep); }
.ticker-track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.ticker span { font-family: var(--display); font-size: 22px; font-weight: 500; padding: 18px 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: "✦"; font-size: 14px; opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- sections ---------- */
section { padding: 110px 0; }
@media (max-width: 640px) { section { padding: 72px 0; } }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 16px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.03em; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.head p { color: var(--muted); font-size: 18px; max-width: 460px; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

/* services list */
.services { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 24px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding .25s;
}
.service:hover { padding-left: 12px; }
.service .num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--blue-deep); padding-top: 8px; }
.service h3 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.service p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { list-style: none; font-size: 13px; font-weight: 500; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
@media (max-width: 860px) {
  .service { grid-template-columns: 48px 1fr; }
  .service > div:last-child { grid-column: 2; }
  .service:hover { padding-left: 0; }
}

/* process */
.process-bg { background: var(--white); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.step { padding: 32px 28px 36px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); font-family: var(--display); font-weight: 700; margin-bottom: 40px; }
.step:hover .n { background: var(--blue); color: var(--white); }
.step h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step .n { margin-bottom: 20px; }
}

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about p.big { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.015em; margin-top: 18px; }
.about p.big em { font-style: normal; color: var(--blue-deep); }
.facts { list-style: none; border-top: 1px solid var(--ink); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }
.facts a { color: var(--blue-deep); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* contact */
.contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.contact .label { color: var(--blue); }
.contact h2 { font-size: clamp(42px, 7vw, 92px); margin-bottom: 36px; max-width: 900px; }
.contact .mail {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 4vw, 48px); color: var(--blue); text-decoration: none;
  border-bottom: 2px solid rgba(58, 173, 222, 0.4); padding-bottom: 4px; transition: border-color .2s;
  word-break: break-all;
}
.contact .mail:hover { border-color: var(--blue); }
.contact p.note { color: rgba(255, 255, 255, 0.6); margin-top: 22px; font-size: 16px; }
.contact .ghost { position: absolute; right: -60px; bottom: -70px; width: 520px; opacity: 0.08; pointer-events: none; }
@media (max-width: 640px) { .contact .ghost { width: 300px; right: -80px; bottom: -40px; } }

/* footer */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.55); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ---------- privacy page ---------- */
.legal { padding: 80px 0 110px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: #333b44; font-size: 17px; }
.legal ul { padding-left: 22px; margin: 10px 0 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue-deep); }
.legal-foot { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
.legal-foot a:hover { color: var(--ink); }
