/* ==========================================================================
   DeutschBox Store — Premium Landing Page Styles
   Colors: Black / White / German Red / Gold
   Fonts: Poppins (primary), Cairo (secondary)
   ========================================================================== */

:root {
  --color-black: #0a0a0a;
  --color-black-soft: #141414;
  --color-white: #ffffff;
  --color-off-white: #f8f7f5;
  --color-red: #d51f28;
  --color-red-dark: #a5161e;
  --color-gold: #c9a54b;
  --color-gold-light: #e6c876;
  --color-gray-100: #f4f4f4;
  --color-gray-300: #e0e0e0;
  --color-gray-500: #8a8a8a;
  --color-gray-700: #4a4a4a;

  --font-primary: 'Poppins', 'Cairo', sans-serif;

  --container-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-medium: 0 20px 60px rgba(0,0,0,0.14);
  --shadow-strong: 0 30px 80px rgba(0,0,0,0.22);

  --transition-base: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
section { position: relative; }

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

.accent-red { color: var(--color-red); }
.accent-gold { color: var(--color-gold); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo img {
  border-radius: 12px;
  animation: pulseLogo 1.4s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}
.btn i { font-size: 0.85em; }
.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-red); transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.btn-ghost {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
}
.btn-ghost:hover { background: var(--color-black); color: var(--color-white); transform: translateY(-3px); }
.btn-outline-gold {
  border: 1.5px solid var(--color-gold);
  color: var(--color-black);
  padding: 11px 22px;
  font-size: 0.88rem;
}
.btn-outline-gold:hover { background: var(--color-gold); color: var(--color-black); }
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-black);
  box-shadow: 0 15px 40px rgba(201, 165, 75, 0.35);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 50px rgba(201, 165, 75, 0.5); }

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-red);
  margin-bottom: 18px;
}
.eyebrow.center { justify-content: center; width: 100%; }
.eyebrow.light { color: var(--color-gold-light); }

.section-heading { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.section-sub { color: var(--color-gray-700); font-size: 1.05rem; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.site-header.hide-nav { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img { border-radius: 10px; }
.brand-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { font-weight: 500; font-size: 0.6em; color: var(--color-gray-500); letter-spacing: 0.05em; margin-left: 4px; }

.main-nav .nav-list { display: flex; gap: 40px; }
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-red);
  transition: width var(--transition-base);
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--color-black); transition: var(--transition-base); border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  background:
    radial-gradient(circle at 85% 20%, rgba(213,31,40,0.06), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(201,165,75,0.10), transparent 45%),
    var(--color-white);
  overflow: hidden;
}
.hero-bg-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floating-star { position: absolute; color: var(--color-gold); font-size: 1.4rem; animation: floatY 6s ease-in-out infinite; }
.star-1 { top: 12%; left: 6%; animation-delay: 0s; }
.star-2 { top: 70%; left: 4%; font-size: 1rem; animation-delay: 1.4s; }
.star-3 { top: 22%; right: 4%; animation-delay: 0.8s; }
.floating-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--color-red); opacity: 0.5; animation: floatY 5s ease-in-out infinite; }
.dot-1 { top: 55%; left: 12%; animation-delay: 0.5s; }
.dot-2 { top: 40%; right: 10%; background: var(--color-gold); animation-delay: 1.2s; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 24px;
}
.hero-subtext { font-size: 1.1rem; color: var(--color-gray-700); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--color-gray-700); }

