/* =========================================================
   myPmanager — Landing Page Styles
   Premium minimal · Navy hero · Soft floating cards
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #3B5BDB;
  --primary-soft: #5B4FF5;
  --secondary: #2F4BC4;
  --navy: #1B1B4B;
  --navy-deep: #121235;
  --navy-mid: #252560;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FC;
  --bg-elevated: #FFFFFF;
  --text: #5C6578;
  --text-strong: #15152E;
  --text-muted: #7B8499;
  --border: transparent;
  --border-strong: rgba(21, 21, 46, 0.08);
  --glass: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 4px 16px rgba(21, 21, 46, 0.04);
  --shadow-md: 0 12px 40px rgba(21, 21, 46, 0.07);
  --shadow-lg: 0 20px 50px rgba(21, 21, 46, 0.09);
  --shadow-float: 0 16px 48px rgba(21, 21, 46, 0.12);
  --ring: rgba(59, 91, 219, 0.28);
  --hero-text: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, 0.78);
  --gradient-hero: linear-gradient(145deg, #1E1E52 0%, #1B1B4B 42%, #14143A 100%);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-hover: rgba(59, 91, 219, 0.04);
  --timeline-line: rgba(59, 91, 219, 0.2);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-h: 70px;
  --font: "Plus Jakarta Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0E0E1C;
  --bg-soft: #12122A;
  --bg-elevated: #17172E;
  --text: #9AA3B8;
  --text-strong: #F0F2F8;
  --text-muted: #7A8499;
  --border-strong: rgba(255, 255, 255, 0.08);
  --glass: rgba(23, 23, 46, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(14, 14, 28, 0.88);
  --card-hover: rgba(91, 79, 245, 0.1);
  --timeline-line: rgba(91, 79, 245, 0.3);
  --gradient-hero: linear-gradient(145deg, #16163A 0%, #12122E 50%, #0C0C22 100%);
  color-scheme: dark;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text-strong);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { max-width: 62ch; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1100px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid rgba(21, 21, 46, 0.04);
  transition: background-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(1100px, calc(100% - 3rem));
  margin-inline: auto;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 120;
  position: relative;
}

.logo-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.logo-text span { color: var(--primary); }

.nav-menu {
  display: none;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-strong);
  background: var(--card-hover);
  outline: none;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.15rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 120;
  position: relative;
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background var(--transition);
}

.theme-toggle:hover {
  border-color: rgba(59, 91, 219, 0.35);
  box-shadow: 0 0 0 3px var(--ring);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  z-index: 121;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(59, 91, 219, 0.35);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 91, 219, 0.35);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: #fff;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.925rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Buttons on light sections use solid brand style */
.section .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 91, 219, 0.28);
}

.section .btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 12px 28px rgba(59, 91, 219, 0.35);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(59, 91, 219, 0.35);
}

.section .btn:focus-visible {
  outline-color: var(--primary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-row-center {
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 5.5rem;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--hero-text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 14s ease-in-out infinite;
}

.hero-orb-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  right: -40px;
  background: #3B5BDB;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: 10%;
  background: #5B4FF5;
  animation-delay: -5s;
  opacity: 0.22;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -20px); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.35rem;
  max-width: none;
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 1.35rem;
  max-width: 16ch;
}

.hero-sub {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--hero-muted);
  margin-bottom: 1rem;
  max-width: 48ch;
  font-weight: 400;
}

