/* ============================================================================
 * LEDGER INFRA - LANDING PAGE
 * ============================================================================
 * Design System: Monochrome + Emerald Accent
 * Inspired by shadcn/ui-kit aesthetic
 * Golden Ratio (1.618) governs spacing, typography, and layout proportions
 */

/* ==================== Design Tokens ==================== */
:root {
  /* Colors - Monochrome Base */
  --bg: #ffffff;
  --fg: #09090b;
  --card: #ffffff;
  --card-fg: #09090b;
  --muted: #f4f4f5;
  --muted-fg: #71717a;
  --border: #e4e4e7;
  --border-hover: #d4d4d8;

  /* Primary */
  --primary: #18181b;
  --primary-fg: #fafafa;

  /* Accent - Emerald */
  --accent: #10b981;
  --accent-fg: #ffffff;
  --accent-muted: rgba(16, 185, 129, 0.08);
  --accent-muted-strong: rgba(16, 185, 129, 0.15);
  --accent-light: #34d399;

  /* Semantic */
  --destructive: #ef4444;
  --destructive-muted: rgba(239, 68, 68, 0.08);

  /* Shadows - subtler for shadcn feel */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  /* Radius - Golden Ratio */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Spacing - Golden Ratio: base 4px */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 6.5rem;
  --sp-20: 8rem;
  --sp-24: 10rem;

  /* Typography - Golden Ratio scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Layout */
  --container: 1100px;
  --header-h: 64px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-slow: 400ms;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ==================== Layout ==================== */
.container {
  width: min(var(--container), 100% - var(--sp-8));
  margin-inline: auto;
}

.section {
  padding: var(--sp-20) 0;
}

.section-alt {
  background: var(--muted);
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

h1 {
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  line-height: 1.2;
}

h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

/* ==================== Section Header ==================== */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
  max-width: 640px;
  margin-inline: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-muted-strong);
}

.section-description {
  margin-top: var(--sp-4);
  color: var(--muted-fg);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.nav-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  gap: var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted-fg);
}

.desktop-nav a {
  transition: color var(--duration) var(--ease);
  padding: var(--sp-1) 0;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width var(--duration) var(--ease);
}

.desktop-nav a:hover {
  color: var(--fg);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: var(--sp-2);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}

.mobile-menu-btn:hover {
  background: var(--muted);
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  position: relative;
  transition: background var(--duration) var(--ease);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s var(--ease);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-menu-btn[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-5);
  flex-direction: column;
  gap: var(--sp-1);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: var(--sp-3) var(--sp-3);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}

.mobile-nav a:hover {
  background: var(--muted);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: var(--sp-2) var(--sp-4);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-sm {
  height: 36px;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-sm);
  border-radius: var(--radius);
}

.btn-lg {
  height: 44px;
  padding: var(--sp-2) var(--sp-6);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 1px 2px 0 rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
  background: #0ea572;
  border-color: #0ea572;
  box-shadow: 0 4px 12px 0 rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--muted);
  border-color: var(--border-hover);
}

.btn-white {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-20);
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted-fg);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-xs);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-description {
  margin-top: var(--sp-5);
  color: var(--muted-fg);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.hero-description strong {
  color: var(--fg);
  font-weight: 600;
}

.hero-cta {
  margin-top: var(--sp-8);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Hero Visual - shadcn panel style */
.hero-visual {
  position: relative;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.hero-panel:hover {
  box-shadow: var(--shadow-xl);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.panel-dots span:nth-child(1) { background: #ef4444; }
.panel-dots span:nth-child(2) { background: #f59e0b; }
.panel-dots span:nth-child(3) { background: #22c55e; }

.panel-label {
  font-size: var(--text-xs);
  color: var(--muted-fg);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.panel-body {
  padding: var(--sp-5);
}

.ai-bubble {
  padding: var(--sp-4);
  background: var(--muted);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-4);
}

.ai-bubble p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.citation-card {
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--accent-muted);
}

.citation-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--accent-muted-strong);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
}

.citation-detail {
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.citation-file {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.citation-path {
  font-size: var(--text-xs);
  color: var(--muted-fg);
}

.citation-footer {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 500;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
}

/* ==================== Social Proof ==================== */
.social-proof {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border);
}

.proof-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-10);
}

.proof-item {
  text-align: center;
}

.proof-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.proof-unit {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--fg);
  margin-left: 2px;
}

.proof-label {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--muted-fg);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ==================== Bento Grid (Problem Section) ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.bento-card {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: all var(--duration) var(--ease);
}

.bento-card:hover {
  border-color: var(--destructive);
  background: var(--destructive-muted);
}

.bento-card:hover .bento-icon.danger {
  background: rgba(239, 68, 68, 0.15);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  transition: background var(--duration) var(--ease);
}

.bento-icon.danger {
  background: var(--destructive-muted);
  color: var(--destructive);
}

.bento-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.bento-card p {
  font-size: var(--text-sm);
  color: var(--muted-fg);
  line-height: 1.6;
}

.problem-summary {
  max-width: 600px;
  margin: var(--sp-10) auto 0;
  padding: var(--sp-6);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--muted);
}

.problem-summary p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--muted-fg);
}

