/* ==========================================================================
   Lupa landing page styles — ported from Jon's coming-soon design.
   Palette + reset + the coming-soon component styles. Dark glassmorphism.
   ========================================================================== */

:root {
  --bg-dark: #09090b;
  --panel-dark: #18181b;
  --text-primary: #ffffff;
  --text-muted: #a1a1aa;

  --silver-gradient: linear-gradient(160deg, #27272a 0%, #18181b 100%);
  --silver-highlight: rgba(255, 255, 255, 0.06);

  /* Gold accent */
  --gold-mid: #eab308;
  --gold-light: #fef08a;
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-mid) 100%);

  /* Theme primary (Tech blue-slate) */
  --theme-primary: #395065;
  --theme-primary-light: #4c667e;

  /* Background gradients */
  --bg-gradient-center: var(--theme-primary);
  --bg-gradient-edge: #09090b;

  --flat-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --crisp-border: 1px solid rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }  /* the hidden attribute must win over component display rules */

/* ----- Coming-soon / landing layout ----- */
body.coming-soon-body {
  padding: 40px 20px;
  background-color: var(--bg-gradient-edge);
  background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient-center), var(--bg-gradient-edge) 80%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.coming-soon-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.glass-plate {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.coming-soon-logo { width: 240px; height: auto; margin-bottom: 15px; }
.coming-soon-logo img {
  width: 100%; height: auto; object-fit: contain;
  mix-blend-mode: screen; opacity: 0.65;
}

.coming-soon-title {
  font-size: 4.5rem; line-height: 1.1; margin-bottom: 10px;
  font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.coming-soon-title .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coming-soon-subtitle {
  font-size: 1.35rem; color: var(--text-muted); margin-bottom: 20px;
  line-height: 1.6; max-width: 800px; font-weight: 400;
}
.coming-soon-subtitle span.accent { color: var(--text-primary); font-weight: 600; }

.action-buttons {
  display: flex; gap: 20px; margin-top: 10px; margin-bottom: 30px;
  width: 100%; justify-content: center;
}

.btn-large {
  padding: 18px 36px; font-size: 1.15rem; border-radius: 12px;
  font-weight: 800; display: flex; align-items: center; gap: 12px;
  transition: all 0.3s ease; text-decoration: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; border: none;
}

.btn-primary {
  background: var(--gold-mid); color: #000;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3); border: none;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.4); background: var(--gold-light);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05); color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  transform: translateY(-4px); background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%; margin-bottom: 30px;
}
.gallery-item {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.gallery-item.placeholder-1 { background: linear-gradient(135deg, #395065, #1e293b); }
.gallery-item.placeholder-2 { background: linear-gradient(135deg, #4c667e, #334155); }
.gallery-item.placeholder-3 { background: linear-gradient(135deg, #eab308, #b45309); }

.features-callouts {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr;
  gap: 20px; width: 100%; margin-bottom: 40px;
}
.callout-card {
  background: rgba(24, 24, 27, 0.6); border-radius: 16px; padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; transition: all 0.3s ease; position: relative; overflow: hidden; cursor: default;
}
.callout-card:hover {
  transform: translateY(-5px); border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.15);
}
.callout-card::before {
  content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg); transition: left 0s;
}
.callout-card:hover::before { left: 200%; transition: left 0.7s ease-in-out; }
.callout-card i {
  font-size: 2rem; color: var(--gold-mid); text-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
  margin-bottom: 8px; transition: transform 0.3s ease;
}
.callout-card:hover i { transform: scale(1.1); }
.callout-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text-primary); }

.why-switch-section {
  width: 100%; margin-top: 20px; padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.why-switch-section[id] { scroll-margin-top: 30px; }
.why-switch-title {
  font-size: 3.5rem; font-weight: 900; margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -1.5px;
}
.why-switch-subtitle { font-size: 1.35rem; color: var(--text-muted); max-width: 800px; line-height: 1.6; }
.why-switch-subtitle span.accent { color: var(--text-primary); font-weight: 600; }

.content-boxes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
  width: 100%; margin-top: 40px; text-align: left;
}
.content-box {
  background: rgba(24, 24, 27, 0.4); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 30px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.content-box:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.content-box h3 { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); margin-top: 0; margin-bottom: 12px; }
.content-box p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.content-box-image {
  width: 100%; height: 250px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center; margin-top: auto;
}

.full-width-placeholder {
  width: 100%; height: 400px; margin-top: 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-radius: 20px; border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); backdrop-filter: blur(10px);
}

.image-caption-section { margin-top: 40px; text-align: center; }
.image-caption-section h3 { font-size: 2.2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; margin-top: 0; letter-spacing: -0.5px; }
.image-caption-section p { font-size: 1.25rem; color: var(--text-muted); line-height: 1.6; max-width: 800px; margin: 0 auto; }

.stats-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin-top: 50px; }
.stat-card {
  background: rgba(24, 24, 27, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 30px 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--gold-mid); box-shadow: 0 15px 40px rgba(234, 179, 8, 0.15); }
.stat-card i { font-size: 2.5rem; color: var(--gold-mid); margin-bottom: 15px; text-shadow: 0 0 20px rgba(234, 179, 8, 0.4); }
.icon-stack-custom { position: relative; display: inline-block; width: 3rem; height: 3.5rem; margin-bottom: 15px; }
.icon-stack-custom .fa-users { position: absolute; font-size: 2.5rem; color: var(--gold-mid); left: 50%; bottom: 0; transform: translateX(-50%); margin-bottom: 0; text-shadow: 0 0 20px rgba(234, 179, 8, 0.4); }
.icon-stack-custom .fa-infinity { position: absolute; font-size: 1.2rem; color: var(--gold-mid); left: 50%; top: -2px; transform: translateX(-50%); text-shadow: 0 0 15px rgba(234, 179, 8, 0.4); margin-bottom: 0; }
.stat-card h4 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.4; }

.email-signup-form { display: flex; gap: 15px; align-items: center; justify-content: center; margin-bottom: 0; width: 100%; max-width: 600px; }
.email-input {
  flex: 1; padding: 18px 24px; font-size: 1.15rem; font-family: 'Outfit', sans-serif;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px; color: var(--text-primary); outline: none;
  transition: all 0.3s ease; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.email-input:focus { border-color: var(--gold-mid); box-shadow: 0 0 15px rgba(234, 179, 8, 0.2), inset 0 2px 10px rgba(0,0,0,0.5); background: rgba(0, 0, 0, 0.6); }
.email-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.waitlist-success {
  margin-top: 28px; padding: 20px 28px; border-radius: 12px;
  background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.4);
  color: var(--text-primary); font-size: 1.15rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px;
}
.waitlist-success i { color: var(--gold-mid); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.fine-print { margin-top: 25px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); max-width: 600px; line-height: 1.5; text-align: center; }
.site-footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.3); width: 100%; }

