/**
 * MyCards — "Noire" Landing Page (Always Dark, Teal Glassmorphism)
 *
 * Separate from app.css — this page is ALWAYS dark regardless of system theme.
 * Uses Noire palette: deep ink (#050507), luminous teal (#00D4AA), warm amber (#FFAA33).
 */

/* ================================================
   LANDING TOKENS (force dark)
   ================================================ */
.landing {
  --l-bg: #050507;
  --l-surface: rgba(22, 22, 31, 0.55);
  --l-surface-hover: rgba(22, 22, 31, 0.75);
  --l-border: rgba(255, 255, 255, 0.06);
  --l-border-hover: rgba(255, 255, 255, 0.12);
  --l-text: #F0F1F3;
  --l-text-secondary: #9EA3AB;
  --l-text-muted: #5A5F6B;
  --l-primary: #00D4AA;
  --l-primary-light: #5DFFC8;
  --l-primary-glow: rgba(0, 212, 170, 0.25);
  --l-accent: #FFAA33;
  --l-success: #00D4AA;
  --l-danger: #FF4D5E;

  color-scheme: dark;
  background: var(--l-bg);
  color: var(--l-text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-family);
}

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

/* ================================================
   AMBIENT GRADIENT ORBS
   ================================================ */
.landing__orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.landing__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.18) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: orbFloat1 25s ease-in-out infinite;
}

.landing__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
  bottom: -100px;
  left: -150px;
  animation: orbFloat2 20s ease-in-out infinite;
}

.landing__orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 170, 51, 0.10) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation: orbFloat3 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 40px); }
  66% { transform: translate(20px, -20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, 20px); }
  66% { transform: translate(-20px, -30px); }
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   STICKY NAV
   ================================================ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.landing-nav--scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--l-border);
}

.landing-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--l-text);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.landing-nav__logo-icon {
  color: var(--l-primary);
}

.landing-nav__cta {
  padding: 8px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--l-text);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.landing-nav__cta:hover {
  border-color: var(--l-primary);
  color: var(--l-primary);
  background: rgba(0, 212, 170, 0.08);
}

/* ================================================
   HERO SECTION
   ================================================ */
.landing-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.landing-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  gap: 24px;
}

.landing-hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--l-text);
}

.landing-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--l-primary) 0%, var(--l-primary-light) 50%, var(--l-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--l-text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

.landing-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--l-primary);
  color: #0A0A0F;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ctaGlow 4s ease-in-out infinite;
}

.landing-hero__cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 212, 170, 0.4);
  color: #0A0A0F;
}

.landing-hero__cta:active {
  transform: scale(0.98);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25); }
  50% { box-shadow: 0 4px 30px rgba(0, 212, 170, 0.45); }
}

.landing-hero__note {
  font-size: 0.8rem;
  color: var(--l-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-hero__note .icon {
  color: var(--l-success);
}

/* Phone Mockup */
.landing-hero__phone {
  position: relative;
  width: 260px;
  height: 520px;
  margin-top: 16px;
  flex-shrink: 0;
}

.phone-mockup {
  width: 100%;
  height: 100%;
  background: #16161F;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 212, 170, 0.1);
  overflow: hidden;
  position: relative;
  animation: phoneFloat 5s ease-in-out infinite;
}

.phone-mockup__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  padding: 36px 12px 12px;
  background: #0A0A0F;
  overflow: hidden;
}

/* Mini card representations inside phone */
.phone-mockup__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.phone-mockup__minicard {
  height: 52px;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: cardSlideIn 0.5s ease both;
}

.phone-mockup__minicard:nth-child(1) {
  background: linear-gradient(135deg, #003399, #0055CC);
  animation-delay: 0.5s;
}
.phone-mockup__minicard:nth-child(2) {
  background: linear-gradient(135deg, #0058A3, #007AC8);
  animation-delay: 0.7s;
}
.phone-mockup__minicard:nth-child(3) {
  background: linear-gradient(135deg, #D4002D, #FF1744);
  animation-delay: 0.9s;
}
.phone-mockup__minicard:nth-child(4) {
  background: linear-gradient(135deg, #222222, #444444);
  animation-delay: 1.1s;
}
.phone-mockup__minicard:nth-child(5) {
  background: linear-gradient(135deg, #FF9900, #FFB84D);
  animation-delay: 1.3s;
}

.phone-mockup__minicard-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.phone-mockup__minicard-lines {
  flex: 1;
}

.phone-mockup__minicard-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.phone-mockup__minicard-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

.phone-mockup__greeting {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  padding: 0 2px;
}

.phone-mockup__greeting small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ================================================
   LOGO BAR (Social Proof)
   ================================================ */
.landing-logos {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  text-align: center;
}

.landing-logos__label {
  font-size: 0.75rem;
  color: var(--l-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.landing-logos__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0.45;
}

.landing-logos__item {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--l-text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ================================================
   PROBLEM SECTION
   ================================================ */
.landing-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.landing-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--l-primary);
  margin-bottom: 12px;
}

.landing-section__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--l-text);
  margin-bottom: 16px;
}

.landing-section__subtitle {
  font-size: 1.05rem;
  color: var(--l-text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
}

/* Pain Points */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-card {
  background: var(--l-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--l-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pain-card:hover {
  border-color: var(--l-border-hover);
  transform: translateY(-3px);
}

.pain-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.pain-card:nth-child(1) .pain-card__icon {
  background: rgba(255, 77, 94, 0.12);
  color: #FF4D5E;
}

.pain-card:nth-child(2) .pain-card__icon {
  background: rgba(255, 170, 51, 0.12);
  color: #FFAA33;
}

.pain-card:nth-child(3) .pain-card__icon {
  background: rgba(0, 212, 170, 0.12);
  color: var(--l-primary);
}

.pain-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 6px;
}

.pain-card__text {
  font-size: 0.875rem;
  color: var(--l-text-secondary);
  line-height: 1.5;
}

/* ================================================
   HOW IT WORKS (3 Steps)
   ================================================ */
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  counter-reset: step;
}

.step-card {
  flex: 1;
  text-align: center;
  counter-increment: step;
  position: relative;
  padding: 24px 16px;
}

.step-card__number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--l-primary);
  color: #0A0A0F;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px var(--l-primary-glow);
}

.step-card__icon {
  font-size: 28px;
  color: var(--l-text-secondary);
  margin-bottom: 12px;
}

.step-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 6px;
}

.step-card__text {
  font-size: 0.85rem;
  color: var(--l-text-secondary);
  line-height: 1.5;
}

/* Connector line between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--l-primary), transparent);
}

/* ================================================
   BENTO FEATURE GRID
   ================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.bento-item {
  background: var(--l-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--l-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-3px);
  border-color: var(--l-border-hover);
  box-shadow: 0 12px 40px rgba(0, 212, 170, 0.1);
}

.bento-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item--wide {
  grid-column: span 3;
}

.bento-item--tall {
  grid-row: span 2;
}

.bento-item__icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--l-primary);
}

.bento-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 4px;
}

.bento-item__text {
  font-size: 0.85rem;
  color: var(--l-text-secondary);
  line-height: 1.5;
}

/* Visual accent for large item */
.bento-item--large::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bento-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 212, 170, 0.15);
  color: var(--l-primary);
  margin-bottom: 12px;
  width: fit-content;
}

