:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #050508;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #e5e5e7;
  --accent: #0a84ff;
  --accent-2: #7c3aed;
  --accent-3: #06b6d4;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav.on-dark {
  background: rgba(5,5,8,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.nav.on-dark .logo { color: #fff; }
.nav.on-dark .menu-btn span { background: #fff; }
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.menu-btn {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.menu-btn span {
  display: block; width: 26px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-btn span:nth-child(2) { width: 18px; }

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(5,5,8,0.98);
  color: #fff;
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 24px 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-overlay .logo { color: #fff; }
.menu-close {
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; padding: 8px; line-height: 1;
}
.menu-links {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 8px;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.menu-links a {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; padding: 8px 0;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}
.menu-links a:hover { color: #fff; transform: translateX(8px); }
.menu-foot {
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.5); font-size: 13px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  background: var(--bg-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 32px 80px;
}
.hero.compact { min-height: 70vh; padding: 160px 32px 100px; }

.mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.mesh::before, .mesh::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.6;
}
.mesh::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px; left: -150px;
}
.mesh::after {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -250px; right: -200px;
}
.mesh-extra {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  border-radius: 50%; filter: blur(90px); opacity: 0.35;
  top: 30%; left: 40%; transform: translate(-50%, -50%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; text-align: center;
}
.hero-content.left { text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  font-size: 13px; color: rgba(255,255,255,0.85);
  margin-bottom: 32px; backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 6px; height: 6px; background: #34d399;
  border-radius: 50%; box-shadow: 0 0 8px #34d399;
}

h1.hero-title {
  font-size: clamp(44px, 7.5vw, 104px);
  font-weight: 700; letter-spacing: -0.045em;
  line-height: 0.98; margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #c8c8d0 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h1.hero-title.smaller {
  font-size: clamp(40px, 6vw, 84px);
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  color: rgba(255,255,255,0.72);
  max-width: 640px; margin: 0 auto 40px;
  font-weight: 400; line-height: 1.55;
}
.hero-content.left .hero-sub { margin: 0 0 40px; }

.cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-content.left .cta-row { justify-content: flex-start; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 100px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease; border: 1px solid transparent;
}
.btn-primary { background: #fff; color: #0a0a0a; }
.btn-primary:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: #0a0a0a; color: #fff; }
.btn-dark:hover { background: #1d1d1f; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-soft); }

/* ===== SECTION BASE ===== */
section.block { padding: 120px 32px; }
section.block.soft { background: var(--bg-soft); }
.inner { max-width: var(--max); margin: 0 auto; }
.section-eyebrow {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}
h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.05; margin-bottom: 20px; max-width: 760px;
}
h3 { font-weight: 600; letter-spacing: -0.02em; }
.section-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-muted);
  max-width: 620px; line-height: 1.6; margin-bottom: 56px;
}

/* ===== SERVICES ===== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc-card {
  background: var(--bg-soft);
  padding: 36px 32px 40px; border-radius: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative; overflow: hidden;
}
.svc-card:hover { transform: translateY(-4px); background: #efeff2; }
.svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: #fff;
}
.svc-card h3 { font-size: 22px; margin-bottom: 10px; }
.svc-card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* ===== PROCESS ===== */
.proc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.proc-step {
  background: #fff; border-radius: 20px;
  padding: 36px 32px; border: 1px solid var(--border);
}
.proc-num {
  font-size: 13px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 24px;
}
.proc-step h3 { font-size: 22px; margin-bottom: 10px; }
.proc-step p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* ===== ABOUT (split block with photo) ===== */
.about-block {
  position: relative; background: var(--bg-dark);
  color: #fff; padding: 0; min-height: 80vh;
  display: flex; align-items: center; overflow: hidden;
}
.about-bg { position: absolute; inset: 0; z-index: 0; }
.about-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.about-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,8,0.45) 0%, rgba(5,5,8,0.85) 100%);
}
.about-content {
  position: relative; z-index: 1;
  padding: 120px 32px; max-width: var(--max);
  margin: 0 auto; width: 100%;
}
.about-content .section-eyebrow { color: #6cc4ff; }
.about-content h2 { color: #fff; }
.about-content p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 600px; line-height: 1.6; margin-bottom: 32px;
}

/* ===== CTA BLOCK ===== */
.cta-block { padding: 140px 32px; text-align: center; }
.cta-block h2 { margin: 0 auto 20px; }
.cta-block .section-sub { margin: 0 auto 40px; }

/* ===== DETAIL LISTS (sub-pages) ===== */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start;
}
.detail-grid + .detail-grid { margin-top: 96px; }
.detail-grid h3 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.detail-grid p, .detail-grid li {
  color: var(--text-muted); font-size: 16px; line-height: 1.65;
}
.detail-grid ul { list-style: none; }
.detail-grid li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 12px;
}
.detail-grid li:last-child { border-bottom: none; }
.detail-grid li::before {
  content: '→'; color: var(--accent); flex-shrink: 0;
}
.detail-aside {
  background: var(--bg-soft); border-radius: 20px;
  padding: 32px;
}
.detail-aside .label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 8px;
}
.detail-aside .value {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.detail-aside .value:last-child { margin-bottom: 0; }

/* ===== EXAMPLES STRIP ===== */
.examples-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.example {
  padding: 32px; border-radius: 20px;
  background: var(--bg-soft);
  transition: background 0.2s ease;
}
.example:hover { background: #efeff2; }
.example .tag {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}
.example h4 {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.example p {
  color: var(--text-muted); font-size: 15px; line-height: 1.6;
}
.example .price {
  margin-top: 16px; font-weight: 600; color: var(--text);
}

/* ===== CONTACT FORM ===== */
.form-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.form-block .form-side h3 {
  font-size: 28px; letter-spacing: -0.02em; margin-bottom: 16px;
}
.form-block .form-side p {
  color: var(--text-muted); font-size: 16px;
  line-height: 1.6; margin-bottom: 24px;
}
.form-block .form-side .info-line {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.form-block .form-side .info-line:last-child { border-bottom: none; }
.form-block .form-side .info-line .k {
  color: var(--text-muted); width: 80px; flex-shrink: 0;
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
}
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 16px;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.12);
}
.field textarea { min-height: 130px; }

/* ===== FOOTER ===== */
footer {
  padding: 48px 32px 56px;
  border-top: 1px solid var(--border); background: var(--bg);
}
.foot-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-muted); font-size: 13px;
}
.foot-inner a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .svc-grid, .proc-grid, .examples-grid { grid-template-columns: 1fr; }
  .detail-grid, .form-block { grid-template-columns: 1fr; gap: 32px; }
  section.block { padding: 80px 24px; }
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 24px 60px; }
  .hero.compact { padding: 120px 24px 80px; }
  .about-content { padding: 80px 24px; }
  .cta-block { padding: 100px 24px; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
