:root {
  --bg: #05060a;
  --bg-alt: #0a0c14;
  --surface: #0f121c;
  --border: #1d2233;
  --text: #e8eaf2;
  --muted: #9097ad;
  --accent: #6d7cff;
  --accent-2: #22d3ee;
  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8a5cff);
  box-shadow: 0 8px 30px -10px rgba(109, 124, 255, .7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(109, 124, 255, .9); }
.btn-small { padding: 8px 18px; font-size: .9rem; color: #fff !important; }
.btn-ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--muted); box-shadow: none; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 14vw, 150px) 0 clamp(64px, 11vw, 120px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(109, 124, 255, .22), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(34, 211, 238, .12), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--accent-2); margin: 0 0 20px; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 auto 24px; max-width: 20ch; text-wrap: balance; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0 auto 36px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 12px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 48px; max-width: 56ch; }

/* Service cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(109, 124, 255, .55); }
.card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(109, 124, 255, .12); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
a.tile:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .6); }
.tile .logo { display: grid; place-items: center; height: 150px; padding: 22px; background: #f6f7fb; }
.tile .logo img { max-height: 100%; width: auto; object-fit: contain; }
.tile .name { padding: 14px 16px; text-align: center; font-weight: 600; font-size: .95rem; }
.wordmark { font-weight: 800; font-size: 1.6rem; line-height: 1.05; letter-spacing: -.02em; text-align: center; color: #0c2a4d; }

/* About */
.about { display: grid; gap: 48px; grid-template-columns: 1.4fr 1fr; align-items: center; }
.about h2 { text-align: left; }
.about p { color: var(--muted); max-width: 58ch; }
.facts { display: grid; gap: 16px; }
.facts > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.facts strong { display: block; font-size: 1.8rem; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: .92rem; }
.facts .ionos { display: grid; place-items: center; }
.facts .ionos img { height: auto; max-width: 220px; }

/* Contact */
.contact { text-align: center; background: radial-gradient(50% 80% at 50% 100%, rgba(109, 124, 255, .18), transparent 70%); border-top: 1px solid var(--border); }
.socials { list-style: none; display: flex; justify-content: center; gap: 14px; padding: 0; margin: 36px 0 0; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); transition: color .15s, border-color .15s, transform .15s; }
.socials a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 720px; margin: 32px auto 0; text-align: left; }
.contact-form .field-full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 124, 255, .25); }
.contact-form [aria-invalid="true"] { border-color: #ff6b81; }
.field-error { min-height: 1.2em; margin: 4px 0 0; font-size: .85rem; color: #ff8fa0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 0; color: var(--muted); }
.form-status.is-success { color: #7ee2a8; }
.form-status.is-error { color: #ff8fa0; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 4px 0; }
.site-footer .small { font-size: .8rem; opacity: .8; }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .partners { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tile .logo { height: 120px; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
