/* ==========================================================================
   ORGANIC VELVET & EMBER RED THEME - WISDUMM
   Natural, cinematic dark luxury aesthetic (Obsidian Charcoal + Garnet / Ember)
   ========================================================================== */

:root {
  /* Rich deep dark neutrals (Charcoal / Jet Black) */
  --bg-base: #09090b;
  --bg-surface: #111115;
  --bg-card: rgba(18, 18, 22, 0.72);
  --bg-card-hover: rgba(26, 26, 32, 0.85);

  /* Organic, elegant Ember & Garnet tones */
  --ember-light: #fca5a5;
  --ember-rose: #f87171;
  --ember-primary: #ef4444;
  --ember-rich: #dc2626;
  --ember-garnet: #b91c1c;
  --ember-bordeaux: #7f1d1d;
  --ember-deep: #450a0a;

  /* Subtle, natural lighting & borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-ember: rgba(239, 68, 68, 0.18);
  --border-ember-hover: rgba(239, 68, 68, 0.4);
  --glow-ambient: rgba(220, 38, 38, 0.12);

  /* Crisp, balanced typography */
  --text-primary: #f8fafc;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --mat-app-background-color: #09090b !important;
  --mat-app-text-color: #f8fafc !important;
}

/* Background canvas: natural ambient top-down lighting */
html,
body {
  background: #09090b !important;
  background-image:
    radial-gradient(
      ellipse 90% 55% at 50% -5%,
      rgba(185, 28, 28, 0.2) 0%,
      rgba(69, 10, 10, 0.06) 50%,
      transparent 85%
    ),
    radial-gradient(
      circle at 10% 40%,
      rgba(127, 29, 29, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(127, 29, 29, 0.05) 0%,
      transparent 40%
    ) !important;
  background-attachment: fixed !important;
  color: var(--text-primary) !important;
  font-family:
    "Inter",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Natural Selection */
::selection {
  background: rgba(220, 38, 38, 0.35) !important;
  color: #ffffff !important;
}

/* Smooth dark scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ember-garnet);
}

/* Base typography */
.mat-typography,
app-root,
app-overview-view {
  background: transparent !important;
  color: var(--text-primary) !important;
}

/* Remove old gradient background artifact */
.gradient-background,
.gradient-background[_ngcontent-ng-c878988517] {
  background: transparent !important;
  background-image: radial-gradient(
    ellipse 80% 50% at 50% 100%,
    rgba(185, 28, 28, 0.12) 0%,
    transparent 70%
  ) !important;
  background-color: transparent !important;
  min-height: 8rem !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header,
app-header header {
  background: rgba(9, 9, 11, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6) !important;
  padding: 14px 24px !important;
}

.logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  transition: opacity 0.25s ease !important;
}

.logo-wrap:hover {
  opacity: 0.95 !important;
}

.logo-wrap img.logo-icon {
  height: 48px !important;
  width: 48px !important;
  display: block !important;
  object-fit: contain !important;
  transition:
    transform 0.25s ease,
    filter 0.25s ease !important;
}

.logo-wrap:hover img.logo-icon {
  transform: scale(1.05) !important;
  filter: drop-shadow(0 2px 10px rgba(239, 68, 68, 0.3)) !important;
}

.logo-wrap .logo-text {
  font-family:
    "Outfit",
    "Space Grotesk",
    -apple-system,
    sans-serif !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  line-height: 1 !important;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  font-size: 0.925rem !important;
  transition: all 0.2s ease !important;
}
.nav-link:hover {
  color: #ffffff !important;
}
.nav-link.active {
  color: var(--ember-rose) !important;
}

/* Social icons in header */
.social-link a img {
  filter: brightness(0) invert(0.7);
  transition: all 0.2s ease;
}
.social-link a:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
  transform: translateY(-1px);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
/* Primary Unelevated / Flat Button */
.mdc-button--unelevated,
.mat-mdc-unelevated-button,
.btn-class,
.experiment-get-app {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
  border-radius: 9999px !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(185, 28, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mdc-button--unelevated:hover,
.mat-mdc-unelevated-button:hover,
.btn-class:hover,
.experiment-get-app:hover {
  background: linear-gradient(180deg, #ef4444 0%, #c81e1e 100%) !important;
  box-shadow:
    0 4px 20px rgba(220, 38, 38, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Secondary Outlined Button */
.mdc-button--outlined,
.mat-mdc-outlined-button {
  background: rgba(24, 24, 27, 0.6) !important;
  color: #e4e4e7 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  font-weight: 500 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mdc-button--outlined:hover,
.mat-mdc-outlined-button:hover {
  background: rgba(39, 39, 42, 0.8) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
app-hero .wrapper {
  position: relative;
  padding-top: 40px;
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}

app-hero .container,
app-hero .content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

app-hero .title {
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 860px !important;
  width: 100% !important;
}

/* Organic, radiant Ember text gradient (Natural rose-gold to deep warm ember) */
.gradient,
app-hero .gradient {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #fca5a5 30%,
    #ef4444 70%,
    #b91c1c 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 4px 18px rgba(220, 38, 38, 0.2)) !important;
}

app-hero .description {
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
  max-width: 680px !important;
  line-height: 1.6 !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */
app-section-title .title {
  color: #f8fafc !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
}

/* ==========================================================================
   TEXT-MEDIA FEATURE BLOCKS (PIPELINE)
   ========================================================================== */
/* No outer card — the text and video sit directly on the page background */
app-text-media .container {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
  padding: 28px !important;
  position: relative;
  width: 92% !important;
  max-width: 1050px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

app-text-media .content .title {
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  font-size: 1.75rem !important;
  line-height: 1.4 !important;
}

app-text-media .content .description {
  color: var(--text-secondary) !important;
  line-height: 1.6;
  font-size: 1.125rem !important;
}

/* Material Icons / Badges */
mat-icon,
.mat-icon,
.material-symbols {
  color: var(--ember-rose) !important;
}

/* Center the video panel vertically against the text column */
app-text-media .container .media {
  align-self: center;
}

/* The three glass info boxes: always 3-up, collapsing to one column
   on small screens — never a lopsided 2+1 wrap */
.glass-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .glass-grid {
    grid-template-columns: 1fr;
  }
}

app-text-media .media-wrapper {
  background: #050508 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  overflow: hidden !important;
  position: relative !important;
  padding-top: 0 !important;
  /* 16:9 box that caps at the old 480px desktop height — on narrow
     screens the panel shrinks with the video instead of cropping it */
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 360px !important;
  width: 75% !important;
  /* hug the card's right padding so it mirrors the text inset on the left */
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Stacked on phones there is no room to spare — use the full column */
@media (max-width: 767px) {
  app-text-media .media-wrapper {
    width: 100% !important;
  }
}

/* First section's clip sits small in frame — zoom it to fill the panel.
   The wrapper clips the overflow. */
app-text-media:first-of-type .media-wrapper video {
  transform: scale(1.6) !important;
  transform-origin: center center !important;
}

app-text-media .media-wrapper iframe.interactive-3d-iframe,
app-text-media .media-wrapper iframe.interactive-canvas-iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: none !important;
  border-radius: 14px !important;
  display: block !important;
}

/* --- CENTERED W_CARD SVG LOGO FIT --- */
img[src*="W_card.svg"] {
  display: block !important;
  margin: auto !important;
  max-width: 80% !important;
  max-height: 80% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 35px rgba(220, 38, 38, 0.35)) !important;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease !important;
}

app-text-media .media-wrapper:has(img[src*="W_card.svg"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(
    circle at center,
    rgba(220, 38, 38, 0.18) 0%,
    rgba(10, 10, 14, 0.95) 75%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 35px !important;
  height: 420px !important;
  box-sizing: border-box !important;
}

app-text-media
  .media-wrapper:has(img[src*="W_card.svg"]):hover
  img[src*="W_card.svg"] {
  transform: scale(1.05) !important;
  filter: drop-shadow(0 0 55px rgba(220, 38, 38, 0.55)) !important;
}

/* ==========================================================================
   ========================================================================== */
app-card-grid .card,
.card {
  background: linear-gradient(
    160deg,
    rgba(22, 22, 27, 0.75) 0%,
    rgba(14, 14, 17, 0.9) 100%
  ) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 18px !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(14px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

app-card-grid .card:hover,
.card:hover {
  border-color: var(--border-ember-hover) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(220, 38, 38, 0.08),
    inset 0 1px 0 rgba(248, 113, 113, 0.2) !important;
  transform: translateY(-2px);
}

.icon-circle {
  background: rgba(185, 28, 28, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.icon-circle mat-icon {
  color: var(--ember-rose) !important;
}

app-card-grid .card .title {
  color: #ffffff !important;
  font-weight: 600 !important;
}

app-card-grid .card .description {
  color: var(--text-secondary) !important;
  line-height: 1.55;
}

app-card-grid .card .cta {
  color: var(--ember-light) !important;
  font-weight: 500 !important;
  font-size: 0.95rem;
}

/* ==========================================================================
   MARQUEE / TESTIMONIALS SECTION
   ========================================================================== */
app-marquee-card .card,
.marquee-item .card {
  background: linear-gradient(
    160deg,
    rgba(20, 20, 25, 0.8) 0%,
    rgba(12, 12, 15, 0.95) 100%
  ) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 16px !important;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: all 0.25s ease !important;
}

app-marquee-card .card:hover,
.marquee-item .card:hover {
  border-color: rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-1px);
}

app-marquee-card .text {
  color: #e4e4e7 !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

app-marquee-card .first-last {
  color: var(--ember-light) !important;
  font-weight: 500 !important;
}

app-marquee-card figcaption img {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FAQ ACCORDIONS
   ========================================================================== */
app-faq .faq-accordion-header {
  color: #f8fafc !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

app-faq .faq-accordion-header:hover {
  color: var(--ember-rose) !important;
}

app-faq .faq-accordion-body {
  color: var(--text-secondary) !important;
}

app-faq a {
  color: var(--ember-rose) !important;
  text-decoration: underline;
}

/* ==========================================================================
   COOKIE BAR & FOOTER
   ========================================================================== */
.glue-cookie-notification-bar {
  background: rgba(18, 18, 22, 0.95) !important;
  border-top: 1px solid var(--border-subtle) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
  color: var(--text-secondary) !important;
}

.glue-cookie-notification-bar__accept {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
}

footer,
app-footer,
.glue-footer {
  background: #09090b !important;
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-muted) !important;
}

footer a,
app-footer a,
.glue-footer a {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
}

footer a:hover,
app-footer a:hover,
.glue-footer a:hover {
  color: #ffffff !important;
}
.material-symbols {
  font-family: "Material Symbols Outlined" !important;
  font-feature-settings: 'liga' !important;
}

/* Waitlist Modal Styles */
.waitlist-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* iOS Safari: track the real viewport as the URL bar collapses */
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.waitlist-modal-backdrop.show {
  opacity: 1;
}

.waitlist-modal-container {
  background-color: #050508;
  border: 1px solid #ff1e46;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 30, 70, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.waitlist-modal-backdrop.show .waitlist-modal-container {
  transform: translateY(0);
}

.waitlist-modal-header {
  display: flex;
  justify-content: space-between;
  /* keep the close button pinned top-right when the title wraps */
  align-items: flex-start;
}

.waitlist-modal-close {
  background: transparent;
  border: none;
  color: #a1a1a9;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.waitlist-form-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.waitlist-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0 20px;
  color: white;
  font-family: inherit;
  font-size: 18px;
  outline: none;
  transition: all 0.2s ease;
  height: 48px;
  box-sizing: border-box;
}

.waitlist-input:focus {
  border-color: #e21d3f;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(226, 29, 63, 0.1);
}

.waitlist-input::placeholder {
  color: #71717a;
}

.waitlist-submit {
  height: 48px;
  box-sizing: border-box;
  transition: all 0.2s ease !important;
}

.waitlist-submit:hover {
  background: #f72c4e !important;
  transform: translateY(-1px);
}

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

@media (max-width: 480px) {
  .waitlist-form-group {
    flex-direction: column;
  }
  /* In the column layout flex:1 (basis 0) collapses the input's height */
  .waitlist-input {
    flex: none;
    width: 100%;
  }
  .waitlist-submit {
    width: 100%;
  }
  .waitlist-modal-container {
    padding: 24px;
  }
}
