:root {
  --bg: #0e1318;
  --bg-alt: #141c24;
  --card: #1a232d;
  --card-border: #27333f;
  --text: #eef3f7;
  --muted: #9fb0bf;
  --accent: #f0782a;
  --accent-2: #e9571f;
  --good: #4cd07d;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 18px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform .15s ease, background .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { border-color: var(--card-border); color: var(--text); }
.btn-outline:hover { background: var(--card); }
.btn-cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 10px 18px; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 19, 24, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name b { color: var(--accent); }

.nav { display: flex; gap: 8px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--card); }
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--card-border);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(240,120,42,.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(240,120,42,.08), transparent 40%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

.hero-visual { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }
.hero-visual img, .contact-image img, .gallery img { width: 100%; height: 100%; object-fit: cover; }

/* AI image loading state */
.img-frame { position: relative; }
.img-frame.loading::after {
  content: ""; position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle, rgba(240,120,42,.25), transparent 60%) center / 60% 60% no-repeat,
    var(--card);
}
.img-frame.loading::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px;
  border: 3px solid var(--card-border); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; z-index: 2;
}
.hero-visual.img-frame.loading, .contact-image.img-frame.loading { background: var(--card); }
.hero-visual.img-frame, .contact-image.img-frame { display: block; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.grid { display: grid; gap: 18px; }

.services { grid-template-columns: repeat(4, 1fr); }
.service, .step {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px; transition: transform .15s, border-color .2s;
}
.service:hover, .step:hover { transform: translateY(-4px); border-color: var(--accent); }
.service .ico, .step .ico { width: 46px; height: 46px; margin-bottom: 16px; }
.service h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service p, .step p { color: var(--muted); font-size: .95rem; }

.steps { grid-template-columns: repeat(4, 1fr); }
.step { text-align: center; }
.step .ico { margin: 0 auto 14px; }
.step-num {
  width: 30px; height: 30px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}

/* Gallery */
.gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.gallery .card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); background: var(--card); }
.gallery .card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .card:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 600;
}
.gallery-placeholder { width: 100%; height: 100%; }
.gallery-empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  background: var(--card); border: 1px dashed var(--card-border); border-radius: var(--radius); padding: 48px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.contact-sub { color: var(--muted); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 44px; height: 44px; flex-shrink: 0; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 9px; }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { font-weight: 700; font-size: 1.05rem; }

.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
  font-weight: 700; font-size: .92rem; transition: transform .15s, border-color .2s;
}
.social:hover { transform: translateY(-2px); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }

.contact-image { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; aspect-ratio: 4/3; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.footer-meta { font-size: .88rem; }

/* Mobile */
@media (max-width: 900px) {
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 4px; padding: 16px;
    background: var(--bg); border-bottom: 1px solid var(--card-border);
    display: none; margin-left: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.1rem; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .services, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}
