/* ============================================
   NEXMED LANDING PAGE — DESIGN SYSTEM
   Mobile-First | High-Conversion | TikTok Traffic
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Dark Tech Palette v2 */
  --color-primary:       #00E4B1; /* Teal */
  --color-primary-dark:  #00b38a;
  --color-primary-light: rgba(0, 228, 177, 0.15);
  
  --color-cta-start:     #00D4BD;
  --color-cta-end:       #6467F1;
  
  --color-bg:            #010B1D;
  --color-bg-alt:        #02122b;
  --color-text:          #FFFFFF;
  --color-text-sub:      #E2E8F0;
  --color-text-light:    #94A3B8;
  --color-border:        hsla(270, 20%, 40%, 0.25);
  --color-white:         #FFFFFF;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-hero:     clamp(1.75rem, 6vw, 3rem);
  --fs-subhero:  clamp(0.95rem, 2.5vw, 1.2rem);
  --fs-section:  clamp(1.4rem, 4vw, 2rem);
  --fs-body:     clamp(0.9rem, 2.2vw, 1rem);
  --fs-small:    clamp(0.75rem, 1.8vw, 0.85rem);
  --fs-cta:      clamp(0.95rem, 2.5vw, 1.1rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm:  0 1px 3px hsla(220, 20%, 18%, 0.06);
  --shadow-md:  0 4px 12px hsla(220, 20%, 18%, 0.08);
  --shadow-lg:  0 8px 30px hsla(220, 20%, 18%, 0.12);
  --shadow-cta: 0 4px 20px var(--color-cta-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

/* --- Reset & Base --- */
*,
*::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: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0 0;
  background: 
    url('background.png') center top / cover no-repeat,
    var(--color-bg);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero .container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Subtle glow behind text */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 228, 177, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__text {
  position: relative;
  z-index: 1;
  text-align: left;
  margin-top: auto;
  margin-bottom: 32px;
}

/* Logo / Brand */
.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.hero__logo {
  width: 48px;
  height: 48px;
}

.hero__brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00E4B1; /* Teal logotype */
  letter-spacing: -0.02em;
}

/* Headline */
.hero__headline {
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.hero__subheadline {
  font-size: clamp(1.2rem, 5vw, 1.4rem);
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.hero__subheadline strong {
  color: var(--color-white);
  font-weight: 700;
}

/* --- CTA Button --- */
.cta-btn {
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-white);
  font-size: clamp(1.1rem, 5vw, 1.3rem);
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
  width: 100%;
  max-width: 340px;
  position: relative;
  overflow: hidden;
}

.cta-btn--gradient {
  background: linear-gradient(135deg, var(--color-cta-start) 0%, var(--color-cta-end) 100%);
  box-shadow: 0 8px 24px rgba(100, 103, 241, 0.25);
}

.cta-btn .fw-normal {
  font-weight: 400;
}

.cta-btn strong {
  font-weight: 700;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    hsla(0, 0%, 100%, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-btn:hover {
  box-shadow: 0 12px 32px rgba(100, 103, 241, 0.4);
  transform: translateY(-2px);
}

.cta-btn:hover::before {
  transform: translateX(100%);
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Mockup */
.hero__mockup-wrapper {
  margin-top: auto;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero__mockup {
  width: 100%;
  max-width: 600px;
  object-fit: contain;
  transform: translateY(10px);
}
/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero::before {
    animation: none;
  }

  .cta-btn::before {
    display: none;
  }
}
