/* ==========================================================================
   SGRO HOMES — Premium Coming Soon Landing Page Stylesheet
   Design Language: Minimalist Modern Home Appliance Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CONSTANTS
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #07080b;
  --color-bg-alt: #0c0e14;
  --color-surface: rgba(18, 22, 31, 0.65);
  
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-accent-cyan: #38bdf8;
  --color-accent-blue: #0284c7;
  --color-accent-indigo: #6366f1;

  --metal-gradient-light: linear-gradient(135deg, #ffffff 0%, #cbd5e1 35%, #94a3b8 70%, #e2e8f0 100%);
  --metal-gradient-headline: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #38bdf8 65%, #93c5fd 85%, #ffffff 100%);
  --blue-glow-radial: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 75%);
  
  --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3. VIEWPORT & CONTAINER LAYOUT
   -------------------------------------------------------------------------- */
.app-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
}

/* Ambient Radial Glow Orbs */
.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  animation: floatAmbient 16s ease-in-out infinite alternate;
}

.glow-sphere-1 {
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 65vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.glow-sphere-2 {
  bottom: -20%;
  left: 20%;
  width: 45vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(7, 8, 11, 0) 70%);
  animation-delay: -5s;
}

.glow-sphere-3 {
  top: 30%;
  right: -10%;
  width: 40vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(7, 8, 11, 0) 70%);
  animation-delay: -10s;
}

/* --------------------------------------------------------------------------
   4. ABSTRACT APPLIANCE COMPOSITION BACKGROUND
   Inspired by: Refrigerator sleek contours, Washer drum aperture, AC airflow
   -------------------------------------------------------------------------- */
.abstract-appliance-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.25s var(--ease-out-expo);
  will-change: transform;
}

.appliance-composition {
  position: relative;
  width: 650px;
  height: 650px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  animation: revealComposition 1.8s var(--ease-out-expo) 0.3s forwards;
}

.appliance-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Refrigerator: Vertical Brushed Titanium Panels */
.layer-fridge {
  width: 480px;
  height: 580px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(7, 8, 11, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  overflow: hidden;
}

.fridge-panel {
  flex: 1;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.fridge-seam {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(56, 189, 248, 0.4) 50%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.handle-accent {
  position: absolute;
  right: 18px;
  top: 25%;
  height: 50%;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(56, 189, 248, 0.8) 50%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Washing Machine: Concentric Drum Aperture */
.layer-washer {
  width: 420px;
  height: 420px;
}

.washer-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.15));
}

.orbit-arc {
  transform-origin: 250px 250px;
  animation: rotateOrbit 24s linear infinite;
}

/* AC Airflow Dynamics: Soft Arcs & Stream Waves */
.layer-ac-flow {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.airflow-stream {
  position: absolute;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 50%, transparent 100%);
  filter: blur(1px);
  opacity: 0.5;
  animation: streamFlow 7s ease-in-out infinite;
}

.stream-1 { top: 22%; transform: rotate(-8deg); animation-delay: 0s; }
.stream-2 { top: 48%; transform: rotate(-4deg); animation-delay: 2.5s; opacity: 0.7; }
.stream-3 { top: 75%; transform: rotate(-12deg); animation-delay: 4.8s; }

/* Smart Display & Micro-LED Indicators */
.layer-display-led {
  width: 100%;
  height: 100%;
  position: relative;
}

.led-ring {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.led-ring::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 35px;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 10px var(--color-accent-cyan);
  animation: ledScan 3.5s ease-in-out infinite alternate;
}

.led-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-active {
  top: 32px;
  right: 48px;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 10px var(--color-accent-cyan), 0 0 20px var(--color-accent-cyan);
  animation: pulseDot 2.5s ease-in-out infinite;
}

.dot-sec-1 {
  top: 32px;
  right: 64px;
  background: rgba(255, 255, 255, 0.25);
}

.dot-sec-2 {
  top: 32px;
  right: 76px;
  background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   5. MAIN HERO CONTENT & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.hero-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Brand Header Logo */
.brand-header {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(-20px);
  animation: revealHeader 1.2s var(--ease-out-expo) 0.5s forwards;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 25px rgba(56, 189, 248, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.brand-sgro {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-accent-cyan);
  box-shadow: 0 0 8px var(--color-accent-cyan);
}

.brand-homes {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Badge Accent */
.headline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: revealFadeUp 1.2s var(--ease-out-expo) 0.7s forwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-cyan);
  box-shadow: 0 0 10px var(--color-accent-cyan);
  animation: pulseDot 2s ease-in-out infinite;
}

.badge-text {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
}

/* Main Headline: COMING SOON */
.headline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.coming-soon-title {
  position: relative;
  font-family: var(--font-brand);
  font-size: clamp(3.75rem, 11vw, 9.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  animation: revealTitle 1.4s var(--ease-out-expo) 0.9s forwards;
}

.title-gradient {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 25%, #38bdf8 65%, #bae6fd 85%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: textShine 10s linear infinite;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

/* Ambient glow text layer behind COMING SOON */
.title-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.35);
  filter: blur(14px);
  opacity: 0.7;
  transform: scale(1.02);
  pointer-events: none;
  animation: pulseTitleGlow 4s ease-in-out infinite alternate;
}

/* Subtitle Tagline */
.tagline {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: revealFadeUp 1.2s var(--ease-out-expo) 1.2s forwards;
}

/* Subtle Decorative Accent Bar */
.accent-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 3.5rem;
  opacity: 0;
  animation: revealFadeUp 1.2s var(--ease-out-expo) 1.4s forwards;
}

.accent-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.accent-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.2);
}

