@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #070d1a;
  --bg-elevated: #0f172a;
  --bg-card: #131c2e;
  --bg-card-hover: #1a2540;
  --border: #1e2a44;
  --border-light: #2a3a5a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --emerald: #10b981;
  --emerald-dim: #059669;
  --terracotta: #e07a5f;
  --gold: #f4d35e;
  --gold-dim: #eab308;
  --blue: #3b82f6;
  --blue-dim: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

a { color: var(--emerald); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - App-like */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span { color: var(--emerald); }

.nav {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav a:hover, .nav a.active {
  background: var(--bg-card);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--emerald);
  color: #042f2e;
}
.btn-primary:hover { background: #34d399; transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: #1a1200;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(244, 211, 94, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }

.cart-btn, .icon-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.cart-btn:hover, .icon-btn:hover { background: var(--bg-card-hover); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle { display: none; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at 70% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 16px;
}

.badge-gold {
  background: rgba(244, 211, 94, 0.15);
  color: var(--gold);
  border-color: rgba(244, 211, 94, 0.3);
}

.badge-terracotta {
  background: rgba(224, 122, 95, 0.15);
  color: var(--terracotta);
  border-color: rgba(224, 122, 95, 0.3);
}

.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 520px; margin-bottom: 28px; }

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image img { width: 100%; height: 480px; object-fit: cover; }

/* Sections */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--text-muted); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.product-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.product-price { display: flex; align-items: center; gap: 10px; margin-top: auto; margin-bottom: 16px; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.price-old { color: var(--text-dim); text-decoration: line-through; font-size: 0.95rem; }

.product-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--emerald); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--emerald);
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--emerald);
  color: #042f2e;
  border-color: var(--emerald);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.cart-drawer.open { right: 0; }

.cart-header, .cart-footer { padding: 20px; border-bottom: 1px solid var(--border); }
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-footer { border-top: 1px solid var(--border); border-bottom: none; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* Mobile nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 8px 0 env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 6px 0;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--emerald); }

/* Account dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  min-height: 70vh;
}
.sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.sidebar a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sidebar a.active, .sidebar a:hover { background: var(--bg-elevated); color: var(--text); }

/* Subscription plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.plan-card.popular { border-color: var(--emerald); }
.plan-card.popular::before {
  content: "Populärast";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #042f2e;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-price { font-size: 3rem; font-weight: 700; margin: 16px 0; }
.plan-price span { font-size: 1rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .dashboard { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; right: -100%; }
  section { padding: 60px 0; }
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.newsletter {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.newsletter input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  width: 280px;
  max-width: 100%;
}
.newsletter form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
