/* =========================
   index.css (APP-LOCAL)
   Single-file landing styles (website-aligned)
   ========================= */

/* =========================
   ROOT TOKENS / PALETTE
   ========================= */
:root {
  /* Colors */
  --color-bg: #e9f2ff;
  --color-bg-soft: #f6f9ff;
  --color-bg-glass: rgba(255, 255, 255, 0.7);
  --color-bg-glass-strong: rgba(255, 255, 255, 0.85);

  --color-text-main: #0f172a;
  --color-text-soft: #3b4a68;
  --color-text-muted: #60718d;

  --color-border-subtle: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.14);

  --color-accent-blue: #5ecbff;
  --color-accent-soft-blue: #cdeaff;
  --color-accent-pink: #a275ff;

  --gradient-accent: linear-gradient(120deg, #5ecbff, #a275ff);

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
  --shadow-subtle: 0 10px 26px rgba(15, 23, 42, 0.12);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-4xl: clamp(2.25rem, 2.1rem + 0.8vw, 2.75rem);

  /* Layout */
  --radius-xl: 2rem;
  --radius-pill: 999px;
  --spacing-section-y: clamp(4rem, 6vw, 5.5rem);
}

/* =========================
   BASE / RESETS
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background:
    radial-gradient(circle at 14% 10%, rgba(94, 203, 255, 0.22), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(162, 117, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #f6f9ff 0%, #e9f2ff 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }

#howto-link,
#dashboard-link {
  font-weight: 500;
  font-size: 0.95rem;
}

/* =========================
   BACKGROUND LAYERS
   ========================= */
.background-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.background-layer--aurora::before,
.background-layer--aurora::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 12%, rgba(94, 203, 255, 0.3), transparent 45%),
    radial-gradient(circle at 70% 20%, rgba(162, 117, 255, 0.22), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 212, 119, 0.18), transparent 60%);
  filter: blur(65px);
  opacity: 0.55;
}

.background-layer--aurora::after {
  animation: auroraShift 26s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

.background-layer--orbits::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 10%, rgba(94, 203, 255, 0.14), transparent 55%),
    radial-gradient(circle at 0% 40%, rgba(162, 117, 255, 0.12), transparent 55%),
    radial-gradient(circle at 100% 60%, rgba(255, 212, 119, 0.12), transparent 55%);
  opacity: 0.6;
}

/* =========================
   LAYOUT PRIMITIVES
   ========================= */
.container {
  width: min(1120px, 100% - 2.75rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--spacing-section-y);
  position: relative;
  z-index: 1;
}

/* =========================
   GLASS PANEL (shared)
   ========================= */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    135deg,
    rgba(94, 203, 255, 0.25),
    rgba(162, 117, 255, 0.18),
    transparent 55%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.glass-panel:hover::before { opacity: 1; }

/* Header must NOT clip dropdown menu */
.site-header.glass-panel {
  overflow: visible;
}

/* Also ensure the inner wrapper doesn't clip it */
.site-header .nav-inner {
  overflow: visible;
}

/* =========================
   HEADER / NAV (website-aligned)
   ========================= */
.site-header {
  position: sticky;
  top: 0.75rem;
  margin-inline: auto;
  margin-top: 0.75rem;
  max-width: min(1120px, 100% - 2.75rem);
  z-index: 40;
  padding-block: 0.6rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.9rem;
  background-image: var(--gradient-accent);
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 50%);
  opacity: 0.85;
}

.brand-text {
  font-weight: 1000;
  letter-spacing: 0.03em;
  font-size: var(--text-sm);
  text-transform: uppercase;
  color: var(--color-text-main);
}

.site-nav { margin-left: auto; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
}

.nav-list a {
  text-decoration: none;
  color: var(--color-text-soft);
  padding: 10px;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background-image: var(--gradient-accent);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text-main);
}
/* .nav-toggle-bar + .nav-toggle-bar { margin-top: 4px; } */