.hero-sub-secondary {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-link {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease, gap 0.25s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: #fff;
  gap: 0.6rem;
}

/* Floating dashboard cards — quieter glass on navy */
.hero-visual {
  position: relative;
  height: 400px;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 1.1rem 1.2rem;
  color: #fff;
}

.float-card-1 {
  width: 260px;
  top: 12%;
  right: 4%;
  animation: floatY 7s ease-in-out infinite;
}

.float-card-2 {
  width: 220px;
  bottom: 0;
  left: 0;
  animation: floatY 8s ease-in-out infinite reverse;
  animation-delay: -1.5s;
}

.float-card-3 {
  width: 150px;
  top: 0;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatY 6s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.fc-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.fc-dot:nth-child(1) { background: #F87171; }
.fc-dot:nth-child(2) { background: #FBBF24; }
.fc-dot:nth-child(3) { background: #34D399; }

.fc-title {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.fc-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 84px;
  margin-bottom: 0.85rem;
}

.fc-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #8B9CF7, #3B5BDB);
  opacity: 0.9;
}

.fc-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.fc-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.fc-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.fc-steps li.done { color: rgba(255, 255, 255, 0.85); }
.fc-steps li.done::before { background: #8B9CF7; border-color: #8B9CF7; }
.fc-steps li.current { color: #fff; font-weight: 600; }
.fc-steps li.current::before { border-color: #6EE7B7; box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.25); }

.fc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.fc-meta strong { color: #6EE7B7; font-weight: 700; }

.fc-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.fc-icon-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
}

.fc-row strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.fc-row small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.fc-kpi span {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.1rem;
}

.fc-kpi strong {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.fc-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #8B9CF7;
  border-right-color: #8B9CF7;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Sections shared ---------- */
.section {
  padding: 6.5rem 0;
  position: relative;
  background: var(--bg);
}

.section-soft {
  background: var(--bg-soft);
}

.section-soft .timeline-marker span {
  box-shadow: var(--shadow-sm), 0 0 0 6px var(--bg-soft);
}

.section-header {
  margin-bottom: 3.25rem;
  max-width: 560px;
}

.section-header-center {
  text-align: center;
  margin-inline: auto;
  max-width: 580px;
}

.section-header-center .section-lead {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-lead {
  margin-top: 0.9rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ---------- Meaning cards — soft float, no harsh borders ---------- */
.meaning {
  background: var(--bg);
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.meaning-card {
  padding: 1.85rem 1.5rem;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background var(--transition);
}

.meaning-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.meaning-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--primary);
}

[data-theme="dark"] .meaning-icon {
  background: rgba(59, 91, 219, 0.15);
}

.meaning-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.meaning-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: none;
  color: var(--text);
}

/* ---------- Journey Timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--primary), var(--timeline-line), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.timeline-marker span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(59, 91, 219, 0.35);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm), 0 0 0 6px var(--bg);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-item:hover .timeline-marker span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 6px var(--bg);
}

.timeline-card {
  padding: 1.4rem 1.5rem;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background var(--transition);
}

.timeline-card:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-lg);
}

.phase-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.3rem 0 0.55rem;
}

.timeline-card p:last-child {
  font-size: 0.92rem;
  max-width: none;
}

/* ---------- Topics ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.35rem 1.2rem;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background var(--transition);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.topic-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--primary);
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .topic-icon {
  background: rgba(59, 91, 219, 0.15);
}

.topic-card:hover .topic-icon {
  background: var(--primary);
  color: #fff;
}

.topic-card h3 {
  font-size: 0.95rem;
  font-weight: 650;
}

/* ---------- Community ---------- */
.community-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  border: none;
  position: relative;
  overflow: hidden;
}

.community-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(59, 91, 219, 0.08);
  filter: blur(40px);
  pointer-events: none;
}

.community-copy {
  position: relative;
  z-index: 1;
}

.community-copy h2 { margin-bottom: 0.9rem; }
.community-copy p { margin-bottom: 1rem; max-width: 46ch; }

/* ---------- Contact / Social ---------- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.25rem;
  min-width: 145px;
  justify-content: center;
  background: var(--bg-elevated);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-strong);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, color 0.3s ease, background var(--transition);
}

.social-btn:hover {
  transform: translateY(-3px);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.social-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---------- Support ---------- */
.support-panel {
  text-align: center;
  padding: 3.25rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: none;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin-inline: auto;
  transition: background var(--transition);
}

.support-icon {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.support-panel h2 { margin-bottom: 0.9rem; }

.support-panel p {
  margin-inline: auto;
  margin-bottom: 1.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.25rem 0 2.25rem;
  border-top: 1px solid rgba(21, 21, 46, 0.06);
  background: var(--bg);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.35rem;
}

.footer-brand .tagline {
  margin-top: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.footer-topics {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: none;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease);
}

[data-theme="dark"] .back-to-top {
  background: var(--primary);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--primary);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---------- V2 content components ---------- */
.subheading {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong);
  margin: 0 auto 1.5rem;
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.tag-list li {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

[data-theme="dark"] .tag-list li {
  background: rgba(255, 255, 255, 0.06);
}

.crosscut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 2rem auto 0;
  padding: 1rem 1.35rem;
  max-width: 720px;
  border-radius: var(--radius-lg);
  background: rgba(59, 91, 219, 0.07);
  color: var(--text-strong);
  font-size: 0.95rem;
}

.crosscut p { max-width: none; }

.crosscut-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}

.question-panel {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.question-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 2rem;
}

.question-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-strong);
  font-weight: 500;
  font-size: 0.95rem;
}

.question-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.question-final {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-strong);
  max-width: none;
}

.question-final strong { color: var(--primary); }

/* Flex so an incomplete last row stays centred */
.usecase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.usecase-grid .usecase-card {
  flex: 0 1 calc((100% - 2.5rem) / 3);
}

.usecase-card,
.learn-card,
.video-card {
  padding: 1.5rem 1.4rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background var(--transition);
}

.usecase-card:hover,
.learn-card:hover,
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.usecase-card .topic-icon,
.learn-card .topic-icon {
  margin-bottom: 1rem;
}

.usecase-card:hover .topic-icon,
.learn-card:hover .topic-icon {
  background: var(--primary);
  color: #fff;
}

.learn-card h3,
.video-card h3 { margin-bottom: 0.45rem; font-size: 1.02rem; }

.learn-card p,
.video-card p { font-size: 0.9rem; max-width: none; }

.section-note {
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.process-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 91, 219, 0.35);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-num {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.process-step h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.88rem; }

.principle {
  margin: 3rem auto 0;
  max-width: 780px;
  padding: 2.25rem 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.principle-quote {
  margin: 0 auto 1rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.principle-example {
  margin: 0 auto;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.principle-example strong { color: #fff; font-weight: 600; }
.strike { text-decoration: line-through; opacity: 0.7; }

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy p { margin-bottom: 1rem; }
.feature-copy .btn-row { margin-top: 1.5rem; }

.link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.link-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}

.link-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

[data-theme="dark"] .link-list li {
  background: rgba(255, 255, 255, 0.05);
}

.review-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
}

.review-copy h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.review-copy p { font-size: 0.95rem; }

.format-label {
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  max-width: none;
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  counter-reset: fmt;
}

.format-strip li {
  counter-increment: fmt;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
  font-size: 0.8rem;
  font-weight: 500;
}

.format-strip-numbered li::before {
  content: counter(fmt) ". ";
  color: var(--primary);
  font-weight: 700;
}

.format-card {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.format-card .format-strip li {
  background: var(--bg-soft);
  box-shadow: none;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
  counter-reset: fg;
}

.format-grid li {
  counter-increment: fg;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 2.1rem;
  position: relative;
}

.format-grid li::before {
  content: counter(fg);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 91, 219, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.format-grid strong { color: var(--text-strong); font-size: 0.95rem; }
.format-grid span { font-size: 0.86rem; }

.portfolio-grid,
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.portfolio-grid > *,
.video-grid > * {
  flex: 0 1 calc((100% - 3.3rem) / 4);
}

.play-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  padding-left: 2px;
  transition: background 0.3s ease;
}

.video-card:hover .play-dot { background: var(--primary); }

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.contributors {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.contributors h3 { margin-bottom: 0.6rem; }
.contributors p { font-size: 0.92rem; }

[data-theme="dark"] .contributors { background: rgba(255, 255, 255, 0.04); }

.community-copy .btn-row { margin-top: 1.5rem; }

.connect {
  margin-top: 3rem;
  text-align: center;
}

.future {
  max-width: 640px;
  margin: 3rem auto 0;
  text-align: center;
}

.future h3 { margin-bottom: 0.6rem; }
.future p { margin-inline: auto; font-size: 0.95rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-story h2 { margin-bottom: 1.1rem; }
.about-story p { margin-bottom: 1rem; }

.about-question {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.about-list {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(59, 91, 219, 0.3);
}

.about-list li { padding: 0.2rem 0; }

.about-p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.philosophy {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.philosophy h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.philosophy > p { font-size: 0.95rem; margin-bottom: 1.25rem; }

.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.philosophy-list li {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--bg-soft);
}

[data-theme="dark"] .philosophy-list li { background: rgba(255, 255, 255, 0.05); }

.philosophy-list strong { color: var(--text-strong); font-size: 0.95rem; }
.philosophy-list span { font-size: 0.86rem; }

.philosophy-outcome {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
  max-width: none;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.reveal-delay {
  transition-delay: 0.12s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.meaning-card.reveal:nth-child(2),
.usecase-card.reveal:nth-child(2),
.learn-card.reveal:nth-child(2),
.video-card.reveal:nth-child(2),
.process-step.reveal:nth-child(2) { transition-delay: 0.06s; }

.meaning-card.reveal:nth-child(3),
.usecase-card.reveal:nth-child(3),
.learn-card.reveal:nth-child(3),
.video-card.reveal:nth-child(3),
.process-step.reveal:nth-child(3) { transition-delay: 0.12s; }

.meaning-card.reveal:nth-child(4),
.learn-card.reveal:nth-child(4),
.video-card.reveal:nth-child(4),
.process-step.reveal:nth-child(4) { transition-delay: 0.18s; }

.timeline-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.timeline-item.reveal:nth-child(3) { transition-delay: 0.1s; }
.timeline-item.reveal:nth-child(4) { transition-delay: 0.15s; }
.timeline-item.reveal:nth-child(5) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .float-card,
  .hero-orb,
  .fc-ring {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */

/* Eight nav items need the mobile menu on tablets too */
@media (max-width: 1080px) {
  .nav-links-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    z-index: 190;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem 2.5rem;
    background: var(--bg);
    border-top: 1px solid rgba(21, 21, 46, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  [data-theme="dark"] .nav-menu {
    border-top-color: rgba(255, 255, 255, 0.06);
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
  }

  .nav-links-mobile .nav-link {
    display: block;
    width: 100%;
    padding: 0.95rem 1.15rem;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: 12px;
    color: var(--text-strong);
    background: var(--bg-soft);
  }

  .nav-links-mobile .nav-link.active {
    background: rgba(59, 91, 219, 0.1);
    color: var(--primary);
  }

  .nav-links-mobile .nav-link.active::after {
    display: none;
  }

  .nav-links-mobile .nav-link:hover,
  .nav-links-mobile .nav-link:focus-visible {
    background: rgba(59, 91, 219, 0.12);
    color: var(--primary);
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy h1 { max-width: none; }

  .hero-visual {
    height: 340px;
    max-width: 400px;
    margin-inline: auto;
  }

  .meaning-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecase-grid .usecase-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }

  .portfolio-grid > *,
  .video-grid > * {
    flex-basis: calc((100% - 1.1rem) / 2);
  }

  .community-panel,
  .feature-panel,
  .review-card,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .community-panel,
  .feature-panel { padding: 2.25rem; }
}

@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 4rem; }

  .perspective-grid {
    grid-template-columns: 1fr;
  }

  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .float-card-1 { width: 230px; right: 0; }
  .float-card-2 { width: 190px; }
  .float-card-3 { left: 0; }

  .section { padding: 4.75rem 0; }

  .social-btn { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
}

@media (max-width: 560px) {
  .container,
  .nav {
    width: min(100% - 1.75rem, 1100px);
  }

  .usecase-grid .usecase-card,
  .portfolio-grid > *,
  .video-grid > * {
    flex-basis: 100%;
  }

  .meaning-grid,
  .learn-grid,
  .question-list,
  .link-list,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .process-step { padding: 1.1rem 1rem; }

  .hero-visual { height: 280px; }

  .float-card-1 { top: 5%; right: 0; width: 210px; }
  .float-card-2 { bottom: 6%; width: 180px; }
  .float-card-3 { display: none; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .btn-row .btn { flex: 1 1 100%; }

  .timeline::before { left: 23px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 0.8rem; }
  .timeline-marker { width: 48px; height: 48px; }
  .timeline-marker span { width: 38px; height: 38px; font-size: 0.72rem; }

  .community-panel,
  .feature-panel { padding: 1.75rem 1.35rem; }
  .question-panel,
  .format-card,
  .review-card,
  .philosophy { padding: 1.5rem 1.35rem; }
  .principle { padding: 1.75rem 1.35rem; }
  .support-panel { padding: 2.25rem 1.35rem; }

  .crosscut { flex-direction: column; text-align: center; }

  .social-btn { flex: 1 1 100%; }
}
