:root {
  --bg: #06070a;
  --bg-elevated: #0b0e14;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --text-muted: #a4acbf;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --radius: 14px;
  --max-width: 1200px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

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

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

/* Page header (independent of hero) */
.page-header {
  padding: 64px 0 0;
}
.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }

.btn-ghost {
  color: var(--text-muted);
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost:hover { color: var(--text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand-mark { width: 32px; height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.active { color: var(--text); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Shared section layout */
section { padding: 90px 0; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 48px;
}

/* Cards (used on home teaser + full services page) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(29, 78, 216, 0.25));
  color: var(--blue-light);
  margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* Portfolio visual mockups (used on home + portfolio) */
.portfolio-visual svg,
.portfolio-mini-visual svg {
  width: 90%;
  height: 90%;
  display: block;
}

/* Concept/demo badge (used on home + portfolio) */
.concept-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Real/delivered project badge (used on home + portfolio) */
.real-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Stat blocks (used on home + about) */
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}
.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-light);
  margin-bottom: 6px;
}
.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* Contact teaser banner (used on multiple pages) */
.contact-teaser {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(29, 78, 216, 0.08));
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-teaser h2 { margin-bottom: 16px; }
.contact-teaser p { color: var(--text-muted); margin: 0 0 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-tagline { color: var(--text-muted); margin: 0 0 20px; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-nav-legal { margin-top: -8px; font-size: 0.85rem; }
.footer-nav-legal a { font-size: 0.85rem; }
.footer-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.footer-meta a { color: var(--blue-light); }

/* Responsive */
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hide-mobile { display: none; }
}
