:root {
  --background: #06060b;
  --foreground: #f4f4f5;
  --primary: #00d4ff;
  --accent: #8b5cf6;
  --card: #0e0e14;
  --border: rgba(255, 255, 255, 0.08);
  --muted: #a1a1aa;
  --surface-dark: #06060b;
  --surface-elevated: #111118;
  --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #22d3ee 55%, #6366f1 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.site-loading { padding: 4rem; text-align: center; color: var(--muted); }

.glass-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(6, 6, 11, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 5rem; gap: 1rem;
}
.nav-logo img { height: 3.5rem; width: auto; }
.nav-links { display: none; gap: 0.25rem; flex-wrap: wrap; }
.nav-links a {
  padding: 0.5rem 0.75rem; border-radius: 999px; font-size: 0.875rem;
  color: #a1a1aa; transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.08); color: var(--primary); }
.nav-actions { display: none; align-items: center; gap: 0.75rem; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border-radius: 999px; padding: 0.65rem 1.1rem; font-size: 0.875rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--gradient-brand); color: #041018; }
.btn-ghost { border-color: var(--border); color: #d4d4d8; background: transparent; }
.menu-btn { display: inline-flex; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: var(--surface-elevated);
  padding: 1rem 1.25rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 0; color: #d4d4d8; }

main { padding-top: 5rem; }
.section { max-width: 80rem; margin: 0 auto; padding: 4rem 1.25rem; }
.section-alt { background: #0a0a10; }
.section-heading {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.1;
}
.section-sub { color: var(--muted); max-width: 42rem; margin-top: 0.75rem; }
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero {
  padding: 6rem 1.25rem 4rem; max-width: 80rem; margin: 0 auto;
  display: grid; gap: 2rem; align-items: center;
}
.hero h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; margin: 0 0 1rem; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; }
.stat-card strong { display: block; font-size: 1.5rem; color: var(--primary); }
.grid-3 { display: grid; gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.25rem; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(0,212,255,0.35); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card-media { padding: 0; overflow: hidden; }
.card-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: #111118; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-media h3, .card-media p { padding: 0 1.25rem; }
.card-media h3 { padding-top: 1rem; }
.card-media p { padding-bottom: 1.25rem; }
.template-grid { margin-top: 2rem; }
.template-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
}
.template-card:hover { border-color: rgba(0,212,255,0.35); }
.template-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111118; }
.template-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.template-card:hover .template-thumb img { transform: scale(1.03); }
.template-badge {
  position: absolute; left: 1rem; top: 1rem; z-index: 1;
  border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  background: rgba(6, 6, 11, 0.88); color: var(--primary); text-transform: capitalize;
}
.template-body { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
.template-body h3 { margin: 0; font-size: 1.05rem; }
.template-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.template-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.template-actions .btn-primary, .template-actions .btn-ghost { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.logo-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 7.5rem; padding: 0.85rem; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.logo-card-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 5.5rem; padding: 0.85rem 1rem;
  border-radius: 0.75rem; background: #ffffff;
}
.logo-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.logo-card img {
  max-height: 3.75rem; max-width: 92%; width: auto; margin: 0 auto;
  object-fit: contain;
}
.logo-fallback {
  font-size: 0.9rem; font-weight: 600; color: var(--muted); line-height: 1.3;
}
.site-footer { border-top: 1px solid var(--border); background: var(--surface-dark); padding: 4rem 1.25rem 2rem; }
.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-grid {
  display: grid; gap: 2.5rem;
}
.footer-brand { max-width: 22rem; }
.footer-logo { display: inline-block; margin-bottom: 1.25rem; }
.footer-logo img { height: 3.5rem; width: auto; max-width: 11rem; object-fit: contain; }
.footer-tagline { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; max-width: 20rem; }
.footer-label {
  margin: 0 0 1rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary);
}
.footer-social { margin-top: 1.5rem; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.footer-social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  transition: border-color 0.2s, background 0.2s;
}
.footer-social-links a:hover { border-color: rgba(0,212,255,0.4); background: rgba(255,255,255,0.1); }
.footer-columns { display: grid; gap: 2rem; }
.footer-list, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.footer-list a, .footer-contact a {
  color: #a1a1aa; font-size: 0.9rem; transition: color 0.2s;
}
.footer-list a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  color: #a1a1aa; font-size: 0.9rem; line-height: 1.5;
}
.footer-contact img { margin-top: 0.15rem; flex-shrink: 0; opacity: 0.85; }
.footer-cta-text { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.footer-cta-btn { display: inline-flex; }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
  text-align: center; color: #71717a; font-size: 0.78rem;
}
.footer-bottom p { margin: 0; }
.page-title { margin: 0 0 0.5rem; }
.breadcrumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.prose { color: #d4d4d8; }
.prose h2 { font-family: "Space Grotesk", sans-serif; margin-top: 2rem; }
.form-grid { display: grid; gap: 1rem; max-width: 36rem; }
.form-grid input, .form-grid textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); color: #fff;
  border-radius: 0.75rem; padding: 0.85rem 1rem; font: inherit;
}
.form-grid textarea { min-height: 8rem; resize: vertical; }
.alert { padding: 0.75rem 1rem; border-radius: 0.75rem; margin-top: 1rem; }
.alert.ok { background: rgba(34,197,94,0.15); color: #86efac; }
.alert.err { background: rgba(239,68,68,0.15); color: #fca5a5; }
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }

@media (min-width: 640px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
  .menu-btn { display: none; }
  .hero { grid-template-columns: 1.2fr 0.8fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 0.85fr; align-items: start; }
  .footer-columns { gap: 2.5rem; }
}
