/* ==========================================================================
   RingNotes: Personal Call Diary — Design Tokens & Theme
   Mirrors the app's obsidian-dark UI + signature lavender (#C98BFF) accents
   ========================================================================== */

:root {
  --bg-base: #0b0b0e;
  --bg-elevated: #141418;
  --surface-card: #1a1a20;
  --surface-card-2: #212128;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(201, 139, 255, 0.36);

  --accent: #c98bff;
  --accent-bright: #e0bfff;
  --accent-dim: #462357;
  --accent-glow: rgba(201, 139, 255, 0.22);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --green: #4ade80;
  --blue: #60a5fa;
  --tag-blue: #7c8cf8;
  --danger: #ef4444;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(201, 139, 255, 0.16);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(201, 139, 255, 0.14);
  color: var(--accent-bright);
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ==========================================================================
   Ambient Background
   ========================================================================== */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.45;
}

.bg-orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(201, 139, 255, 0.28), transparent 70%);
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 480px;
  height: 480px;
  bottom: 10%;
  left: -140px;
  background: radial-gradient(circle, rgba(124, 140, 248, 0.18), transparent 70%);
  animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 35%, transparent 100%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.08); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 11, 14, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: rgba(11, 11, 14, 0.9);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 139, 255, 0.3);
  background: #141416;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.56rem 1.1rem;
  font-size: 0.87rem;
}

.btn-primary {
  background: var(--accent);
  color: #130c1a;
  box-shadow: 0 8px 24px rgba(201, 139, 255, 0.28);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 12px 30px rgba(201, 139, 255, 0.4);
}

