/* ==========================================================================
   Soleve® Coming Soon — Modern Aesthetic Styling
   Exact match for high-converting futuristic landing page
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(135deg, #5b737b 0%, #76929e 42%, #95b2be 100%);
  
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-subtle: rgba(255, 255, 255, 0.65);
  
  --pill-bg: rgba(255, 255, 255, 0.16);
  --pill-border: rgba(255, 255, 255, 0.28);
  --btn-black: #050608;
  --btn-black-hover: #16181d;
  
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ==========================================================================
   Floating Presentation Mode Switcher (Bottom Center)
   ========================================================================== */

.view-controls {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
}

.toggle-pill {
  display: flex;
  align-items: center;
  background: rgba(15, 20, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  gap: 3px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-btn svg {
  stroke: currentColor;
  opacity: 0.8;
}

.toggle-btn:hover {
  color: #ffffff;
}

.toggle-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Presentation Stage & Views
   ========================================================================== */

.presentation-stage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: padding var(--transition-smooth);
}

.safari-frame {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Mode 1: Framed Safari Mockup Mode */
body.mode-mockup .presentation-stage {
  padding: 36px 30px 72px;
  background: 
    radial-gradient(circle at 12% 18%, #dbbfc6 0%, transparent 40%),
    radial-gradient(circle at 88% 82%, #b5c7d2 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #c4b5c2 0%, transparent 55%),
    #afbfc8;
}

body.mode-mockup .safari-frame {
  width: 100%;
  max-width: 1240px;
  height: 820px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 
    0 40px 90px -18px rgba(18, 28, 40, 0.38),
    0 12px 30px -6px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  animation: frameAppear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes frameAppear {
  from {
    opacity: 0;
    transform: scale(0.975) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mode 2: Fullscreen Direct Web Mode */
body.mode-fullscreen .presentation-stage {
  padding: 0;
  background: transparent;
  overflow: hidden;
}

body.mode-fullscreen .safari-frame {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

body.mode-fullscreen .website-viewport {
  width: 100vw;
  height: 100vh;
  flex: 1;
}

body.mode-fullscreen .safari-header {
  display: none;
}

/* ==========================================================================
   Safari Browser Header Chrome
   ========================================================================== */

.safari-header {
  height: 44px;
  background: #fdfdfd;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  gap: 16px;
}

/* Traffic lights */
.safari-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7.5px;
  min-width: 60px;
}

.safari-traffic-lights .light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.light.red { background: #ff5f56; border: 1px solid #e0443e; }
.light.yellow { background: #ffbd2e; border: 1px solid #dea123; }
.light.green { background: #27c93f; border: 1px solid #1aab29; }

/* Navigation buttons */
.safari-nav-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.safari-icon-btn {
  background: transparent;
  border: none;
  color: #6e6e73;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.safari-icon-btn:hover:not(.disabled) {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

.safari-icon-btn.disabled {
  opacity: 0.35;
  cursor: default;
}

/* Centered Address bar */
.safari-address-bar {
  max-width: 440px;
  flex: 1;
  height: 28px;
  background: #f0f1f3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #555;
  font-size: 12px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.safari-address-bar .privacy-icon {
  color: #666;
}

.safari-address-bar .url-text {
  font-weight: 500;
  color: #2c2c2e;
  letter-spacing: -0.01em;
}

.safari-address-bar .refresh-icon {
  background: transparent;
  border: none;
  color: #777;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
}

.safari-address-bar .refresh-icon:hover {
  color: #111;
}

/* Right safari action icons */
.safari-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 120px;
}

/* ==========================================================================
   The Main Website Viewport
   ========================================================================== */

.website-viewport {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-gradient);
  overflow: hidden;
  padding: 42px 56px 40px;
  user-select: none;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 25;
}

.brand-logo {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.035em;
  display: flex;
  align-items: baseline;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.9;
}

.registered-mark {
  font-size: 12px;
  font-weight: 600;
  position: relative;
  top: -0.6em;
  margin-left: 2px;
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.year-label {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}

.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 22px;
  padding: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.menu-toggle .bar-1 { width: 32px; }
.menu-toggle .bar-2 { width: 32px; }

.menu-toggle:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Hero Stage (Central Character & Large Typography)
   ========================================================================== */

.hero-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* Massive Layered "Coming Soon" Typography */
.typography-layer {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 12;
  pointer-events: none;
}

.coming-soon-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 0 4.5vw;
  font-size: clamp(4.4rem, 10vw, 10.8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.word-coming {
  display: inline-block;
  margin-right: auto;
}

.word-soon {
  display: inline-block;
  margin-left: auto;
}

/* Central character wrapper anchored to bottom of viewport */
.character-wrapper {
  position: absolute;
  bottom: 0;
  left: 49%;
  transform: translateX(-50%);
  width: auto;
  height: 94%;
  max-height: 860px;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-character-img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.12));
}

/* Visor light breathing / glow overlay */
.visor-light-pulse {
  position: absolute;
  top: 24%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(255, 140, 160, 0.45) 0%, rgba(255, 180, 120, 0.22) 40%, transparent 70%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 12;
  animation: visorPulse 4.5s ease-in-out infinite alternate;
}

@keyframes visorPulse {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

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

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 25;
  gap: 30px;
}

/* Bottom Left: Location */
.footer-left {
  display: flex;
  align-items: center;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: opacity var(--transition-fast);
}

.location-badge:hover {
  opacity: 0.8;
}

.globe-icon {
  opacity: 0.92;
  flex-shrink: 0;
}

/* Bottom Right: Description & Newsletter Form */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 440px;
}

.description-copy {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 20px;
  text-align: left;
  letter-spacing: -0.01em;
}

/* Newsletter capsule */
.newsletter-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.input-pill {
  display: flex;
  align-items: center;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  padding: 4px 4px 4px 18px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.input-pill:focus-within {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.input-pill input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 400;
  padding-right: 10px;
  min-width: 0;
}

.input-pill input::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.submit-button {
  background: var(--btn-black);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.submit-button:hover {
  background: var(--btn-black-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

/* Spinner state for submit */
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

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

.newsletter-form.loading .btn-spinner {
  display: inline-block;
}

.newsletter-form.loading .submit-button {
  opacity: 0.8;
  cursor: wait;
}

/* Form feedback message */
.form-status {
  font-size: 12.5px;
  margin-top: 8px;
  padding: 0 6px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  text-align: right;
  width: 100%;
}

.form-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  color: #d1fae5;
  font-weight: 500;
}

.form-status.error {
  color: #fed7aa;
  font-weight: 500;
}

/* Subtle atmosphere overlay */
.atmosphere-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  z-index: 1;
}

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

@media (max-width: 1024px) {
  .website-viewport {
    padding: 32px 36px 34px;
  }

  .character-wrapper {
    height: 102%;
  }

  .coming-soon-heading {
    padding: 0 2vw;
    font-size: clamp(3.4rem, 8.4vw, 7.8rem);
  }

  .footer-right {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  body.mode-mockup .presentation-stage {
    padding: 12px 12px 64px;
  }

  body.mode-mockup .safari-frame {
    height: auto;
    min-height: 640px;
    max-height: none;
  }

  .safari-header {
    padding: 0 12px;
  }

  .safari-nav-icons, .safari-actions {
    display: none;
  }

  .website-viewport {
    padding: 24px 20px 28px;
    min-height: 600px;
  }

  .character-wrapper {
    height: 85%;
    bottom: -24px;
  }

  .coming-soon-heading {
    flex-direction: column;
    gap: 8px;
    padding: 0;
    text-align: center;
    font-size: clamp(3.2rem, 14vw, 5.5rem);
    white-space: normal;
  }

  .word-coming, .word-soon {
    margin: 0 auto;
  }

  .site-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-right {
    align-items: flex-start;
    max-width: 100%;
  }

  .description-copy {
    text-align: left;
    margin-bottom: 16px;
    font-size: 13px;
  }

  .input-pill {
    max-width: 100%;
  }

  .form-status {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 24px;
  }

  .year-label {
    font-size: 12.5px;
  }

  .character-wrapper {
    height: 78%;
    bottom: -16px;
  }
}