/* =========================
   BUTTONS (single system)
   ========================= */
.btn {
  --btn-bg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  background: var(--btn-bg);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(162, 117, 255, 0.3);
}
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

.btn-primary {
  --btn-bg: transparent;
  background-image: linear-gradient(120deg, #afe5ff, #cfb7ff);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(162, 117, 255, 0.25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.btn-outline {
  --btn-bg: rgba(94, 203, 255, 0.12);
  border-color: rgba(162, 117, 255, 0.25);
  color: var(--color-text-main);
  box-shadow: var(--shadow-subtle);
}

.btn-ghost {
  --btn-bg: rgba(15, 23, 42, 0.04);
  color: var(--color-text-soft);
  border-color: rgba(15, 23, 42, 0.1);
}

/* =========================
   HERO / LANDING
   ========================= */
.hero-section { padding-top: 50px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 2.5vw, 2.2rem);
  align-items: stretch;
}

.hero-title {
  margin: 0;
  font-size: var(--text-4xl);
  letter-spacing: -0.03em;
  padding-top: 20px;
}

.hero-subtitle {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: transparent;
}

/* kicker */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to bottom right, rgba(94, 203, 255, 0.86), rgba(162, 116, 255, 0.76));
  color: #0f172a;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: fit-content;
}

.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-soft-blue));
  box-shadow: 0 0 18px rgba(159,179,255,.35);
}

/* logo */
.landing-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px dashed var(--color-border-strong);
  background: rgba(255,255,255,.65);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.landing-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.landing-logo-placeholder {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 6px;
  line-height: 1.15;
}
.landing-logo-wrap:not(.is-placeholder) .landing-logo-placeholder { display: none; }
.landing-logo-wrap.is-placeholder img { display: none; }

/* hero card */
.landing-hero-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
}

/* benefits */
.landing-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0.35rem;

}
.landing-benefit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: rgba(94, 203, 255, 0.12);
  border: 1px solid rgba(162, 117, 255, 0.25);
  color: var(--color-text-main);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

/* visual (FIXED alignment) */
.landing-visual { padding: clamp(1.1rem, 2vw, 1.6rem); }

.landing-visual-inner {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255,255,255,.6);
  min-height: 320px;
  height: 100%;
  /* important: allow image to fill */
  position: relative;
}

/* Index hero visual: stacked (image + caption under) */
.landing-visual-inner--stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  gap: 10px;
}

/* Centered image sizing (similar to other pages) */
.landing-centered-image {
  width: 30%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Caption under image */
.landing-visual-note {
  margin: 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 52ch;
}

/* Responsive */
@media (max-width: 900px) {
  .landing-centered-image { width: 70%; }
}
@media (max-width: 520px) {
  .landing-centered-image { width: 100%; }
}

#hero-visual {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  padding: 0;
}

/* FULL overlay that sits on top of the image */
.hero-visual-placeholder{
  position: absolute;
  inset: 0;                 /* cover entire box */
  display: flex;            /* center child */
  align-items: flex-end;    /* bottom */
  justify-content: center;  /* centered horizontally */
  padding: 18px;
  pointer-events: none;     /* clicks go through */
}

.placeholder-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255,255,255,0.65);
  box-shadow: var(--shadow-subtle);
}

.placeholder-title { font-weight: 700; color: var(--color-text-main); }

/* =========================
   AUTH PROGRESS OVERLAY
   ========================= */
.auth-progress {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 27, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 120;
  color: #f8fafc;
  text-align: center;
  padding: 24px;
}
.auth-progress.active { display: flex; }

.spinner {
  width: clamp(2.5rem, 6vw, 3.2rem);
  height: clamp(2.5rem, 6vw, 3.2rem);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.75);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================
   CONTACT SECTION
   ========================= */
.contact-section {
  width: min(100%, 960px);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.contact-description {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.2rem);
}

.field { display: grid; gap: 0.35rem; }