.problem-summary strong {
  color: var(--fg);
}

/* ==================== Pillars (Solution) ==================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.pillar {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}

.pillar:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-featured {
  border: 1px solid var(--accent);
  background: var(--accent-muted);
}

.pillar-featured .pillar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.pillar-header {
  position: relative;
  margin-bottom: var(--sp-3);
}

.pillar-num {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.pillar-header h3 {
  font-size: var(--text-xl);
  font-weight: 700;
}

.pillar-tagline {
  font-size: var(--text-sm);
  color: var(--muted-fg);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}

.pillar-body {
  font-size: var(--text-sm);
  color: var(--muted-fg);
  line-height: 1.7;
}

.pillar-body p {
  margin-bottom: var(--sp-2);
}

.pillar-body ul {
  margin: var(--sp-2) 0;
  padding-left: var(--sp-5);
}

.pillar-body li {
  margin: var(--sp-1) 0;
  list-style: disc;
  color: var(--muted-fg);
}

.pillar-body li::marker {
  color: var(--accent);
}

.pillar-footer {
  position: relative;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.pillar-featured .pillar-footer {
  border-top-color: rgba(16, 185, 129, 0.2);
}

.pillar-footer p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
}

/* ==================== Use Cases ==================== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.usecase-card {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: all var(--duration) var(--ease);
}

.usecase-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  margin-bottom: var(--sp-5);
  transition: all var(--duration) var(--ease);
}

.usecase-card:hover .usecase-icon {
  background: var(--accent-muted);
  color: var(--accent);
}

.usecase-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-4);
}

.usecase-card li {
  position: relative;
  padding-left: var(--sp-5);
  margin: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--muted-fg);
  line-height: 1.6;
}

.usecase-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==================== Comparison ==================== */
.compare-wrap {
  max-width: 780px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.compare-table th {
  background: var(--muted);
  font-weight: 600;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table th.col-highlight {
  background: var(--fg);
  color: var(--bg);
}

.compare-table td.col-highlight {
  background: var(--accent-muted);
}

.row-label {
  font-weight: 500;
}

.cell-no {
  color: var(--border-hover);
}

.cell-yes {
  color: var(--accent);
}

.cell-partial {
  color: var(--muted-fg);
  font-size: var(--text-lg);
}

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

/* ==================== Philosophy / Security ==================== */
.philosophy-card {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.philosophy-content h2 {
  margin-bottom: var(--sp-8);
}

.philosophy-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-8);
}

.phi-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--fg);
}

.phi-feature svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ==================== Target Teams ==================== */
.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  max-width: 880px;
  margin: 0 auto;
}

.target-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: all var(--duration) var(--ease);
}

.target-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.target-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  transition: all var(--duration) var(--ease);
}

.target-card:hover .target-icon {
  background: var(--accent-muted);
  color: var(--accent);
}

.target-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ==================== Pricing ==================== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--duration) var(--ease);
}

.toggle-switch[aria-pressed="true"] {
  background: var(--accent);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease);
}

.toggle-switch[aria-pressed="true"] .toggle-knob {
  transform: translateX(22px);
}

.toggle-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted-fg);
  transition: color var(--duration) var(--ease);
}

.toggle-label.is-active {
  color: var(--fg);
  font-weight: 600;
}

.toggle-badge {
  display: inline-block;
  margin-left: var(--sp-1);
  padding: 2px 6px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-muted-strong);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card-featured {
  border: 2px solid var(--accent);
  background: var(--accent-muted);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: var(--sp-4);
}

.pricing-card-header h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.pricing-tagline {
  font-size: var(--text-sm);
  color: var(--muted-fg);
}