.hero-graphic { width: 100%; margin-top: 20px; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.6); border: 1px solid rgba(255, 255, 255, 0.1); background: #18181b; }
.hero-graphic img { width: 100%; height: auto; display: block; }
.hero-graphic::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(9, 9, 11, 0.8) 100%); pointer-events: none; }

/* Fixed glow orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -2; opacity: 0.3; pointer-events: none; }
.orb-1 { background: var(--gold-mid); width: 500px; height: 500px; top: -100px; left: -100px; }
.orb-2 { background: var(--theme-primary); width: 600px; height: 600px; bottom: -100px; right: -100px; }

/* ==========================================================================
   Theme toggle + light theme (dark is the default; user opts into light)
   ========================================================================== */
.theme-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary); cursor: pointer; font-size: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.theme-toggle:hover {
  color: var(--gold-mid); border-color: rgba(234, 179, 8, 0.5);
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(234, 179, 8, 0.18);
}
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: inline; }

/* Smooth surface transitions when switching themes */
body.coming-soon-body, .glass-plate, .callout-card, .content-box, .stat-card,
.email-input, .cta-section, .btn-secondary, .coming-soon-logo img {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* ----- Light theme ----- */
[data-theme="light"] {
  --bg-gradient-center: rgba(57, 80, 101, 0.10);
  --bg-gradient-edge: #eef0f3;
  --text-primary: #18181b;
  --text-muted: #52525b;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.7); border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); color: var(--text-primary);
}
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: inline; }