.hero-visual { position: relative; height: 560px; }
.floating-card {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--color-white);
  animation: floatCard 7s ease-in-out infinite;
  transition: transform 0.4s ease;
}
.floating-card:hover { transform: scale(1.05) !important; z-index: 10; }
.card-1 { width: 300px; height: 300px; top: 6%; left: 12%; animation-delay: 0s; z-index: 3;}
.card-2 { width: 210px; height: 210px; top: 0%; right: 4%; animation-delay: 1s; z-index: 2;}
.card-3 { width: 190px; height: 190px; bottom: 8%; left: 0%; animation-delay: 2s; z-index: 2;}
.card-4 { width: 200px; height: 200px; bottom: 0%; right: 14%; animation-delay: 1.6s; z-index: 1;}
.glow-orb {
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,165,75,0.25), transparent 70%);
  top: 30%; left: 30%;
  filter: blur(20px);
  z-index: 0;
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.scroll-indicator {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--color-gray-300);
  border-radius: 20px;
  z-index: 1;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--color-red);
  border-radius: 3px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products-section { padding: 130px 0; background: var(--color-off-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.product-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-strong);
}
.product-badge {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.product-badge.badge-gold { background: var(--color-gold); color: var(--color-black); }
.product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-gray-100);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-media img { transform: scale(1.09) rotate(-1deg); }
.product-info { padding: 28px 30px 32px; }
.product-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-info p { color: var(--color-gray-700); font-size: 0.95rem; margin-bottom: 18px; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-black);
  transition: gap var(--transition-base), color var(--transition-base);
}
.product-card:hover .product-link { gap: 14px; color: var(--color-red); }

/* ==========================================================================
   WHY SECTION
   ========================================================================== */
.why-section { padding: 130px 0; background: var(--color-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-card {
  text-align: center;
  padding: 48px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-300);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-medium);
}
.why-icon {
  width: 70px; height: 70px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-black), #2a2a2a);
  color: var(--color-gold-light);
  font-size: 1.5rem;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.why-card p { color: var(--color-gray-700); font-size: 0.92rem; }

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.countdown-section {
  padding: 120px 0;
  background: linear-gradient(160deg, var(--color-black) 0%, #1a1a1a 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(213,31,40,0.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201,165,75,0.18), transparent 40%);
  pointer-events: none;
}
.countdown-inner { position: relative; z-index: 1; }
.countdown-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 50px; }

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.countdown-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,165,75,0.3);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  min-width: 110px;
  backdrop-filter: blur(6px);
}
.countdown-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-gold-light);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gray-300);
  margin-top: 6px;
}
.countdown-sep { font-size: 2rem; color: var(--color-gold); font-weight: 300; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-section { padding: 130px 0; background: var(--color-off-white); }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 70px;
  box-shadow: var(--shadow-soft);
}
.newsletter-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 20px; }
.newsletter-copy p { color: var(--color-gray-700); margin-bottom: 26px; }
.newsletter-points li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 500; }

.form-label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 0.9rem; }
.form-row { display: flex; gap: 12px; }
.form-row input {
  flex: 1;
  padding: 16px 20px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: 999px;
  font-size: 0.98rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-row input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(213,31,40,0.1);
}
.form-hint { font-size: 0.82rem; color: var(--color-gray-500); margin-top: 14px; }
.form-message { margin-top: 14px; font-weight: 600; font-size: 0.92rem; min-height: 22px; }
.form-message.success { color: #1e8e3e; }
.form-message.error { color: var(--color-red); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-black); color: var(--color-gray-300); padding-top: 90px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin: 18px 0 20px; font-size: 0.92rem; color: var(--color-gray-500); max-width: 320px; }
.footer-brand .brand-text { color: var(--color-white); }
.footer-academy-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-col h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--color-gray-500); font-size: 0.9rem; transition: color var(--transition-base); }
.footer-col a:hover { color: var(--color-gold-light); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: var(--transition-base);
}
.social-icons a:hover { background: var(--color-red); border-color: var(--color-red); color: var(--color-white); transform: translateY(-3px); }
.footer-bottom { padding: 26px 0; text-align: center; font-size: 0.85rem; color: var(--color-gray-500); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-medium);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  z-index: 900;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--color-red); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 20px; order: -1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; padding: 50px 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--color-white); flex-direction: column; padding: 20px 32px 30px; box-shadow: var(--shadow-medium); transform: translateY(-120%); opacity: 0; transition: var(--transition-base); }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .nav-list { flex-direction: column; gap: 20px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-section { padding: 130px 0 70px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .countdown-timer { gap: 10px; }
  .countdown-block { min-width: 76px; padding: 16px 14px; }
  .countdown-sep { font-size: 1.2rem; }
  .form-row { flex-direction: column; }
  .form-row .btn { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; }
  .card-1 { width: 200px; height: 200px; }
  .card-2 { width: 140px; height: 140px; }
  .card-3 { width: 120px; height: 120px; }
  .card-4 { width: 130px; height: 130px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
