:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --text: #15181d;
  --muted: #626a76;
  --line: #dedfe3;
  --line-strong: #bfc3ca;
  --blue: #1249ad;
  --blue-hover: #0e3c91;
  --header-bg: rgba(255,255,255,.96);
  --radius: 8px;
}

html[data-theme="dark"] {
  --bg: #101317;
  --bg-soft: #15191e;
  --surface: #181d23;
  --text: #f1f2f4;
  --muted: #a6adb7;
  --line: #2b3139;
  --line-strong: #4a515b;
  --blue: #74a6ff;
  --blue-hover: #94bbff;
  --header-bg: rgba(16,19,23,.96);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.kicker {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; }
.brand img { width: 155px; height: 47px; object-fit: contain; border-radius: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  padding: 9px 13px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
}
.nav .nav-cta:hover { background: var(--blue); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.theme-icon { line-height: 1; }
.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: inline; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 9px; border-radius: 5px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: .2s ease; }

/* Hero */
.hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,.99) 40%,
      rgba(255,255,255,.90) 52%,
      rgba(255,255,255,.35) 73%,
      rgba(255,255,255,.06) 100%),
    url("assets/code-background.png") 72% 45% / cover no-repeat;
}
html[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg,
      rgba(16,19,23,1) 0%,
      rgba(16,19,23,.99) 40%,
      rgba(16,19,23,.91) 52%,
      rgba(16,19,23,.48) 73%,
      rgba(16,19,23,.12) 100%),
    url("assets/code-background.png") 72% 45% / cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 620px; padding: 80px 0; margin-left: clamp(90px, 11vw, 190px); }
h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero-lead { max-width: 600px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.hero-small { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.plain-link { color: var(--blue); font-size: 14px; font-weight: 700; }
.plain-link:hover { text-decoration: underline; }
.btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn.full { width: 100%; }

/* Quick info */
.quick-info { border-bottom: 1px solid var(--line); }
.quick-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-info-grid > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.quick-info-grid > div:first-child { padding-left: 0; }
.quick-info-grid > div:last-child { border-right: 0; }
.quick-info strong { display: block; font-size: 20px; line-height: 1.2; }
.quick-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Shared section layout */
.section-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; align-items: start; }
.section-head { max-width: 690px; margin-bottom: 40px; }
.section-layout .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.section-head h2,
.contact-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.section-head > p:last-child,
.contact-copy > p:not(.kicker) { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.68; }

/* Services */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.service-number { color: var(--blue); font-size: 12px; font-weight: 700; padding-top: 4px; }
.service-row h3 { margin: 0 0 6px; font-size: 20px; }
.service-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Pricing */
.prices-section { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.price-card.featured { border-color: var(--blue); }
.featured-note { margin-bottom: 16px; color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.price-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.price-heading h3 { margin: 0 0 5px; font-size: 21px; }
.price-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.price { flex: 0 0 auto; text-align: right; font-size: 29px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.price small { display: block; margin-bottom: 1px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.price-card li { position: relative; padding-left: 19px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.hosting-row { margin-top: 16px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hosting-row h3 { margin: 0 0 5px; font-size: 20px; }
.hosting-row p { margin: 0; color: var(--muted); font-size: 13px; }
.hosting-row > strong { font-size: 19px; white-space: nowrap; }

/* Process */
.process-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--blue); font-size: 12px; font-weight: 700; padding-top: 4px; }
.process-list h3 { margin: 0 0 6px; font-size: 19px; }
.process-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* FAQ */
.faq-section { background: var(--bg-soft); border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 20px 38px 20px 0; font-size: 15px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 16px; color: var(--blue); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -3px 0 21px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Contact */
.contact-section { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.email-link { display: inline-block; margin-top: 27px; color: var(--blue); font-size: 18px; font-weight: 700; }
.email-link:hover { text-decoration: underline; }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-form label { display: grid; gap: 7px; margin-bottom: 15px; color: var(--text); font-size: 13px; font-weight: 700; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 5px; outline: none; background: var(--bg); color: var(--text); }
.contact-form textarea { min-height: 125px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 18%, transparent); outline-offset: 1px; }
.form-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

/* Footer */
.footer { padding: 25px 0; border-top: 1px solid var(--line); }
.footer-wrap { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 24px; }
.footer-brand img { width: 145px; height: 44px; object-fit: contain; border-radius: 3px; }
.footer p,
.footer > a,
.footer-wrap > a:last-child { color: var(--muted); font-size: 12px; }
.footer-wrap > a:last-child:hover { color: var(--blue); }

/* Very subtle motion only */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero {
    min-height: 540px;
    background:
      linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 55%, rgba(255,255,255,.58) 100%),
      url("assets/code-background.png") 66% center / cover no-repeat;
  }
  html[data-theme="dark"] .hero {
    background:
      linear-gradient(90deg, rgba(16,19,23,.99) 0%, rgba(16,19,23,.96) 55%, rgba(16,19,23,.68) 100%),
      url("assets/code-background.png") 66% center / cover no-repeat;
  }
  .section-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-layout .section-head { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 66px 0; }
  .nav-wrap { min-height: 66px; gap: 8px; }
  .brand img { width: 138px; height: 42px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 7px 14px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 5px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 7px; text-align: center; border-bottom: 1px solid var(--blue); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.93) 62%, rgba(255,255,255,.84) 100%),
      url("assets/code-background.png") 60% center / cover no-repeat;
  }
  html[data-theme="dark"] .hero {
    background:
      linear-gradient(180deg, rgba(16,19,23,.95) 0%, rgba(16,19,23,.94) 62%, rgba(16,19,23,.88) 100%),
      url("assets/code-background.png") 60% center / cover no-repeat;
  }
  .hero-copy { padding: 66px 0; margin-left: 0; }
  h1 { font-size: clamp(43px, 13vw, 59px); }
  .hero-lead { font-size: 16.5px; }
  .quick-info-grid { grid-template-columns: 1fr; }
  .quick-info-grid > div { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-info-grid > div:last-child { border-bottom: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hosting-row { grid-template-columns: 1fr; gap: 12px; }
  .hosting-row .plain-link { margin-top: 3px; }
  .footer-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
}

@media (max-width: 460px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .plain-link { text-align: center; }
  .price-card,
  .contact-form { padding: 22px; }
  .price-heading { display: block; }
  .price { margin-top: 17px; text-align: left; }
  .service-row,
  .process-list li { grid-template-columns: 38px 1fr; gap: 10px; }
}

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