:root {
  --bg: #0b1020;
  --bg-alt: #0f1730;
  --surface: #131c38;
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --brand: #4f7cff;
  --brand-2: #9b5bff;
  --accent: #22d3ee;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max: 1160px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 30px rgba(79, 124, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79, 124, 255, .5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-nav { padding: 9px 18px; background: rgba(79,124,255,.15); border-color: rgba(79,124,255,.4); color: #cdd8ff; }
.btn-nav:hover { background: rgba(79,124,255,.28); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px); background: rgba(11, 16, 32, .6);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(11, 16, 32, .9); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 800; font-size: 16px; box-shadow: 0 8px 20px rgba(79,124,255,.4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 17px; }
.logo-text small { font-size: 11px; letter-spacing: 3px; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav > a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* Hero */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(79,124,255,.25), transparent 60%),
    radial-gradient(700px 500px at 85% 30%, rgba(155,91,255,.22), transparent 60%),
    radial-gradient(500px 400px at 60% 90%, rgba(34,211,238,.14), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 58px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 18px; margin: 24px auto 0; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 32px; background: linear-gradient(120deg, #fff, var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2, .about-content h2, .contact-info h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; margin-top: 6px; }
.section-desc { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow); text-align: center;
}
.about-emoji { font-size: 48px; display: block; margin-bottom: 12px; }
.about-card h4 { font-size: 20px; margin-bottom: 8px; }
.about-card p { color: var(--muted); }
.about-content p { color: var(--muted); font-size: 17px; }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: rgba(34,211,238,.15); color: var(--accent); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(79,124,255,.4); box-shadow: var(--shadow); }
.service-icon { font-size: 36px; display: block; margin-bottom: 16px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--border); }
.gallery-item .ph { aspect-ratio: 4/3; }
.ph-1 { background: linear-gradient(135deg, #4f7cff, #9b5bff); }
.ph-2 { background: linear-gradient(135deg, #22d3ee, #4f7cff); }
.ph-3 { background: linear-gradient(135deg, #9b5bff, #ff5b9b); }
.ph-4 { background: linear-gradient(135deg, #ffb020, #ff5b5b); }
.ph-5 { background: linear-gradient(135deg, #22d3ee, #22c55e); }
.ph-6 { background: linear-gradient(135deg, #6b7cff, #22d3ee); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 600; font-size: 15px;
}
.gallery-note { text-align: center; color: var(--muted); margin-top: 24px; font-size: 14px; }
.gallery-note code { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.contact-list span { font-size: 20px; }
.contact-list a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-status.ok { color: #34d399; }
.form-status.err { color: #f87171; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px 24px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 360px; }
.footer-brand strong { font-size: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Reveal animation */
.section, .hero-inner > * { }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(11,16,32,.98); backdrop-filter: blur(12px); padding: 16px 24px 28px;
    border-bottom: 1px solid var(--border); gap: 4px; transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 12px 14px; }
  .btn-nav { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .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-stats { gap: 28px; }
}
@media (max-width: 520px) {
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}