[data-theme="light"] .coming-soon-logo img { mix-blend-mode: normal; opacity: 0.85; filter: invert(1); }

[data-theme="light"] .glass-plate {
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .coming-soon-title,
[data-theme="light"] .why-switch-title {
  background: linear-gradient(180deg, #18181b 0%, #52525b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
}

[data-theme="light"] .coming-soon-subtitle,
[data-theme="light"] .why-switch-subtitle,
[data-theme="light"] .content-box p,
[data-theme="light"] .image-caption-section p { color: var(--text-muted); }
[data-theme="light"] .coming-soon-subtitle span.accent,
[data-theme="light"] .why-switch-subtitle span.accent { color: var(--text-primary); }

[data-theme="light"] .callout-card,
[data-theme="light"] .content-box,
[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .callout-card h3,
[data-theme="light"] .content-box h3,
[data-theme="light"] .stat-card h4,
[data-theme="light"] .image-caption-section h3 { color: var(--text-primary); }
[data-theme="light"] .callout-card:hover { border-color: rgba(234, 179, 8, 0.6); box-shadow: 0 15px 40px rgba(234, 179, 8, 0.2); }
[data-theme="light"] .content-box:hover { border-color: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .stat-card:hover { border-color: var(--gold-mid); }
[data-theme="light"] .callout-card::before { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent); }

[data-theme="light"] .content-box-image,
[data-theme="light"] .full-width-placeholder {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
  border: 1px dashed rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .content-box-image i,
[data-theme="light"] .full-width-placeholder i { color: rgba(0, 0, 0, 0.25) !important; }

[data-theme="light"] .why-switch-section { border-top-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .site-footer { border-top-color: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .fine-print { color: rgba(0, 0, 0, 0.45); }

[data-theme="light"] .btn-secondary { background: rgba(0, 0, 0, 0.04); color: var(--text-primary); border: 1px solid rgba(0, 0, 0, 0.12); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0, 0, 0, 0.07); border-color: rgba(0, 0, 0, 0.2); }

[data-theme="light"] .email-input {
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-primary); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .email-input::placeholder { color: rgba(0, 0, 0, 0.35); }
[data-theme="light"] .email-input:focus { background: #fff; border-color: var(--gold-mid); box-shadow: 0 0 12px rgba(234, 179, 8, 0.2), inset 0 2px 6px rgba(0, 0, 0, 0.04); }

[data-theme="light"] .cta-section {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(234, 179, 8, 0.45) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .waitlist-success { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.5); color: var(--text-primary); }

[data-theme="light"] .orb { opacity: 0.16; }

/* ----- Responsive ----- */
@media (max-width: 900px) { .features-callouts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .features-callouts { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .stats-callouts { grid-template-columns: 1fr; }
  .full-width-placeholder { height: 250px; }
  .content-boxes-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-switch-title { font-size: 2.5rem; }
  .action-buttons { flex-direction: column; align-items: center; }
  .action-buttons .btn-large { width: 100%; max-width: 400px; justify-content: center; }
  .email-signup-form { flex-direction: column; }
  .email-input { width: 100%; box-sizing: border-box; text-align: center; }
  .email-signup-form .btn-large { width: 100%; justify-content: center; }
  .coming-soon-title { font-size: 3rem; }
  .coming-soon-subtitle { font-size: 1.1rem; }
  .coming-soon-container { padding: 40px 20px; }
}
