:root {
  --color-brand-blue: #1581c6;
  --color-brand-blue-glow: rgba(21, 129, 198, 0.15);
  --color-brand-green: #10b981;
  --color-brand-green-hover: #059669;
  
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-accent: var(--color-brand-blue);
  --color-glow: var(--color-brand-blue-glow);
  
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;
  
  --rad-sm: 4px;
  --rad-md: 8px;
  --rad-lg: 16px;
  --rad-xl: 32px;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Base Typo */
h1, h2, h3, h4, .st-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.st-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.st-text-gradient {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Beta Banner ── */
.beta-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--color-brand-blue);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.beta-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.beta-banner-content {
  color: white;
  font-size: 0.9375rem;
  text-align: center;
}

.beta-banner-content strong {
  font-weight: 600;
}

.beta-banner-link {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.beta-banner-link:hover {
  opacity: 0.85;
}

.beta-banner-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.beta-banner-close:hover {
  opacity: 1;
}

.beta-banner-close svg {
  width: 20px;
  height: 20px;
}

/* Adjust nav when banner is visible */
body.banner-visible .st-nav {
  top: 44px;
}

body.banner-visible .st-mobile-menu {
  padding-top: 44px;
}

body.banner-visible .st-hero {
  padding-top: 12rem;
}

@media (max-width: 768px) {
  .beta-banner {
    padding: 0.625rem 3rem 0.625rem 1rem;
  }
  .beta-banner-content {
    font-size: 0.875rem;
  }
  body.banner-visible .st-hero {
    padding-top: 10rem;
  }
}

/* Navigation */
.st-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.st-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.st-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.st-logo-icon {
  height: 48px;
  width: auto;
}

.st-nav-links {
  display: flex;
  gap: 2.5rem;
}

.st-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.st-nav-link:hover {
  color: var(--color-text-primary);
}

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

/* Buttons */
.st-btn-primary, .st-btn-outline, .st-btn-ghost, .st-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--rad-xl);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.st-btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.st-btn-primary {
  background: var(--color-text-primary);
  color: #fff;
}

.st-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: #000;
}

/* New Green CTA */
.st-btn-green {
  background: var(--color-brand-green);
  color: white;
  border: none;
}
.st-btn-green:hover {
  background: var(--color-brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.st-btn-outline {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.st-btn-outline:hover {
  background: var(--color-bg);
  border-color: #cbd5e1;
}

.st-btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.st-btn-ghost:hover {
  color: var(--color-text-primary);
}

/* Hero */
.st-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 2rem;
  text-align: center;
  overflow: hidden;
}

.st-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-glow) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.st-hero-content {
  max-width: 900px;
  z-index: 10;
}

.st-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.st-h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.st-lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

.st-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.st-hero-actions .st-btn-lg {
  white-space: nowrap;
}

/* Stack before the 2+1 wrap zone */
@media (max-width: 740px) {
  .st-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Sections */
.st-section {
  padding: var(--space-2xl) 0;
}

.st-section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.st-h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.st-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats */
.st-stats-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-xl) 0;
}

.st-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.st-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.st-stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Bento Grid */
.st-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
}

.st-bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--rad-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.st-bento-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 100% 0%, var(--color-brand-blue-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.st-bento-card:hover::after {
  opacity: 1;
}

.st-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.st-bento-card-icon {
  position: relative;
  z-index: 2;
  color: var(--color-brand-blue);
  width: 56px !important;
  height: 56px !important;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--rad-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-bento-card:hover .st-bento-card-icon {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--color-brand-blue);
  background: var(--color-brand-blue-glow);
  color: var(--color-brand-blue);
  box-shadow: 0 10px 25px rgba(21, 129, 198, 0.15);
}

.st-bento-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.st-bento-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.st-bento-content p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.5;
}

.st-card-large {
  grid-column: span 8;
  background: linear-gradient(180deg, rgba(248,250,252,0) 0%, var(--color-surface) 100%);
}

.st-card-visual {
  grid-column: span 4;
}

.st-card-half-l {
  grid-column: span 6;
}

.st-card-half-r {
  grid-column: span 6;
}

.st-card-omni {
  grid-column: span 12;
  min-height: 280px;
}

/* Formats Grid */
.st-formats-section {
  padding-top: 0;
}

