/* ========================================
   HK-Souq Coming Soon Landing Page
   Design system matched to storefront
   ======================================== */

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

:root {
  --navy: #0D1B2A;
  --navy-light: #1B263B;
  --navy-lighter: #2D3748;
  --gold: #C9A962;
  --gold-hover: #D4B872;
  --gold-dark: #B8860B;
  --cream: #F5F1E6;
  --cream-light: #F8F2E6;
  --text-muted: #8B9DB5;
  --success: #4ade80;
  --error: #f87171;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.6s; }
.stagger-5 { transition-delay: 0.75s; }

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Radial gradient glows — matched to storefront hero */
.hero__gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: glow 8s ease-in-out infinite;
}

.hero__gradient--1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero__gradient--2 {
  bottom: -15%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
  animation-delay: 3s;
}

.hero__gradient--3 {
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
  transform: translateX(-50%);
  animation-delay: 5s;
}

/* Diamond pattern overlay — from storefront SVG */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40z' fill='%23C9A962' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.02;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero__logo {
  margin-bottom: 2.5rem;
}

.hero__logo img {
  height: 200px;
  width: auto;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Gold divider with diamond */
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__divider span {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.hero__scroll-indicator {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.hero__scroll-indicator.bounce {
  animation: bounce 0.6s ease;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

/* ========================================
   Value Proposition
   ======================================== */

.values {
  background-color: var(--navy-light);
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.values__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.values__item {
  flex: 1;
  text-align: center;
  padding: 1rem;
}

.values__icon {
  margin-bottom: 1rem;
}

.values__item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.values__item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.values__divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  align-self: center;
  flex-shrink: 0;
}

/* ========================================
   Email Signup
   ======================================== */

.signup {
  background-color: var(--navy);
  padding: 6rem 1.5rem;
}

.signup__container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 3rem 2rem;
}

/* Decorative corner borders — matches storefront newsletter */
.signup__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signup__corner {
  position: absolute;
  width: 40px;
  height: 40px;
}

.signup__corner--tl {
  top: 0;
  left: 0;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.signup__corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.signup__content {
  text-align: center;
}

.signup__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.signup__subheading {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.signup__form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.signup__form.hidden {
  display: none;
}

.signup__input-wrap {
  flex: 1;
  position: relative;
}

.signup__input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 2.75rem 0 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-lighter);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.signup__input-wrap input::placeholder {
  color: var(--text-muted);
}

.signup__input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.signup__mail-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.signup__input-wrap input:focus ~ .signup__mail-icon {
  color: var(--gold);
}

.signup__btn {
  height: 52px;
  padding: 0 1.75rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.signup__btn:hover {
  background: var(--gold-hover);
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
}

.signup__btn:active {
  transform: scale(0.97);
}

.signup__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup__btn-spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.signup__btn.loading .signup__btn-text {
  display: none;
}

.signup__btn.loading .signup__btn-spinner {
  display: block;
}

/* Success state */
.signup__success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.signup__success.visible {
  display: flex;
}

.signup__success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signup__success p {
  font-size: 0.95rem;
  color: var(--cream);
}

/* Error message */
.signup__error {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
}

.signup__error.visible {
  display: block;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  padding: 3rem 1.5rem 2rem;
}

.footer__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--navy-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.footer__social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.15);
}

.footer__email {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer__email:hover {
  color: var(--gold-hover);
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
  .values__inner {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .values__divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .signup__form {
    flex-direction: column;
  }

  .signup__btn {
    width: 100%;
  }

  .hero__logo img {
    height: 140px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero__logo img {
    height: 170px;
  }
}
