/* ============================================
   Entpoind — Design System
   Aesthetic: technical, restrained, mono-forward
   Accent: coral (matching logo)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --coral: #FB6F4E;
  --coral-hover: #F25E3A;
  --coral-soft: #FFEDE7;
  --black: #0A0A0A;
  --gray-900: #18181B;
  --gray-700: #3F3F46;
  --gray-500: #71717A;
  --gray-400: #A1A1AA;
  --gray-300: #D4D4D8;
  --gray-200: #E4E4E7;
  --gray-100: #F4F4F5;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;
  --green: #10B981;
  --red: #EF4444;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Sizing */
  --max-width: 1200px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gray-900);
  text-decoration: none;
}

a:hover {
  color: var(--coral);
}

code, pre, .mono {
  font-family: var(--font-mono);
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Top Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--gray-900);
  color: var(--gray-900);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-danger {
  background: var(--white);
  color: var(--red);
  border-color: var(--gray-300);
}

.btn-danger:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ============================================
   Hero with Slider
   ============================================ */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--gray-200);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 24px;
  max-width: 880px;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 64px;
}

/* Hero slider */
.slider {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-50);
  position: relative;
}

.slider-track {
  position: relative;
  min-height: 380px;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.slide-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.slide-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.slide-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
}

.slide-meta strong {
  color: var(--gray-900);
  font-weight: 500;
}

.slide-code {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 20px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #E4E4E7;
}

.slide-code .c-blue { color: #93C5FD; }
.slide-code .c-green { color: #86EFAC; }
.slide-code .c-pink { color: #F9A8D4; }
.slide-code .c-coral { color: #FCA5A5; }
.slide-code .c-gray { color: #71717A; }

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  background: var(--gray-300);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.slider-dot:hover {
  background: var(--gray-500);
}

.slider-dot.active {
  background: var(--coral);
  width: 24px;
  border-radius: 3px;
}

.slider-nav {
  display: flex;
  gap: 4px;
}

.slider-nav button {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: all 0.15s ease;
}

.slider-nav button:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ============================================
   Section
   ============================================ */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}

.section-header {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ============================================
   Thesis / Architecture diagram
   ============================================ */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.thesis-text h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.thesis-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.thesis-text p:last-child {
  margin-bottom: 0;
}

.thesis-diagram {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.diagram-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.diagram-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--gray-700);
}

.diagram-pill.accent {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.diagram-arrow {
  color: var(--gray-400);
}

.diagram-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-300);
  color: var(--gray-500);
  font-size: 11px;
}

/* ============================================
   Product Sections
   ============================================ */
.products {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--gray-200);
}

.product:first-of-type {
  border-top: none;
  padding-top: 0;
}

.product-info {
  max-width: 480px;
}

.product-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.product-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--gray-900);
}

.product-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.product-attest {
  background: var(--coral-soft);
  border-left: 2px solid var(--coral);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-900);
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.product-attest strong {
  font-weight: 600;
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gray-700);
}

.product-code {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-code-header span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
}

.product-code pre {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #E4E4E7;
  overflow-x: auto;
}