.contact-form label {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: clamp(0.6rem, 1.8vw, 0.85rem);
  border-radius: clamp(0.7rem, 2vw, 1rem);
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.85);
  color: var(--color-text-main);
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  resize: vertical;
  min-height: 3rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(94, 203, 255, 0.45);
  outline-offset: 2px;
}

.form-submit { justify-self: start; }

.contact-feedback {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  min-height: 1.2rem;
}

/* =========================
   MODAL
   ========================= */
.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 27, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  z-index: 110;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.info-modal.active { display: flex; }

.info-modal__panel {
  width: min(90%, 720px);
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  max-height: 90vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.info-highlight {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.18);
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.info-columns {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-column ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.65;
}

/* =========================
   SCROLL REVEAL
   ========================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .landing-benefits { grid-template-columns: 1fr; }
  .landing-visual-inner { min-height: 260px; }
}

@media (max-width: 768px) {
  .site-header { padding-inline: 0.7rem; }

  .section { padding-block: 3.25rem; }
  .glass-panel { border-radius: 1.3rem; padding: 1.5rem 1.35rem; }

  .hero-title { font-size: 2rem; }
  .hero-ctas { gap: 0.5rem; }
  .btn { padding-inline: 1.1rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.75rem, 480px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes auroraShift {
  0% { transform: translate3d(-4%, -2%, 0) scale(1.02); }
  50% { transform: translate3d(3%, 4%, 0) scale(1.03); }
  100% { transform: translate3d(-2%, 0, 0) scale(1.02); }
}

/* ////////////////////////////////////// */
/* =========================
   MENU SYSTEM (single source of truth)
   Desktop: inline nav + buttons
   Mobile/iPad: hamburger + dropdown
   ========================= */

.nav-inner { position: relative; }

/* Keep brand from shrinking */
.brand-mark,
.landing-logo-wrap,
.landing-brand-text { flex-shrink: 0; }

.landing-brand-text { white-space: nowrap; }

/* Desktop defaults */
.nav-toggle { display: none; }

.menu-only { display: none; } /* items only shown inside dropdown on mobile */

.site-nav { margin-left: auto; }

/* Desktop inline list */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

/* Make <a> and <button> menu items consistent */
.menu-link {
  background: transparent;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;
  color: var(--color-text-soft);
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Mobile / iPad */
@media (max-width: 900px) {
  /* hamburger visible */
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.10);
    background: rgba(255,255,255,0.75);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
  }

  .nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-pink));
    opacity: 0.95;
  }

  .nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(162,117,255,0.22);
  }

  .nav-toggle:focus-visible {
    outline: 2px solid rgba(94,203,255,0.55);
    outline-offset: 2px;
  }

  /* hide top-bar Create account on mobile (Sign in stays) */
  .nav-cta-group .btn-primary { display: none; }

  /* dropdown container */
  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 80;
    margin-left: 0;
  }

  /* dropdown list */
  .nav-list {
    display: none; /* closed by default */
    flex-direction: column;
    align-items: stretch;
    /* gap: 0; */
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: var(--shadow-soft);
  }

  .site-header.nav-open .nav-list { display: flex; }

  /* show the mobile-only items inside dropdown */
  .menu-only { display: block; }

  /* dropdown item styling */
  .menu-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--color-text-main);
  }

  .menu-link:hover,
  .menu-link:focus-visible {
    background: rgba(15,23,42,0.05);
    outline: none;
  }
  /* Make btn links inside nav-list not get the underline effect */
.nav-list a.btn::after { display: none !important; }

/* Dropdown buttons match other pages */
.nav-list li { width: 100%; }
.menu-btn {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 0.9rem;
}

}


/* Index only: remove extra wrapper padding so the centered image truly centers */
.landing-hero .landing-visual { padding: 0; }

.section-kicker {
  justify-self: start; /* stop grid stretch */
  align-self: start;
}

.hero-ctas-btn .btn-primary {
  padding: 0.95rem 1.35rem;
  font-size: 1.05rem;
}


