:root {
  --bg: #f4f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --ink: #0d0f14;
  --ink-2: #1b1f2a;
  --muted: #667080;
  --muted-2: #8a92a1;
  --line: rgba(13, 15, 20, 0.11);
  --line-dark: rgba(255, 255, 255, 0.13);
  --dark: #06070a;
  --dark-2: #10131a;
  --accent: #4d7cff;
  --accent-2: #8fa8ff;
  --radius-lg: 36px;
  --radius-md: 24px;
  --shadow: 0 28px 90px rgba(10, 16, 31, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% -12%, rgba(77, 124, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 0% 32%, rgba(0, 0, 0, 0.05), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 99;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(20px);
}
.brand-logo { width: 172px; max-width: 48vw; }
.nav { display: flex; gap: 26px; align-items: center; color: var(--muted); font-size: .94rem; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 700; }

.section-xl, .section { max-width: var(--max); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.section-xl { padding-top: 64px; padding-bottom: 92px; }
.section { padding-top: 96px; padding-bottom: 96px; }

.hero { min-height: 760px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: center; gap: 48px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .75rem; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.eyebrow::before, .section-kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .8; }
.section-kicker.light { color: var(--accent-2); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.3rem, 7.4vw, 7.1rem); line-height: .91; letter-spacing: -.078em; margin-bottom: 28px; max-width: 900px; }
h2 { font-size: clamp(2rem, 4.3vw, 4.2rem); line-height: 1; letter-spacing: -.058em; margin-bottom: 20px; }
h3 { font-size: 1.22rem; line-height: 1.14; letter-spacing: -.025em; margin-bottom: 10px; }
p { color: var(--muted); }
.hero-lead { max-width: 700px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 16px 34px rgba(13,15,20,.14); }
.btn-light { background: rgba(255,255,255,.72); border: 1px solid var(--line); color: var(--ink); }

.hero-dashboard { position: relative; min-height: 560px; border-radius: 44px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(247,248,250,.68)); box-shadow: var(--shadow); padding: 30px; }
.hero-dashboard::after { content:""; position:absolute; width: 260px; height: 260px; right:-70px; bottom:-70px; background: var(--ink); border-radius:50%; opacity:.96; }
.dashboard-top { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; color: var(--muted); font-weight: 800; }
.status-dot { width:10px; height:10px; background: var(--accent); border-radius:50%; box-shadow: 0 0 0 8px rgba(77,124,255,.12); }
.orbit { position:absolute; inset: 72px 54px 130px; border: 1px solid rgba(13,15,20,.10); border-radius: 50%; }
.orbit span { position:absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.orbit span:nth-child(1) { top: 14%; left: 22%; }
.orbit span:nth-child(2) { top: 54%; right: 12%; background: var(--accent); }
.orbit span:nth-child(3) { bottom: 12%; left: 46%; }
.dashboard-grid { position:absolute; z-index: 2; left:30px; right:30px; bottom:30px; display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-card { min-height: 118px; padding: 20px; border-radius: 24px; background: rgba(255,255,255,.82); border: 1px solid var(--line); backdrop-filter: blur(18px); }
.dash-card strong { display:block; font-size: 1.7rem; letter-spacing: -.05em; color: var(--ink); }
.dash-card span { color: var(--muted); font-size: .94rem; }
.dash-card.accent { background: var(--ink); }
.dash-card.accent strong, .dash-card.accent span { color: #fff; }

.split { display:grid; grid-template-columns: .95fr 1.05fr; gap: 58px; align-items:start; }
.prose p { font-size: 1.08rem; }
.surface-section { max-width: none; padding-left: max(28px, calc((100vw - var(--max)) / 2 + 28px)); padding-right: max(28px, calc((100vw - var(--max)) / 2 + 28px)); background: rgba(255,255,255,.54); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { max-width: var(--max); margin: 0 auto 38px; }
.service-grid { max-width: var(--max); margin: 0 auto; display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 270px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; box-shadow: 0 16px 46px rgba(10,16,31,.045); }
.service-card span { display:inline-block; color: var(--accent); font-weight: 900; margin-bottom: 54px; }
.service-card.dark-card { background: var(--ink); color:#fff; }
.service-card.dark-card p { color: rgba(255,255,255,.68); }
.service-card.dark-card span { color: var(--accent-2); }

.portfolio-section { background: var(--dark); color: #fff; padding: 102px 28px; }
.portfolio-inner { max-width: var(--max); margin: 0 auto; }
.portfolio-section h2 { max-width: 980px; }
.portfolio-list { border: 1px solid var(--line-dark); border-radius: 34px; overflow: hidden; background: var(--line-dark); }
.portfolio-row { display:grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; padding: 30px; background: #0b0d12; border-bottom: 1px solid var(--line-dark); }
.portfolio-row:last-child { border-bottom: 0; }
.portfolio-row p { max-width: 760px; color: rgba(255,255,255,.66); }
.portfolio-code { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; background: rgba(255,255,255,.08); color:#fff; font-weight:900; }

.method-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 32px; overflow:hidden; background:#fff; }
.method-step { padding: 28px; border-right: 1px solid var(--line); }
.method-step:last-child { border-right: 0; }
.method-step span { width: 40px; height: 40px; border-radius: 50%; display:grid; place-items:center; background: rgba(77,124,255,.12); color: var(--accent); font-weight: 900; margin-bottom: 34px; }

.trust-card { display:grid; grid-template-columns: 1.1fr .9fr; gap: 44px; padding: clamp(34px, 7vw, 78px); border-radius: 42px; color: #fff; background: radial-gradient(circle at 88% 12%, rgba(77,124,255,.32), transparent 28rem), linear-gradient(135deg, #07080c, #161b27); box-shadow: var(--shadow); }
.trust-card p { color: rgba(255,255,255,.7); font-size: 1.08rem; }
.contact-section { padding-top: 32px; }
.contact-card { text-align: center; max-width: 920px; margin: 0 auto; padding: clamp(34px, 7vw, 70px); border-radius: 42px; background: rgba(255,255,255,.72); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card .section-kicker { justify-content: center; }
.contact-card p { max-width: 640px; margin-left: auto; margin-right: auto; }

.footer { display:flex; justify-content:space-between; gap: 38px; padding: 52px max(28px, calc((100vw - var(--max)) / 2 + 28px)); background:#050608; color:#fff; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer p, .footer a { color: rgba(255,255,255,.68); }
.footer-links { display:flex; flex-direction:column; gap: 12px; text-align:right; }

.legal-page { background:#fff; }
.legal-main { max-width: 920px; margin: 0 auto; padding: 74px 28px; }
.legal-main h1 { font-size: clamp(2.7rem, 5.2vw, 5rem); }
.legal-main h2 { font-size: 1.8rem; margin-top: 44px; letter-spacing: -.04em; }
.legal-main li, .legal-main p { color: var(--muted); }
.legal-main a { color: var(--accent); font-weight: 800; }
.legal-box { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 980px) {
  .hero, .split, .trust-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-step:nth-child(2) { border-right: 0; }
  .method-step:nth-child(1), .method-step:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .site-header { position: static; align-items:flex-start; }
  .menu-toggle { display: inline-flex; margin-left:auto; }
  .nav { display:none; position:absolute; top: 76px; left: 20px; right:20px; flex-direction:column; align-items:flex-start; padding: 18px; border-radius: 22px; background:#fff; border:1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display:flex; }
  .section-xl, .section { padding-left: 20px; padding-right: 20px; }
  .section-xl { padding-top: 44px; }
  h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .hero-dashboard { min-height: 430px; border-radius: 32px; }
  .dashboard-grid, .service-grid, .method-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card span { margin-bottom: 34px; }
  .portfolio-section { padding-left: 20px; padding-right: 20px; }
  .portfolio-row { grid-template-columns: 1fr; }
  .method-step, .method-step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-step:last-child { border-bottom: 0; }
  .footer { flex-direction:column; }
  .footer-links { text-align:left; }
}