.product-code .c-blue { color: #93C5FD; }
.product-code .c-green { color: #86EFAC; }
.product-code .c-pink { color: #F9A8D4; }
.product-code .c-coral { color: #FCA5A5; }
.product-code .c-yellow { color: #FDE68A; }
.product-code .c-gray { color: #71717A; }

.product:nth-child(even) .product-info {
  order: 2;
  justify-self: end;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--coral);
  border-width: 2px;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.plan-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.plan-period {
  font-size: 14px;
  color: var(--gray-500);
}

.plan-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
  min-height: 38px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: '+';
  color: var(--coral);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

.plan .btn {
  width: 100%;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q:hover {
  color: var(--coral);
}

.faq-q-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
  color: var(--coral);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a-inner {
  padding: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 640px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 64px 0 40px;
  background: var(--gray-50);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--gray-700);
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1000px;
  height: 75vh;
  max-height: 720px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 18px;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* Auth view (signin/signup) */
.modal-auth {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.modal-auth.hidden {
  display: none;
}

.modal-auth img {
  height: 28px;
  width: auto;
  margin-bottom: 32px;
}

.modal-auth h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.modal-auth p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 32px;
  text-align: center;
}

.auth-form {
  width: 100%;
  max-width: 360px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--coral);
}

.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-divider {
  text-align: center;
  margin: 24px 0;
  font-size: 12px;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

.auth-toggle {
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-500);
  margin-top: 24px;
}

.auth-toggle a {
  color: var(--coral);
  font-weight: 500;
  cursor: pointer;
}

/* Account view */
.modal-account {
  width: 100%;
  display: none;
}

.modal-account.open {
  display: flex;
}

.account-sidebar {
  width: 240px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 24px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.account-sidebar-user {
  padding: 0 20px 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.account-sidebar-user .email {
  font-size: 12.5px;
  color: var(--gray-700);
  font-weight: 500;
  word-break: break-all;
}

.account-sidebar-user .plan {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-top: 4px;
  padding: 0;
  border: none;
  background: transparent;
}

.sidebar-group {
  margin-bottom: 12px;
}

.sidebar-group-title {
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.1s ease;
  font-weight: 500;
}

.sidebar-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.sidebar-item.active {
  background: var(--white);
  color: var(--coral);
  border-left-color: var(--coral);
}

.sidebar-item-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  width: 14px;
}

.sidebar-item.active .sidebar-item-icon {
  color: var(--coral);
}

.account-content {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.account-section-header {
  margin-bottom: 24px;
}

.account-section-header h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.account-section-header p {
  font-size: 13.5px;
  color: var(--gray-500);
}

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.stat-meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Key display */
.key-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--gray-50);
}

.key-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.key-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  font-weight: 500;
}

.key-block-actions {
  display: flex;
  gap: 6px;
}

.key-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 12px;
  word-break: break-all;
  user-select: all;
}

.key-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gray-500);
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.chip {
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--gray-500);
}

.chip.active {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

/* Receipt table */
.receipts-table {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.receipt-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px 60px;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 12.5px;
  align-items: center;
  cursor: pointer;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row:hover {
  background: var(--gray-50);
}

.receipt-row.head {
  background: var(--gray-50);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  cursor: default;
}

.receipt-row.head:hover {
  background: var(--gray-50);
}

.receipt-time {
  font-family: var(--font-mono);
  color: var(--gray-500);
}

.receipt-target {
  font-family: var(--font-mono);
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-type {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral);
}

.receipt-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}

.receipt-status.error {
  color: var(--red);
}

/* Usage chart */
.chart {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 16px;
}

.bar {
  flex: 1;
  background: var(--coral-soft);
  border-radius: 2px 2px 0 0;
  position: relative;
  transition: background 0.15s ease;
}

.bar:hover {
  background: var(--coral);
}

.bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral);
  border-radius: 2px 2px 0 0;
  height: var(--filled, 0%);
  bottom: 0;
  top: auto;
  width: 100%;
}

/* Billing table */
.billing-table {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-top: 20px;
}

.billing-row {
  display: grid;
  grid-template-columns: 120px 1fr 100px 80px;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  align-items: center;
}

.billing-row:last-child {
  border-bottom: none;
}

.billing-row.head {
  background: var(--gray-50);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.billing-row .mono {
  font-size: 12px;
  color: var(--gray-700);
}

/* Verify page */
.verify-hero {
  padding: 80px 0 48px;
}

.verify-textarea {
  width: 100%;
  min-height: 240px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--gray-900);
  resize: vertical;
}

.verify-textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
}

.verify-result {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  display: none;
}

.verify-result.shown {
  display: block;
}

.verify-result.valid {
  background: #ECFDF5;
  border-color: var(--green);
}

.verify-result.invalid {
  background: #FEF2F2;
  border-color: var(--red);
}

.verify-result h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.verify-result.valid h3 { color: #065F46; }
.verify-result.invalid h3 { color: #991B1B; }

.verify-details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 13px;
  margin-top: 12px;
}

.verify-details dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.verify-details dd {
  font-family: var(--font-mono);
  color: var(--gray-900);
  word-break: break-all;
}

/* Docs page */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.docs-sidebar h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 12px;
  margin-top: 24px;
}

.docs-sidebar h4:first-child {
  margin-top: 0;
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 4px;
}

.docs-sidebar a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--gray-700);
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}

.docs-sidebar a:hover {
  color: var(--coral);
}

.docs-sidebar a.active {
  color: var(--coral);
  border-left-color: var(--coral);
}

.docs-content {
  max-width: 720px;
}

.docs-content h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.docs-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--gray-900);
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.docs-content h2:first-child,
.docs-content h1 + h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.docs-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.docs-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.docs-content pre {
  background: var(--gray-900);
  color: #E4E4E7;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 16px 0 24px;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--coral);
}

.docs-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 12.5px;
}

.docs-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 6px;
}

/* Legal page */
.legal {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.legal p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-title { font-size: 38px; }
  .section-title { font-size: 28px; }
  .slide,
  .thesis-grid,
  .product,
  .pricing-grid,
  .footer-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .product:nth-child(even) .product-info {
    order: 0;
  }
  .nav-links { display: none; }
  .account-sidebar { width: 200px; }
  .stats { grid-template-columns: 1fr; }
  .modal { height: 90vh; }
}
