/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  /* Barvy */
  --color-primary: #ff2f78;
  --color-primary-light: #ff5a96;
  --color-primary-dark: #e0205f;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-soft: #f8f8fa;
  --color-border: #e8e8ec;
  --color-dark: #1a1a2e;

  /* Spacing (8px grid) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(255, 47, 120, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Font */
  --font-family: 'Outfit', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Button
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 47, 120, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 25px rgba(255, 47, 120, 0.4);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__cta {
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(72px + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* ---- Hero Left: Image ---- */
.hero__left {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  max-width: 500px;
}

.hero__image-frame {
  position: absolute;
  top: 20px;
  left: -20px;
  width: calc(100% - 40px);
  height: calc(100% - 60px);
  border: 3px solid var(--color-dark);
  border-radius: 4px;
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---- Glass Card ---- */
.hero__glass-card {
  position: absolute;
  bottom: 30px;
  right: -40px;
  width: 280px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.glass-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.glass-card__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.glass-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.glass-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.glass-card__info strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.glass-card__info span {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.glass-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.glass-card__badge--live {
  background: var(--color-primary);
  color: #fff;
}

.glass-card__badge--full {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.glass-card__socials {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.glass-card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.glass-card__social:hover {
  color: var(--color-primary);
  background: rgba(255, 47, 120, 0.08);
}

.glass-card__social--active {
  background: var(--color-primary);
  color: #fff;
}

.glass-card__social--active:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* ---- Hero Right: Content ---- */
.hero__right {
  max-width: 600px;
}

.hero__wave {
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero__wave svg {
  width: 44px;
  height: 22px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero__title-highlight {
  position: relative;
  display: inline-block;
}

.hero__title-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

/* ---- Features ---- */
.hero__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  margin-top: 2px;
}

.hero__feature-title {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--color-text);
}

.hero__feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 70%;
}

/* ============================================
   Cookie Bar
   ============================================ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-bar.visible {
  transform: translateY(0);
}

.cookie-bar.hidden {
  transform: translateY(100%);
}

.cookie-bar__text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.cookie-bar__actions {
  flex-shrink: 0;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Responsive: Tablet (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .hero__left {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero__image-wrapper {
    max-width: 400px;
  }

  .hero__glass-card {
    right: -20px;
    width: 250px;
  }

  .hero__right {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__features {
    text-align: left;
    max-width: 500px;
  }

  .hero__feature-text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 500px;
  }
}

/* ============================================
   Responsive: Mobile (max 768px)
   ============================================ */
@media (max-width: 768px) {
  .nav__menu,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Mobile menu overlay */
  .nav__menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 999;
  }

  .nav__menu.active .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .hero {
    min-height: auto;
    padding-top: calc(72px + var(--space-lg));
    padding-bottom: var(--space-xl);
  }

  .hero__image-wrapper {
    max-width: 320px;
  }

  .hero__image-frame {
    top: 14px;
    left: -14px;
  }

  .hero__glass-card {
    right: -10px;
    bottom: 20px;
    width: 220px;
    padding: var(--space-sm);
  }

  .glass-card__title {
    font-size: 0.95rem;
  }

  .glass-card__row {
    padding: 0.4rem 0.5rem;
  }

  .glass-card__icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .glass-card__info strong {
    font-size: 0.8rem;
  }

  .glass-card__info span {
    font-size: 0.7rem;
  }

  .glass-card__badge {
    font-size: 0.6rem;
  }

  .glass-card__social {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .cookie-bar {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-md);
  }
}

/* ============================================
   Responsive: Small Mobile (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero__image-wrapper {
    max-width: 280px;
  }

  .hero__glass-card {
    position: relative;
    right: 0;
    bottom: -10px;
    width: 100%;
    margin-top: -40px;
  }
}

/* ============================================
   Responsive: 4K (min 2560px)
   ============================================ */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px;
  }

  .nav {
    height: 90px;
  }

  .nav__logo img {
    height: 44px;
  }

  .nav__link {
    font-size: 1.15rem;
  }

  .hero__title {
    font-size: clamp(3.5rem, 4vw, 5rem);
  }

  .hero__subtitle {
    font-size: 1.3rem;
  }

  .hero__feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.3rem;
  }

  .hero__feature-text {
    font-size: 1.1rem;
  }

  .hero__glass-card {
    width: 340px;
    padding: var(--space-lg);
  }
}
