:root {
  color-scheme: light;
  --navy: #0b1830;
  --navy-soft: #142646;
  --ink: #15243b;
  --muted: #647188;
  --line: #dce3ec;
  --surface: #f4f7fb;
  --white: #ffffff;
  --mint: #3fe0c5;
  --mint-dark: #0aa78f;
  --gold: #f6c85f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 38px;
  width: 100%;
  padding: 15px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,227,236,.9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--navy); background: var(--mint); font-weight: 900; }
nav { display: flex; gap: 30px; margin-left: auto; }
nav a { color: #46546a; font-size: .92rem; font-weight: 600; }
nav a:hover { color: var(--mint-dark); }
.header-contact { padding: 9px 17px; border: 1px solid var(--navy); border-radius: 7px; font-size: .9rem; font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
  min-height: 720px;
  padding: 95px max(24px, calc((100vw - var(--max)) / 2)) 88px;
  background:
    radial-gradient(circle at 84% 18%, rgba(63,224,197,.2), transparent 26%),
    linear-gradient(135deg, #f8fbff, #edf3f9 70%);
}
.hero::before { content: ""; position: absolute; width: 260px; height: 260px; left: -170px; bottom: 40px; border: 55px solid rgba(11,24,48,.05); border-radius: 50%; }
.eyebrow { margin: 0 0 14px; color: var(--mint-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 24px; color: var(--navy); font-size: clamp(2.6rem, 5.3vw, 4.65rem); line-height: 1.12; letter-spacing: -.045em; }
h2 { margin-bottom: 18px; color: var(--navy); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.25; letter-spacing: -.035em; }
h3 { margin-bottom: 12px; color: var(--navy); font-size: 1.22rem; line-height: 1.35; }
.hero-intro { max-width: 620px; margin-bottom: 34px; color: #53627a; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 8px; font-weight: 750; }
.button.primary { color: var(--navy); background: var(--mint); }
.button.secondary { color: var(--navy); border: 1px solid #a9b6c8; background: rgba(255,255,255,.55); }
.button:hover { transform: translateY(-1px); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 620px; margin: 48px 0 0; padding: 25px 0 0; border-top: 1px solid #ced8e5; list-style: none; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--navy); font-size: .94rem; }
.hero-facts span { color: var(--muted); font-size: .8rem; }

.hero-panel { position: relative; transform: rotate(1.8deg); border: 1px solid rgba(255,255,255,.75); border-radius: 18px; background: var(--navy); box-shadow: 0 34px 80px rgba(18,37,68,.22); }
.hero-panel::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; z-index: -1; border: 1px solid rgba(11,24,48,.16); border-radius: 18px; }
.panel-top { display: flex; align-items: center; gap: 7px; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.panel-top span { width: 8px; height: 8px; border-radius: 50%; background: #5e6d84; }
.panel-top span:first-child { background: var(--mint); }
.panel-top b { margin-left: 10px; color: #aebbd0; font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 500; }
.panel-body { padding: 32px; }
.code-line { height: 8px; margin-bottom: 10px; border-radius: 8px; background: #2c4264; }
.code-line.long { width: 72%; }
.code-line.medium { width: 48%; margin-bottom: 34px; background: rgba(63,224,197,.65); }
.workspace-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.workspace-card { min-height: 130px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.055); }
.workspace-card.accent { background: var(--mint); }
.workspace-card span { display: block; margin-bottom: 24px; color: #72829b; font-size: .7rem; font-weight: 800; }
.workspace-card b { display: block; color: #f4f7fb; font-size: .95rem; }
.workspace-card i { display: block; width: 65%; height: 5px; margin-top: 13px; border-radius: 5px; background: #465a77; }
.workspace-card.accent span, .workspace-card.accent b { color: var(--navy); }
.workspace-card.accent i { background: rgba(11,24,48,.28); }

.section { max-width: var(--max); margin: 0 auto; padding: 105px 24px; }
.section-heading { max-width: 700px; margin-bottom: 50px; }
.section-heading > p:last-child, .process-copy > p:last-child { color: var(--muted); font-size: 1.02rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid article { min-height: 290px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid article:hover { background: var(--surface); }
.service-index { display: block; margin-bottom: 30px; color: var(--mint-dark); font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; }
.service-grid p { color: var(--muted); }
.service-grid ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.service-grid li { padding: 5px 10px; border-radius: 5px; color: #4f6077; background: var(--surface); font-size: .78rem; }

.process { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; max-width: none; padding-right: max(24px, calc((100vw - var(--max)) / 2)); padding-left: max(24px, calc((100vw - var(--max)) / 2)); color: #d6dfeb; background: var(--navy); }
.process h2 { color: var(--white); }
.process-copy > p:last-child { color: #9eacc0; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.13); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.process-list span { color: var(--mint); font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 800; }
.process-list h3 { margin-bottom: 5px; color: var(--white); }
.process-list p { margin-bottom: 0; color: #9eacc0; }

.principles { padding-bottom: 80px; }
.section-heading.compact { margin-bottom: 38px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle-grid div { padding: 34px; background: var(--white); }
.principle-grid b { color: var(--navy); font-size: 1.06rem; }
.principle-grid p { margin: 12px 0 0; color: var(--muted); }

.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; padding-top: 70px; border-top: 1px solid var(--line); }
.about-copy { max-width: 670px; color: #526078; font-size: 1.07rem; }
.about-copy p:last-child { margin-bottom: 0; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 35px; max-width: var(--max); margin: 10px auto 90px; padding: 52px; border-radius: 16px; color: #cad5e4; background: var(--navy-soft); }
.contact h2 { margin-bottom: 10px; color: var(--white); font-size: clamp(1.8rem, 3vw, 2.45rem); }
.contact p:not(.eyebrow) { max-width: 670px; margin-bottom: 0; color: #aebbd0; }
.button.light { flex: 0 0 auto; color: var(--navy); background: var(--mint); }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 35px max(24px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
footer div { display: flex; gap: 12px; }
footer b { color: var(--navy); }
footer p { margin: 0; }

@media (max-width: 860px) {
  .site-header { gap: 14px; }
  nav { display: none; }
  .header-contact { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 58px; min-height: auto; padding-top: 72px; }
  .hero-panel { max-width: 620px; transform: none; }
  .process, .about { grid-template-columns: 1fr; gap: 45px; }
  .principle-grid { grid-template-columns: 1fr; }
  .contact { margin-right: 24px; margin-left: 24px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { padding: 12px 18px; }
  .header-contact { padding: 7px 11px; font-size: .8rem; }
  .hero { padding: 58px 20px 70px; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { display: grid; grid-template-columns: 100px 1fr; align-items: center; }
  .panel-body { padding: 22px; }
  .workspace-card { min-height: 112px; padding: 14px; }
  .section { padding: 76px 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 0; padding: 28px; }
  .process { padding: 76px 20px; }
  .process-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .about { padding-top: 62px; }
  .contact { display: block; margin: 0 20px 65px; padding: 34px 26px; }
  .contact .button { width: 100%; margin-top: 24px; font-size: .92rem; }
  footer { display: block; padding: 28px 20px; }
  footer div { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
