/* ==============================================
   LOREXIS STUDIOS — COMING SOON
   Premium landing page styles
   Two themes: dark (default) + light luxury variant
   ============================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- CSS CUSTOM PROPERTIES ---------- */

/* DARK THEME (default) */
[data-theme="dark"] {
  --color-bg: #0a0a0b;
  --color-bg-subtle: #111113;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-focus: rgba(255, 255, 255, 0.2);
  --color-text-primary: #f0ede8;
  --color-text-secondary: rgba(240, 237, 232, 0.55);
  --color-text-tertiary: rgba(240, 237, 232, 0.35);
  --color-accent: #c9a96e;
  --color-accent-glow: rgba(201, 169, 110, 0.15);
  --color-accent-hover: #d4b87e;
  --color-success: #7ec9a0;
  --color-input-bg: rgba(255, 255, 255, 0.03);
  --color-input-bg-focus: rgba(255, 255, 255, 0.06);
  --color-btn-bg: #f0ede8;
  --color-btn-text: #0a0a0b;
  --color-btn-hover: #ffffff;
  --orb-1: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
  --orb-2: radial-gradient(circle, rgba(120, 100, 160, 0.06) 0%, transparent 70%);
  --orb-3: radial-gradient(circle, rgba(100, 140, 160, 0.05) 0%, transparent 70%);
  --noise-opacity: 0.03;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --status-dot: #c9a96e;
  --status-glow: rgba(201, 169, 110, 0.4);
}

/* LIGHT THEME */
[data-theme="light"] {
  --color-bg: #f6f4f0;
  --color-bg-subtle: #edeae4;
  --color-surface: rgba(0, 0, 0, 0.03);
  --color-surface-hover: rgba(0, 0, 0, 0.05);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-focus: rgba(0, 0, 0, 0.2);
  --color-text-primary: #1a1a1e;
  --color-text-secondary: rgba(26, 26, 30, 0.55);
  --color-text-tertiary: rgba(26, 26, 30, 0.35);
  --color-accent: #8b6d3f;
  --color-accent-glow: rgba(139, 109, 63, 0.1);
  --color-accent-hover: #a07d4a;
  --color-success: #3d8b60;
  --color-input-bg: rgba(0, 0, 0, 0.03);
  --color-input-bg-focus: rgba(0, 0, 0, 0.05);
  --color-btn-bg: #1a1a1e;
  --color-btn-text: #f6f4f0;
  --color-btn-hover: #2c2c32;
  --orb-1: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  --orb-2: radial-gradient(circle, rgba(160, 130, 200, 0.07) 0%, transparent 70%);
  --orb-3: radial-gradient(circle, rgba(130, 170, 190, 0.06) 0%, transparent 70%);
  --noise-opacity: 0.02;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --status-dot: #8b6d3f;
  --status-glow: rgba(139, 109, 63, 0.4);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

/* ---------- AMBIENT BACKGROUND ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.ambient__orb--1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
  background: var(--orb-1);
  animation: float1 20s ease-in-out infinite;
}

.ambient__orb--2 {
  width: 500px;
  height: 500px;
  bottom: -15%;
  left: -10%;
  background: var(--orb-2);
  animation: float2 25s ease-in-out infinite;
}

.ambient__orb--3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 50%;
  background: var(--orb-3);
  animation: float3 22s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.92); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.1); }
}

/* ---------- NOISE TEXTURE OVERLAY ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- HEADER ---------- */
.header {
  position: relative;
  z-index: 10;
  padding: 2rem 2rem 0;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: opacity 0.3s ease;
}

.header__brand:hover {
  opacity: 0.8;
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__name {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-focus);
  background: var(--color-surface-hover);
}

/* Show/hide sun/moon icons based on theme */
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }

/* ---------- MAIN / HERO ---------- */
.main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

/* Status pill */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-dot);
  box-shadow: 0 0 8px var(--status-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--status-glow); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--status-glow); }
}

.hero__status-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Headline */
.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
}

.hero__title-line:nth-child(1) {
  animation-delay: 0.4s;
}

.hero__title-line:nth-child(2) {
  animation-delay: 0.6s;
}

.hero__title-line--italic {
  font-style: italic;
  color: var(--color-accent);
}

/* Subheading */
.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards 0.8s;
}

/* ---------- EMAIL FORM ---------- */
.hero__form {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards 1s;
}

.hero__form-group {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  padding: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__form-group:focus-within {
  border-color: var(--color-border-focus);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--color-border-focus);
}

.hero__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-primary);
  outline: none;
  min-width: 0;
}

.hero__input::placeholder {
  color: var(--color-text-tertiary);
}

.hero__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 100px;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero__submit:hover {
  background: var(--color-btn-hover);
  transform: scale(1.02);
}

.hero__submit:active {
  transform: scale(0.98);
}

.hero__submit-arrow {
  transition: transform 0.3s ease;
}

.hero__submit:hover .hero__submit-arrow {
  transform: translateX(3px);
}

.hero__form-hint {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}

.hero__form-success {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-success);
  letter-spacing: 0.02em;
  min-height: 1.2em;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 10;
  padding: 0 2rem 2.5rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}

.footer__social-link:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.04em;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .header {
    padding: 1.5rem 1.25rem 0;
  }

  .header__name {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .header__logo {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .main {
    padding: 3rem 1.25rem;
  }

  .hero__status {
    margin-bottom: 2rem;
  }

  .hero__subtitle {
    margin-bottom: 2rem;
  }

  .hero__form-group {
    flex-direction: column;
    border-radius: 16px;
    padding: 4px;
  }

  .hero__input {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .hero__submit {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
  }

  .footer {
    padding: 0 1.25rem 2rem;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ambient__orb {
    animation: none;
  }

  .hero__status-dot {
    animation: none;
  }
}

/* ---------- HIGH CONTRAST ---------- */
@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(255, 255, 255, 0.3);
    --color-text-secondary: rgba(240, 237, 232, 0.75);
    --color-text-tertiary: rgba(240, 237, 232, 0.6);
  }
}