/* --------------------------------------------------------------------------
   6. ANIMATION KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes floatAmbient {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-45%, 5%) scale(1.08); }
  100% { transform: translate(-52%, -4%) scale(0.95); }
}

@keyframes revealComposition {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealHeader {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealTitle {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes revealFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseTitleGlow {
  0% {
    opacity: 0.4;
    filter: blur(10px);
  }
  100% {
    opacity: 0.8;
    filter: blur(18px);
  }
}

@keyframes rotateOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes streamFlow {
  0% {
    transform: translateX(-30%) rotate(-8deg);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(30%) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes ledScan {
  0% { left: 0; }
  100% { left: 85px; }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .appliance-composition {
    width: 520px;
    height: 520px;
  }

  .layer-fridge {
    width: 390px;
    height: 480px;
  }

  .layer-washer {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 768px) {
  .brand-header {
    margin-bottom: 2rem;
  }

  .brand-logo {
    padding: 0.5rem 1.2rem;
    gap: 0.65rem;
  }

  .brand-sgro {
    font-size: 1.15rem;
    letter-spacing: 0.22em;
  }

  .brand-homes {
    font-size: 1.05rem;
    letter-spacing: 0.28em;
  }

  .headline-badge {
    margin-bottom: 1.2rem;
  }

  .coming-soon-title {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
  }

  .appliance-composition {
    width: 380px;
    height: 380px;
  }

  .layer-fridge {
    width: 300px;
    height: 380px;
    border-radius: 18px;
  }

  .layer-washer {
    width: 270px;
    height: 270px;
  }

  .accent-bar-wrap {
    margin-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-main {
    padding: 1.5rem 1rem;
  }

  .brand-logo {
    padding: 0.45rem 1rem;
  }

  .brand-sgro {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .brand-homes {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
  }

  .badge-text {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .coming-soon-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1.25rem;
  }

  .tagline {
    font-size: 1.05rem;
    line-height: 1.45;
    padding: 0 0.5rem;
  }

  .appliance-composition {
    width: 300px;
    height: 300px;
  }

  .layer-fridge {
    width: 250px;
    height: 320px;
  }

  .layer-washer {
    width: 220px;
    height: 220px;
  }
}

/* --------------------------------------------------------------------------
   8. ACCESSIBILITY & REDUCED MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .glow-sphere,
  .orbit-arc,
  .airflow-stream,
  .led-ring::after,
  .dot-active,
  .title-gradient,
  .title-backdrop,
  .appliance-composition,
  .brand-header,
  .coming-soon-title,
  .tagline,
  .headline-badge,
  .accent-bar-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