.play-icon {
  width: 15px;
  height: 15px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #211d2b, #141418);
  border: 1px solid rgba(201, 139, 255, 0.42);
  box-shadow: 0 12px 32px rgba(201, 139, 255, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.play-store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  box-shadow: 0 16px 40px rgba(201, 139, 255, 0.3);
}

.play-store-btn-lg {
  padding: 0.9rem 1.75rem;
}

.play-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.play-badge-text small {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.play-badge-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(16, 16, 20, 0.98);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.btn) {
  padding: 0.45rem 0;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-menu .btn-primary {
  color: #130c1a;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 2.2rem 0 4.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(201, 139, 255, 0.1);
  border: 1px solid rgba(201, 139, 255, 0.3);
  color: var(--accent-bright);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201, 139, 255, 0.7);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(201, 139, 255, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(201, 139, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 139, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
}

.text-gradient {
  background: linear-gradient(125deg, var(--accent) 0%, #f0d7ff 55%, #9f7aea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 2rem;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Interactive Phone Demo
   ========================================================================== */
.hero-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-rings {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 0;
}

.radar-rings span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(201, 139, 255, 0.16);
  animation: radarPulse 5.5s linear infinite;
}

.radar-rings span:nth-child(2) {
  animation-delay: 1.8s;
}

.radar-rings span:nth-child(3) {
  animation-delay: 3.6s;
}

@keyframes radarPulse {
  0% { transform: scale(0.55); opacity: 0.65; }
  100% { transform: scale(1.25); opacity: 0; }
}

.demo-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.stage-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}

.stage-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.stage-tab.active {
  background: var(--accent);
  color: #140d1b;
}

.channel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.channel-toggle:hover {
  border-color: var(--border-accent);
}

.channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transition: background 0.2s ease;
}

.channel-toggle.whatsapp .channel-dot {
  background: var(--green);
}

.channel-toggle.whatsapp {
  border-color: rgba(74, 222, 128, 0.35);
}

/* Phone Frame */
.phone-mockup {
  position: relative;
  z-index: 2;
  width: 312px;
  height: 556px;
  border-radius: 42px;
  background: #111114;
  border: 3px solid #2b2b33;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    var(--shadow-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #060608;
  border: 1px solid #222229;
  z-index: 10;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 8;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.wa-mini {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.battery {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 0 3px;
  font-size: 0.62rem;
}

.phone-screen {
  position: absolute;
  inset: 34px 0 0 0;
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.phone-screen.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Stage 1: Before Call */
.app-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1d1d22;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 10px 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.app-search-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.app-search-bar span:nth-child(2) {
  flex: 1;
}

.mini-bell {
  background: var(--accent-dim);
  color: var(--accent-bright);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.mini-calendar-card {
  background: #1a1a1f;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.cal-head span {
  color: var(--text-secondary);
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px 2px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.cal-days span:nth-child(-n+7) {
  color: var(--text-muted);
  font-size: 0.62rem;
}

.cal-days .has-dot {
  position: relative;
}

.cal-days .has-dot::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
}

.cal-days .selected-day {
  background: var(--accent);
  color: #130b1b;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 0;
}

.day-label {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.note-card-app {
  background: #1c1c22;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 12px;
}

.highlight-card {
  border-color: rgba(201, 139, 255, 0.3);
}

.note-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.precall-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.note-card-top strong {
  font-size: 0.82rem;
  flex: 1;
}

.time-muted {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.call-fab-mini {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #140b1d;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.call-fab-mini:hover {
  transform: scale(1.1);
}

.call-fab-mini svg {
  width: 14px;
  height: 14px;
}

.note-body {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.app-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 140, 248, 0.22);
  color: #a5b4fc;
  font-weight: 600;
}

.pre-hint {
  background: transparent;
  color: var(--accent);
}

.app-bottom-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #1e1e24;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.nav-pill-active {
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Stage 2: During Call */
.in-call-bg {
  flex: 1;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 60%, #242936, #111216 75%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ringnotes-overlay-card {
  width: 100%;
  background: rgba(24, 24, 29, 0.96);
  border: 1px solid rgba(201, 139, 255, 0.42);
  border-radius: 18px;
  padding: 10px 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  animation: slideDownOverlay 0.4s ease;
}

@keyframes slideDownOverlay {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.overlay-head strong {
  display: block;
  font-size: 0.84rem;
}

.channel-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
}

.channel-badge.whatsapp {
  color: var(--green);
}

.add-note-pill {
  background: var(--accent);
  color: #140b1d;
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}

.overlay-history {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.history-item {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.hist-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-top: 4px;
  flex-shrink: 0;
}

.hist-dot.purple { background: var(--accent); }
.hist-dot.blue { background: var(--blue); }
.hist-dot.green { background: var(--green); }

.history-item small {
  display: block;
  font-size: 0.61rem;
  color: var(--text-muted);
}

.history-item p {
  margin: 0;
  font-size: 0.69rem;
  line-height: 1.32;
  color: var(--text-secondary);
}

.caller-center {
  margin-top: auto;
  text-align: center;
  padding: 14px 0 10px;
}

.caller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto 6px;
}

.caller-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.caller-timer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.caller-channel-sub {
  font-size: 0.66rem;
  color: var(--accent-bright);
  margin-top: 2px;
}

.call-controls-bar {
  display: flex;
  gap: 22px;
  margin-bottom: 12px;
}

.call-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.call-ctrl i {
  font-style: normal;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.hangup-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-bottom: 4px;
}

.hangup-btn:hover {
  transform: scale(1.08);
}

.hangup-btn svg {
  width: 22px;
  height: 22px;
}

/* Stage 3: After Call */
.wallpaper-blur {
  flex: 1;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 25%, rgba(65, 86, 102, 0.35), transparent 60%),
    linear-gradient(180deg, #171d22 0%, #0d0f12 100%);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.home-widgets-ghost {
  position: absolute;
  inset: 14px;
  opacity: 0.22;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.ghost-w {
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.72rem;
  width: fit-content;
}

.ghost-icons {
  display: flex;
  justify-content: space-around;
}

.ghost-icons span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.post-call-sheet {
  position: relative;
  z-index: 2;
  background: #1b1b20;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7);
}

.post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.post-head strong {
  display: block;
  font-size: 0.92rem;
}

.post-head small {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.close-x {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-input-box textarea {
  width: 100%;
  resize: none;
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  line-height: 1.4;
  outline: none;
}

.post-input-box textarea:focus {
  border-color: var(--accent);
}

.smart-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 12px;
}

.chip-calendar,
.chip-tag {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.chip-calendar {
  background: rgba(201, 139, 255, 0.16);
  color: var(--accent-bright);
  border: 1px solid rgba(201, 139, 255, 0.32);
}

.chip-tag {
  background: rgba(124, 140, 248, 0.22);
  color: #b4c0ff;
}

.post-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.btn-later {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-save-note {
  background: var(--accent);
  color: #130b1b;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.save-toast {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.demo-hint {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.demo-hint strong {
  color: var(--text-secondary);
}

/* ==========================================================================
   Shared Section Styling
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ==========================================================================
   Lifecycle Grid
   ========================================================================== */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.lifecycle-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.lifecycle-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.step-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}

.step-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.step-pill.accent {
  background: rgba(201, 139, 255, 0.16);
  color: var(--accent-bright);
  border: 1px solid rgba(201, 139, 255, 0.3);
}

.lifecycle-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin: 0 0 0.65rem;
}

.lifecycle-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Bento Features Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.bento-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(201, 139, 255, 0.11),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

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

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 1.8rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(201, 139, 255, 0.14);
  border: 1px solid rgba(201, 139, 255, 0.28);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.icon-badge.green {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Bento Micro-Visuals */
.bento-visual {
  background: #121216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.mini-note-parse {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.parse-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: #1c1c23;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}

.parse-text mark {
  background: rgba(201, 139, 255, 0.24);
  color: var(--accent-bright);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.parse-arrow {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
}

.calendar-event-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(201, 139, 255, 0.1);
  border: 1px solid rgba(201, 139, 255, 0.32);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
}

.cal-date-box {
  background: var(--accent);
  color: #140b1d;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  text-align: center;
  line-height: 1.1;
}

.cal-date-box strong {
  display: block;
  font-size: 0.72rem;
}

.cal-date-box small {
  font-size: 0.65rem;
  font-weight: 700;
}

.calendar-event-pill > div strong {
  display: block;
  font-size: 0.84rem;
}

.calendar-event-pill > div small {
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.cal-check {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.2);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.channel-pills-visual {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: #131317;
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 500;
}

.ch-pill.active {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.dot-purple,
.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-purple { background: var(--accent); }
.dot-green { background: var(--green); }

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-chip {
  border: 1px solid rgba(124, 140, 248, 0.28);
  background: rgba(124, 140, 248, 0.12);
  color: #c7d2fe;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-chip.active,
.tag-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #130b1b;
}

.backup-widget {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.backup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.toggle-on {
  background: var(--accent);
  color: #140b1d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.backup-progress {
  height: 8px;
  border-radius: 999px;
  background: #23232b;
  overflow: hidden;
}

.backup-bar {
  width: 82%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  animation: backupPulse 2.8s ease-in-out infinite alternate;
}

@keyframes backupPulse {
  from { width: 72%; }
  to { width: 96%; }
}

.backup-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.export-preview {
  background: #121216;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.85rem;
}

.export-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.export-line span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.export-actions-mini {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.export-actions-mini span {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.visual-stages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stage-mini-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.75rem;
  border-radius: 12px;
  background: #1a1a21;
  border: 1px solid var(--border-subtle);
}

.stage-mini-row.active {
  border-color: rgba(201, 139, 255, 0.38);
  background: rgba(201, 139, 255, 0.08);
}

.stage-mini-row small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.stage-mini-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  min-width: 68px;
  text-align: center;
}

.stage-mini-badge.accent {
  background: var(--accent);
  color: #140b1d;
}

.speed-badge-visual {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(201, 139, 255, 0.1);
  border: 1px solid rgba(201, 139, 255, 0.25);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.speed-badge-visual strong {
  color: var(--accent-bright);
}

/* ==========================================================================
   Privacy Section
   ========================================================================== */
.privacy-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3rem;
  padding: 3.2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(44, 24, 62, 0.55) 0%, rgba(20, 20, 26, 0.95) 60%);
  border: 1px solid rgba(201, 139, 255, 0.3);
  box-shadow: var(--shadow-card);
}

.privacy-shield {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
}

.shield-glow {
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 139, 255, 0.35), transparent 70%);
  filter: blur(12px);
}

.privacy-shield svg {
  position: relative;
  width: 92px;
  height: 92px;
}

.privacy-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.85rem;
}

.privacy-copy > p {
  margin: 0 0 1.8rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.privacy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pillar {
  background: rgba(11, 11, 14, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.pillar strong {
  display: block;
  font-size: 0.94rem;
  color: var(--accent-bright);
  margin-bottom: 0.25rem;
}

.pillar span {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Screenshots Showcase
   ========================================================================== */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.screen-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen-frame {
  width: 100%;
  max-width: 290px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2b2b34, #141418);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.screen-card:hover .screen-frame {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-accent);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.screen-frame img {
  border-radius: 25px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.screen-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.screen-card figcaption span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  transition: border-color 0.2s ease;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

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

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0%, rgba(201, 139, 255, 0.22), rgba(22, 22, 28, 0.95) 65%);
  border: 1px solid rgba(201, 139, 255, 0.34);
  box-shadow: var(--shadow-card);
}

.cta-rings span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 999px;
  border: 1px solid rgba(201, 139, 255, 0.1);
  pointer-events: none;
}

.cta-rings span:nth-child(2) {
  width: 780px;
  height: 780px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.cta-banner p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.6rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .radar-rings span, .pulse-dot, .bg-orb, .backup-bar { animation: none; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-ctas,
  .hero-trust {
    justify-content: center;
  }

  .lifecycle-grid,
  .bento-grid,
  .screens-grid,
  .privacy-pillars {
    grid-template-columns: 1fr;
  }

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

  .privacy-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.2rem 1.5rem;
  }

  .privacy-shield {
    margin-inline: auto;
  }
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 2rem;
  }
}
