:root {
  --bg: #09090f;
  --panel: #121326;
  --muted: #8b93a5;
  --text-main: #f0f4f8;
  --accent: #ff8a3d;
  --accent-2: #7a4eff;
  --accent-3: #1e3a75;
  --glass: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --maxw: 1100px;
  --gap: 20px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { 
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  
  background-color: var(--bg);
  background-image: radial-gradient(circle at top center, #16182e 0%, var(--bg) 80%);
  background-attachment: fixed;
  
  color: var(--text-main);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
}

.container--force-center {
  margin-left: auto !important;
  margin-right: auto !important;
}


.site-header {
  background: rgba(15, 16, 32, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent-2), #b39afe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  transition: opacity 0.2s ease;
}

.brand:hover { 
  opacity: 0.8; 
}

.main-nav .nav-btn {
  text-decoration: none;
  color: var(--muted);
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: #fff;
  background: var(--glass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-toggle:hover {
  color: #fff;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(107, 59, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(107, 59, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 40px 0;
}

.card-section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}


.site-footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.socials .social {
  margin-left: 12px;
  text-decoration: none;
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.socials .social:hover { 
  color: #fff; 
  background: var(--glass);
}

.muted { 
  color: var(--muted); 
  font-size: 14px; 
}


@media (max-width: 900px) {
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  
  .header-inner { gap: 8px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  
  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #1a1b2e;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    min-width: 200px;
  }

  body.nav-open .main-nav .nav-btn {
    margin: 0 0 8px 0;
    width: 100%;
    text-align: left;
  }

  .container { padding: 16px; }
  .card-section { padding: 20px; }
}
