/* Nodal marketing site - dark, colorful, static-only for fast loads (no web fonts) */
:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --surface: #12121c;
  --surface-2: #181824;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --lime: #c8f542;
  --mint: #34d399;
  --cyan: #22d3ee;
  --coral: #fb7185;
  --violet: #a78bfa;
  --pink: #f472b6;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-glow-lime: 0 0 60px rgba(200, 245, 66, 0.18);
  --shadow-glow-cyan: 0 0 50px rgba(34, 211, 238, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.row {
  display: flex;
}
.between {
  justify-content: space-between;
}
.center {
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}

/* Ambient background (CSS only - GPU-friendly) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(167, 139, 250, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.14), transparent 45%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(200, 245, 66, 0.1), transparent 50%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover .brand-text {
  opacity: 0.9;
}
.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--text);
}
.nav.small {
  gap: 0.75rem;
  font-size: 0.82rem;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #050508;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
}

.hero {
  padding: 3.5rem 0 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  margin: 0.6rem 0 1rem;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.08rem;
  max-width: 36rem;
  color: var(--muted);
  margin: 0;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, var(--lime), var(--mint));
  color: #052e16;
  box-shadow: var(--shadow-glow-lime);
}
.btn.primary:hover {
  box-shadow: 0 0 40px rgba(200, 245, 66, 0.35);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow {
  position: absolute;
  width: min(340px, 70vw);
  height: min(340px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 245, 66, 0.25) 0%, transparent 65%);
  filter: blur(4px);
  z-index: 0;
}

.phone-wrap {
  position: relative;
  z-index: 1;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.5) inset;
}

.phone-wrap img {
  display: block;
  width: min(300px, 52vw);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.rating-strip {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}
.stars {
  color: var(--amber);
  letter-spacing: 0.05em;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 3.5rem 0;
}
.section.alt {
  background: linear-gradient(180deg, transparent, rgba(24, 24, 36, 0.45), transparent);
}

/* Feature gallery: full-width panels (Home, Notes) + Tasks + rail (Habits, Money, Mood) */
.bento-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bento-split {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(272px, 1fr);
  gap: 1rem;
  align-items: start;
}

.bento-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.bento-rail .bento-card {
  width: 100%;
}

.bento-home {
  width: 100%;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.bento-card .shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 0.85rem;
  aspect-ratio: 10 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-card .shot-landscape {
  aspect-ratio: 1024 / 861;
}
/* Natural image height - no fixed aspect box (e.g. Habits tile) */
.bento-card .shot-fit {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  align-items: flex-start;
}
.bento-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.bento-card .shot-landscape img {
  object-fit: contain;
  object-position: center;
}
/* Higher specificity than `.shot img` so height follows the image */
.bento-card .shot.shot-fit img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.bento-card .shot-wide {
  aspect-ratio: auto;
  min-height: 260px;
  max-height: min(52vh, 520px);
}
.bento-card .shot-wide img {
  width: auto;
  max-width: 100%;
  height: min(52vh, 520px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.faq-strong {
  color: var(--text);
}

.bento-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.bento-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.accent-lime {
  box-shadow: var(--shadow-glow-lime);
}
.accent-mint .shot {
  box-shadow: 0 0 44px rgba(52, 211, 153, 0.18);
}
.accent-cyan {
  box-shadow: var(--shadow-glow-cyan);
}
.accent-sky .shot {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.12);
}
.accent-coral .shot {
  box-shadow: 0 0 40px rgba(251, 113, 133, 0.12);
}
.accent-violet .shot {
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.12);
}
.accent-amber .shot {
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.trust-card.stat {
  text-align: center;
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
}
.trust-card .big {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.25rem 0;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-card .small-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  margin: 0;
}
.trust-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust-card h3 {
  margin-top: 0;
}
.trust-card .name {
  color: var(--text);
  font-weight: 600;
}

.section.cta .row-cta {
  gap: 1.25rem;
}
.footer .row-footer {
  gap: 0.75rem;
}
.footer p {
  margin: 0;
}
.footer-lead {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.footer-brand:hover {
  opacity: 0.9;
}
.footer-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.footer-brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.footer-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 720px;
  margin: 0 auto;
}
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section.cta {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(200, 245, 66, 0.12), rgba(34, 211, 238, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.cta h2 {
  margin: 0 0 0.35rem;
}
.section.cta p {
  margin: 0;
  color: var(--muted);
}
.section.cta .btn.primary {
  flex-shrink: 0;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.35rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.text-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal pages */
.legal {
  padding: 3rem 0 4rem;
}
.legal h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}
.legal article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin: 0.85rem 0;
}
.legal article h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.legal article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lead,
  .tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row,
  .pill-row,
  .rating-strip {
    justify-content: center;
  }
  .bento-split {
    grid-template-columns: 1fr;
  }
  .trust {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .bento-card {
    transition: none;
  }
}
