:root {
  --bg: #1c1d21;
  --bg-2: #26272c;
  --text: #f3f3f4;
  --muted: #b0b1b6;
  --blue: #c026d3;
  --cyan: #e879f9;
  --purple: #a21caf;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(38, 39, 44, 0.92);
  --radius: 20px;
  --header: 88px;
  --shadow: 0 24px 60px rgba(2, 6, 18, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(700px 420px at 92% 0%, rgba(80, 80, 88, 0.35), transparent 55%),
    linear-gradient(180deg, #17181c 0%, #1c1d21 42%, #141518 100%);
  z-index: -1;
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img {
  height: 68px;
  width: auto;
  border-radius: 0;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-panel a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-panel a i {
  font-size: 0.85rem;
  color: #c5c7cc;
}
.nav-panel a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #f4f4f5;
  background: #2a2c31;
  border-color: #4e5158;
  box-shadow: none;
}
.btn-primary:hover {
  background: #34373d;
  border-color: #6a6e76;
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
}
.hero-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #d4d6db;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d6db;
  box-shadow: 0 0 0 6px rgba(212, 214, 219, 0.12);
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.45rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lead, .section-head p, .about-copy p, .card p {
  color: var(--muted);
}
.lead { font-size: 1.08rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-panel { display: grid; gap: 12px; }
.panel-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.mini-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #e4e5e8;
}
.panel-card i, .icon, .project-top i {
  color: #e4e5e8;
}
.card {
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}
.panel-card strong { display: block; }
.panel-card span, .contact-info span { color: var(--muted); font-size: 0.92rem; }

.section { padding: 72px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(38, 39, 44, 0.72), rgba(20, 21, 24, 0.2));
  border-block: 1px solid var(--line);
}
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 10px; }
.section { scroll-margin-top: calc(var(--header) + 12px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card { padding: 24px; }
.card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 1.15rem;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
}
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ececef;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.about-points li { display: flex; gap: 10px; align-items: center; }
.about-points i { color: #d4d6db; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  align-items: start;
}
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 21, 24, 0.72);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(228, 229, 232, 0.55); }
textarea { resize: vertical; min-height: 120px; }
.form-error { color: #fda4af; margin: 0; }
.form-success { color: #86efac; margin: 0; }

.contact-info { display: grid; gap: 14px; }
.contact-info h3 { margin-bottom: 4px; }
.contact-info a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.contact-info i { width: 18px; color: #d4d6db; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 18px;
  background: #16171a;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.footer-brand p,
.footer-bottom p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}
.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.site-footer .brand img { width: 40px; height: 40px; border-radius: 10px; }

@media (max-width: 900px) {
  .hero-grid, .about, .contact-grid, .card-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-panel {
    display: none;
    position: absolute;
    top: var(--header);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(28, 29, 33, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-panel.open { display: flex; }
  .nav-cta { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
