/* ==========================================================================
   ZELLINY COMING SOON - CORE DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
  --bg-color: #101010;
  --bg-glow: radial-gradient(circle at 50% 30%, #1a1a1a 0%, #101010 70%);
  --accent-color: #c5b083;
  --accent-rgb: 197, 176, 131;
  --text-primary: #ffffff;
  --text-secondary: #9a9a9a;

  /* Fonts */
  --font-title-wrapper: 'Tenor Sans', sans-serif;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-ar: 'Tajawal', sans-serif;

  /* Layout & Spacing */
  --container-max-width: 1300px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base Settings & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial;
  /* Controlled by Lenis */
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* RTL Override */
body[dir="rtl"] {
  font-family: var(--font-ar);
}

/* Typography Helpers */
h1.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Container Wrapper --- */
.hero-container {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

/* ==========================================================================
   SECTION: HEADER & LANGUAGE SWITCHER
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 100;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
@media only screen and (min-width: 768px){
  .lang-switcher {
    gap: 0.75rem;
  }
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-ar);
  font-size: 1rem;
  /* 20px */
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  /* Touch target size */
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}
@media only screen and (min-width: 768px){
  .lang-btn {
    font-size: 1.25rem;
  }
}

.lang-btn#lang-btn-ar {
  padding-top: 0;
}

.lang-btn.active {
  color: var(--text-primary);
  font-weight: 500;
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
  opacity: 0.8;
}

.lang-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.slash-icon {
  display: block;
}

/* ==========================================================================
   SECTION: HERO CONTENT
   ========================================================================== */

/* Brand Identity */
.logo-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(7.5rem, 6vh, 8rem);
}

.logo-mark-wrapper {
  margin-bottom: 2rem;
  will-change: transform, opacity;
}

.logo-mark {
  display: block;
  height: auto;
  max-width: 100%;
}

.logo-wordmark-wrapper {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.logo-wordmark {
  display: block;
  height: auto;
  max-width: 100%;
}

.logo-glow-wrapper {
  position: absolute;
  bottom: -8.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  width: 120%;
  max-width: 384px;
  opacity: 0.85;
}

.logo-glow {
  display: block;
  width: 100%;
  height: auto;
}

/* Heading & Paragraph Texts */
.content-group {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  /* max-width: 800px; */
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  /* 32px to 60px */
  font-weight: 400;
  line-height: 1.15;
  max-width: 500px;
  margin: auto;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
  will-change: transform, opacity;
}

.hero-title .text-accent {
  color: var(--accent-color);
  font-weight: 400;
}

.hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  /* 16px to 24px */
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 1050px;
  margin: 0 auto;
  letter-spacing: -0.01em;
  will-change: transform, opacity;
}

body[dir="rtl"] .hero-desc {
  max-width: 565px;
}

/* ==========================================================================
   SECTION: NEWSLETTER FORM
   ========================================================================== */
.form-group {
  width: 100%;
  max-width: 615px;
  margin-top: 1rem;
}

.subscribe-form {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  gap: 1.5rem;
  will-change: transform, opacity;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.email-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  /* 18px to 24px */
  font-weight: 300;
  padding: 0.5rem 0;
  height: 44px;
}

.email-input:-internal-autofill-selected,
.email-input:-webkit-autofill {
  box-shadow: 0 0 0 30px var(--bg-color) inset !important;
  -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-color: transparent !important;
}

/* Focus underline animation */
.focus-line {
  position: absolute;
  bottom: -0.75rem;
  /* Sits exactly on the form border */
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.email-input:focus~.focus-line {
  width: 100%;
}

.email-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.email-input:focus::placeholder {
  opacity: 0.3;
}

.submit-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.56rem);
  /* 18px to 25px */
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.submit-btn::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  color: var(--accent-color);
}

.submit-btn:hover::after {
  width: 100%;
}

/* Feedback Message */
.form-feedback {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 400;
  min-height: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.form-feedback.success {
  color: var(--accent-color);
  opacity: 1;
  transform: translateY(0);
}

.form-feedback.error {
  color: #ff6b6b;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RTL CUSTOMIZATIONS (Arabic Mode)
   ========================================================================== */
body[dir="rtl"] .email-input {
  font-family: var(--font-ar);
}

body[dir="rtl"] .submit-btn {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

/* ==========================================================================
   MEDIA QUERIES (Mobile responsiveness)
   ========================================================================== */

/* Mobile Phones (up to 767px) */
@media (max-width: 767px) {
  .site-header {
    padding: 1.5rem;
  }

  .hero-container {
    padding: 6rem 1.25rem 2rem 1.25rem;
  }

  .logo-group {
    margin-bottom: 3.5rem;
  }

  .logo-mark-wrapper {
    width: 60px;
    margin-bottom: 1.25rem;
  }

  .logo-wordmark-wrapper {
    width: 240px;
  }

  .logo-glow-wrapper {
    bottom: -5.5rem;
    max-width: 260px;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
    padding-bottom: 0;
    gap: 1.25rem;
  }

  .input-wrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.25rem;
  }

  .email-input {
    text-align: center;
  }

  .focus-line {
    bottom: -1px;
  }

  .submit-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
  }

  .submit-btn::after {
    display: none;
  }

  .submit-btn:hover {
    background: rgba(197, 176, 131, 0.1);
    border-color: var(--accent-color);
  }
}

/* Tablets & Desktop Small Adjustments (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header {
    padding: 2rem;
  }

  .hero-container {
    padding: 5rem 2rem;
  }
}

/* High Resolution Screens adjustments */
@media (min-width: 1440px) {
  .hero-container {
    max-width: 1400px;
  }
}

/* Accessibility: Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: -1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .focus-line {
    transition: none !important;
  }
}