/* ================================================
   COMPARISON TABLE
   ================================================ */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--l-border);
  background: var(--l-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comparison-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--l-border);
}

.comparison-table th {
  font-weight: 700;
  color: var(--l-text);
  font-size: 0.9rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--l-text-secondary);
}

/* Highlight MyCards column */
.comparison-table th:last-child {
  color: var(--l-primary);
  position: relative;
}

.comparison-table td:last-child {
  background: rgba(0, 212, 170, 0.06);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--l-success);
  font-size: 1.1em;
}

.comparison-table .cross {
  color: var(--l-text-muted);
  font-size: 1.1em;
}

.comparison-table .partial {
  color: var(--l-accent);
  font-size: 0.8em;
}

/* ================================================
   FAMILY SPOTLIGHT
   ================================================ */
.spotlight {
  display: flex;
  align-items: center;
  gap: 48px;
}

.spotlight__content {
  flex: 1;
}

.spotlight__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.spotlight__phone {
  width: 140px;
  height: 280px;
  background: #16161F;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 24px 8px 8px;
  position: relative;
}

.spotlight__phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: #000;
  border-radius: 0 0 12px 12px;
}

.spotlight__phone:nth-child(2) {
  transform: translateY(20px);
}

.spotlight__phone-card {
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #003399, #0055CC);
  margin-bottom: 6px;
}

.spotlight__phone-card:nth-child(2) {
  background: linear-gradient(135deg, #D4002D, #FF1744);
}

.spotlight__bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--l-text-secondary);
}

.spotlight__bullets .icon {
  color: var(--l-success);
  flex-shrink: 0;
}

/* ================================================
   FAQ ACCORDION
   ================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: var(--l-border-hover);
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--l-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--l-text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--l-text-secondary);
  line-height: 1.6;
}

/* ================================================
   FINAL CTA
   ================================================ */
.landing-final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 40px;
}

.landing-final-cta__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--l-text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.landing-final-cta__subtitle {
  font-size: 1rem;
  color: var(--l-text-secondary);
  margin-bottom: 28px;
}

/* ================================================
   FOOTER
   ================================================ */
.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--l-border);
  font-size: 0.8rem;
  color: var(--l-text-muted);
}

.landing-footer a {
  color: var(--l-text-secondary);
  text-decoration: none;
  margin: 0 8px;
}

.landing-footer a:hover {
  color: var(--l-primary);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (min-width: 768px) {
  .landing-hero {
    padding: 120px 40px 80px;
  }

  .landing-hero__inner {
    flex-direction: row;
    text-align: left;
    gap: 48px;
    max-width: 960px;
  }

  .landing-hero__phone {
    width: 280px;
    height: 560px;
  }

  .landing-section {
    padding: 100px 40px;
  }
}

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .steps-row {
    flex-direction: column;
    gap: 16px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-item--large,
  .bento-item--wide,
  .bento-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .spotlight {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .spotlight__bullets {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .landing-hero__phone {
    width: 220px;
    height: 440px;
  }

  .landing-logos__row {
    gap: 20px;
    font-size: 0.8rem;
  }

  .phone-mockup {
    border-radius: 28px;
  }

  .phone-mockup__notch {
    width: 80px;
    height: 22px;
  }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  .landing__orb,
  .phone-mockup,
  .landing-hero__cta,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-mockup__minicard {
    animation: none !important;
    opacity: 1;
  }
}