.pricing-price {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.pricing-card-featured .pricing-price {
  border-bottom-color: rgba(16, 185, 129, 0.2);
}

.price-amount {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.price-period {
  font-size: var(--text-sm);
  color: var(--muted-fg);
  font-weight: 500;
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--sp-5);
}

.pricing-features li {
  position: relative;
  padding-left: var(--sp-5);
  margin: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--muted-fg);
  line-height: 1.6;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-note {
  text-align: center;
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ==================== CTA ==================== */
.cta-section {
  padding: var(--sp-16) 0 var(--sp-20);
}

.cta-card {
  position: relative;
  background: var(--fg);
  border-radius: var(--radius-2xl);
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
  color: var(--bg);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  color: var(--bg);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  margin-bottom: var(--sp-4);
  line-height: 1.3;
}

.cta-sub {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  margin-bottom: var(--sp-8);
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ==================== Mobile Sticky CTA ==================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 90;
}

/* ==================== Footer ==================== */
.site-footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
  padding: var(--sp-10) 0 var(--sp-5);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--muted-fg);
}

.footer-links a {
  transition: color var(--duration) var(--ease);
}

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

.footer-actions {
  display: flex;
  gap: var(--sp-2);
}

.footer-bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--muted-fg);
}

.footer-legal {
  display: flex;
  gap: var(--sp-5);
}

.footer-legal a {
  transition: color var(--duration) var(--ease);
}

.footer-legal a:hover {
  color: var(--fg);
}

/* ==================== Animations ==================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Stagger children */
.reveal.is-visible .bento-card,
.reveal.is-visible .pillar,
.reveal.is-visible .usecase-card,
.reveal.is-visible .target-card,
.reveal.is-visible .pricing-card {
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards;
}

.reveal.is-visible .bento-card:nth-child(1),
.reveal.is-visible .pillar:nth-child(1),
.reveal.is-visible .usecase-card:nth-child(1),
.reveal.is-visible .target-card:nth-child(1),
.reveal.is-visible .pricing-card:nth-child(1) { animation-delay: 0.05s; }

.reveal.is-visible .bento-card:nth-child(2),
.reveal.is-visible .pillar:nth-child(2),
.reveal.is-visible .usecase-card:nth-child(2),
.reveal.is-visible .target-card:nth-child(2),
.reveal.is-visible .pricing-card:nth-child(2) { animation-delay: 0.1s; }

.reveal.is-visible .bento-card:nth-child(3),
.reveal.is-visible .pillar:nth-child(3),
.reveal.is-visible .usecase-card:nth-child(3),
.reveal.is-visible .target-card:nth-child(3),
.reveal.is-visible .pricing-card:nth-child(3) { animation-delay: 0.15s; }

.reveal.is-visible .bento-card:nth-child(4),
.reveal.is-visible .target-card:nth-child(4),
.reveal.is-visible .pricing-card:nth-child(4) { animation-delay: 0.2s; }

.reveal.is-visible .bento-card:nth-child(5) { animation-delay: 0.25s; }

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

/* ==================== Responsive ==================== */
@media (max-width: 1080px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-panel {
    max-width: 480px;
    margin: 0 auto;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-span-2 {
    grid-column: span 2;
  }

  .pillars,
  .usecase-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: var(--sp-12) 0;
  }

  .container {
    width: min(100% - var(--sp-6), var(--container));
  }

  .hero {
    padding: var(--sp-10) 0 var(--sp-12);
    min-height: auto;
  }

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

  .bento-span-2 {
    grid-column: span 2;
  }

  .proof-row {
    gap: var(--sp-6);
  }

  .proof-value {
    font-size: var(--text-3xl);
  }

  .cta-card {
    padding: var(--sp-10) var(--sp-5);
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .mobile-sticky-cta {
    display: block;
  }

  .site-footer {
    padding-bottom: var(--sp-16);
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-2 {
    grid-column: span 1;
  }

  .proof-row {
    flex-direction: column;
    gap: var(--sp-5);
  }

  .proof-divider {
    width: 48px;
    height: 1px;
  }

  .target-grid {
    grid-template-columns: 1fr 1fr;
  }

  .philosophy-card {
    padding: var(--sp-8) var(--sp-5);
  }

  .philosophy-features {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .compare-table th,
  .compare-table td {
    padding: var(--sp-3) var(--sp-3);
    font-size: var(--text-xs);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}