.st-formats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.st-format-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--rad-lg);
  padding: 2.5rem 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.st-format-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--format-glow, rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: var(--rad-lg);
}

.st-format-card:hover {
  transform: translateY(-5px);
  border-color: var(--format-color, #cbd5e1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.st-format-card:hover::before {
  opacity: 1;
}

.st-format-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rad-lg);
  margin-bottom: 1.25rem;
  color: var(--format-color);
  background: var(--format-bg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-format-card:hover .st-format-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 25px var(--format-glow-shadow, rgba(0,0,0,0.1));
}

.st-format-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.st-format-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.st-format-card[data-format="pdf"] {
  --format-color: #ef4444;
  --format-bg: rgba(239, 68, 68, 0.1);
  --format-glow: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  --format-glow-shadow: rgba(239, 68, 68, 0.2);
}

.st-format-card[data-format="word"] {
  --format-color: #3b82f6;
  --format-bg: rgba(59, 130, 246, 0.1);
  --format-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  --format-glow-shadow: rgba(59, 130, 246, 0.2);
}

.st-format-card[data-format="ppt"] {
  --format-color: #f97316;
  --format-bg: rgba(249, 115, 22, 0.1);
  --format-glow: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
  --format-glow-shadow: rgba(249, 115, 22, 0.2);
}

.st-format-card[data-format="img"] {
  --format-color: #8b5cf6;
  --format-bg: rgba(139, 92, 246, 0.1);
  --format-glow: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  --format-glow-shadow: rgba(139, 92, 246, 0.2);
}

.st-format-card[data-format="csv"] {
  --format-color: #10b981;
  --format-bg: rgba(16, 185, 129, 0.1);
  --format-glow: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  --format-glow-shadow: rgba(16, 185, 129, 0.2);
}

.st-format-card[data-format="txt"] {
  --format-color: #64748b;
  --format-bg: rgba(100, 116, 139, 0.1);
  --format-glow: radial-gradient(circle at 50% 0%, rgba(100, 116, 139, 0.05) 0%, transparent 70%);
  --format-glow-shadow: rgba(100, 116, 139, 0.2);
}

/* Split Section (How it works & Use cases mix) */
.st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.st-timeline {
  list-style: none;
  margin-top: 3rem;
}

.st-timeline li {
  margin-bottom: 2.5rem;
  padding-left: 2rem;
  position: relative;
}

.st-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -3.5rem;
  width: 1px;
  background: var(--color-border);
}

.st-timeline li:last-child::before {
  display: none;
}

.st-timeline-marker {
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 4px var(--color-brand-blue-glow);
}

.st-timeline li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.st-timeline li p {
  color: var(--color-text-secondary);
}

.st-glass-pane {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--rad-lg);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.st-code-line {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.st-code-icon {
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--color-brand-blue);
}
.st-code-text h4 {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.st-code-text p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* CTA */
.st-cta {
  text-align: center;
  padding: 8rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Footer */
.st-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
  background: var(--color-bg);
}

.st-footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.st-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.st-brand img {
  height: 40px;
}

.st-legal {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  max-width: 300px;
}

.st-footer-links {
  display: flex;
  gap: 3rem;
}

.st-footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.st-footer-col a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

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

/* Noise overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* responsive */
@media (max-width: 1024px) {
  .st-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .st-card-large, .st-card-visual, .st-card-half-l, .st-card-half-r, .st-card-omni {
    grid-column: span 1;
    min-height: 300px;
  }
  .st-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .st-stats-grid {
    grid-template-columns: 1fr;
  }
  .st-footer-flex {
    flex-direction: column;
    gap: 3rem;
  }
  .st-formats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .st-formats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile Navigation ────────────────────── */
.st-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.st-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.st-mobile-menu {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.st-mobile-menu.active {
  display: flex !important;
}

.st-mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.75rem 1.5rem;
  transition: color 0.2s ease;
}

.st-mobile-menu a:hover {
  color: var(--color-text-primary);
}

.st-mobile-menu .st-btn-primary {
  margin-top: 1rem;
  color: #fff;
}

/* Nav: hamburger at a wider breakpoint than general layout so many links + CTAs do not wrap */
@media (max-width: 1280px) {
  .st-nav-links {
    display: none;
  }
  .st-nav-toggle {
    display: flex;
  }
  .st-nav-actions {
    display: none;
  }
}
