:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --tint: #eef4fb;
  --ink: #0f1c33;
  --ink-soft: #4a5873;
  --ink-mute: #7a869c;
  --line: #e1e8f2;
  --brand: #1f6feb;
  --brand-2: #14b8a6;
  --brand-3: #7c5cff;
  --accent: #ff8a3d;
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 51, .05), 0 2px 8px rgba(15, 28, 51, .04);
  --shadow: 0 10px 30px -12px rgba(15, 28, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(31, 111, 235, .28);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 111, 235, .7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(31, 111, 235, .8); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; margin: 0 0 .9rem; padding: .3em .85em;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: rgba(31, 111, 235, .08); border-radius: 999px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 28, 51, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -.04em;
  box-shadow: 0 8px 18px -8px rgba(31, 111, 235, .8);
}
.brand-mark sup { font-size: .5em; margin-left: 1px; line-height: 1; position: relative; top: -.55em; vertical-align: baseline; }
.brand-mark { grid-auto-flow: column; align-items: center; justify-content: center; gap: 0; }
.brand-name { font-size: 1.25rem; letter-spacing: -.02em; }
.brand-suffix { margin-left: .35em; font-size: .72em; font-weight: 600; color: var(--ink-mute); }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a { padding: .5em .9em; border-radius: 999px; color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--ink); background: rgba(15, 28, 51, .05); text-decoration: none; }
.main-nav .nav-cta { color: var(--brand); background: rgba(31, 111, 235, .09); }

.lang-switch { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.flag {
  width: 34px; height: 26px; padding: 3px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  display: grid; place-items: center; opacity: .55; filter: saturate(.6); transition: opacity .2s, filter .2s, background .2s;
}
.flag svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 28, 51, .12); }
.flag:hover { opacity: 1; filter: none; }
.flag[aria-pressed="true"] { opacity: 1; filter: none; background: rgba(31, 111, 235, .12); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); content: ''; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; right: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; right: 0; top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: #bcd7ff; top: -180px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #c5f2e8; bottom: -200px; left: -140px; }
.blob-3 { width: 300px; height: 300px; background: #e4dcff; top: 40%; left: 45%; opacity: .45; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { background: linear-gradient(120deg, var(--ink) 30%, #1f4fa8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 36px; margin: 0; justify-content: start; }
.stats div { border-left: 3px solid; border-image: var(--grad) 1; padding-left: 14px; }
.stats dt { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.stats dd { margin: 0; color: var(--ink-mute); font-size: .9rem; }

.hero-visual { position: relative; min-height: 500px; }
.code-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; width: min(100%, 440px); margin-left: auto;
  animation: float 7s ease-in-out infinite;
}
.code-card-py { position: absolute; left: 0; bottom: 0; width: min(88%, 360px); animation-delay: -3.5s; box-shadow: 0 24px 50px -20px rgba(20, 184, 166, .35); }
.code-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafcff; }
.code-head span { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.code-head span:nth-child(2) { background: #ffc34d; }
.code-head span:nth-child(3) { background: #37d399; }
.code-head em { margin-left: 10px; font-style: normal; font-size: .8rem; color: var(--ink-mute); font-weight: 600; }
.code-card pre { margin: 0; padding: 18px 20px 22px; font: 500 .82rem/1.7 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: #33415c; overflow-x: auto; }
.code-card .k { color: #7c3aed; }
.code-card .t { color: #0e7490; }
.code-card .f { color: #1f6feb; }
.code-card .s { color: #c2410c; }
.badge-float {
  position: absolute; top: -20px; right: 24px; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-weight: 700; font-size: .9rem;
  animation: float 6s ease-in-out infinite; animation-delay: -1.5s;
}
.badge-float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 138, 61, .18); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: linear-gradient(180deg, var(--tint), #f5f9fd); border-block: 1px solid #e6eef8; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.profile-text p { color: var(--ink-soft); font-size: 1.08rem; }
.profile-text p:last-child { color: var(--ink); padding: 18px 20px; border-radius: var(--radius-sm); background: linear-gradient(120deg, rgba(124, 92, 255, .08), rgba(20, 184, 166, .08)); border: 1px solid rgba(124, 92, 255, .15); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.values h3 { margin-bottom: .2em; font-size: 1.05rem; }
.values p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(31, 111, 235, .09); color: var(--brand); }
.icon svg, .card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddcf0; }
.card > p { color: var(--ink-soft); font-size: .98rem; }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.ic-java { background: #fff1e6; color: #e2621b; }
.ic-python { background: #e8f1ff; color: #2563eb; }
.ic-ai { background: rgba(255, 255, 255, .2); color: #fff; }
.ic-int { background: #e7f8f5; color: #0f9488; }
.ic-data { background: #f1ecff; color: #6d4aff; }
.ic-ops { background: #eaf6ff; color: #0284c7; }
.card-featured { background: linear-gradient(145deg, #2a6ff0 0%, #6d5cff 55%, #14b8a6 130%); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.card-featured > p, .card-featured .ticks li { color: rgba(255, 255, 255, .9); }
.card-featured .ticks li::before { background: rgba(255, 255, 255, .25); color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: .94rem; color: var(--ink-soft); }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: .15em; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--brand-2); background: rgba(20, 184, 166, .12);
}

.stack { margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.stack h3 { color: var(--ink-mute); font-size: .95rem; font-weight: 600; margin-bottom: 18px; }
.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.chips li { padding: .45em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 18px; max-width: 900px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), var(--brand-3)); border-radius: 2px; opacity: .5; }
.timeline li { position: relative; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline li::before { content: ''; position: absolute; left: -28px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline li:nth-child(2n)::before { border-color: var(--brand-2); }
.timeline .when { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.timeline h3 { margin-bottom: .35em; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.contact-form, .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form { padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink);
  padding: .8em 1em; border-radius: var(--radius-sm); border: 1px solid #d4deeb; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 235, .14); }
.was-validated .field input:invalid, .was-validated .field textarea:invalid { border-color: #e5484d; background: #fff8f8; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.was-validated .consent input:invalid + span { color: #c62828; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.success { color: #0f7b5f; background: #e8f8f2; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status.error { color: #b42318; background: #fff1f0; padding: 12px 14px; border-radius: var(--radius-sm); }

.contact-card { padding: 30px; background: linear-gradient(160deg, #fff 0%, #f3f8ff 100%); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list address { font-style: normal; }
.contact-list a { font-weight: 600; }
.contact-note { margin: 0; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--ink-mute); font-size: .92rem; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-mute); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--ink-soft); }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .profile-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(15, 28, 51, .3); display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: .8em 1em; }
  .lang-switch { margin-left: auto; }
  .header-inner { gap: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .cards, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .brand-suffix { display: none; }
  .flag { width: 30px; }
  .hero-visual { min-height: 400px; }
  .code-card pre { font-size: .74rem; }
  .badge-float { top: -14px; }
  .timeline { padding-left: 22px; }
  .timeline li { padding: 18px 18px; }
  .timeline li::before { left: -22px; }
  .timeline::before { left: 4px; }
}
