/* ============================================
   NovusOne Marketing Site — Premium SaaS Theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --bg-card-hover: #1e2642;
  --bg-surface: #0f1629;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.15);
  --accent-glow-strong: rgba(6, 182, 212, 0.3);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-hero: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-accent: rgba(6, 182, 212, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #0891b2;
  --accent-light: #06b6d4;
  --accent-dark: #0e7490;
  --accent-glow: rgba(6, 182, 212, 0.08);
  --accent-glow-strong: rgba(6, 182, 212, 0.15);
  --gradient-hero: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-accent: rgba(6, 182, 212, 0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.06);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .nav {
  background: rgba(248, 250, 252, 0.85);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .api-demo {
  background: #1e293b;
}

[data-theme="light"] .api-demo pre {
  color: #cbd5e1;
}

[data-theme="light"] .logo-strip {
  opacity: 0.5;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  margin-left: 4px;
}

.theme-toggle:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-glow);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

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

.zoomable-image {
  cursor: zoom-in;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.zoomable-image:hover {
  transform: scale(1.01);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-img {
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-card);
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(17, 24, 39, 0.85);
  color: var(--text-primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(30, 38, 66, 0.95);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.15rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 16px;
}

.btn-ghost:hover {
  background: var(--accent-glow);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--nav-height) + 64px) 0 56px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-product {
  width: min(100%, 1080px);
  margin: 56px auto 0;
}

.hero-product-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  background: rgba(10, 14, 26, 0.78);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .hero-product-frame {
  background: rgba(255, 255, 255, 0.86);
}

.hero-product-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.08), transparent);
  pointer-events: none;
}

.hero-product-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
  object-position: top left;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.hero-proof-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 22px;
  list-style: none;
  text-align: left;
}

.hero-proof-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-proof-list strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.hero-proof-list span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* --- Social Proof --- */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.social-proof-inner {
  text-align: center;
}

.social-proof p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.4;
}

.logo-strip .logo-placeholder {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* --- Workflow Proof --- */
.workflow-proof {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.workflow-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.workflow-proof-copy h2 {
  margin-bottom: 20px;
}

.workflow-proof-copy p {
  margin-bottom: 28px;
}

.workflow-timeline {
  display: grid;
  gap: 18px;
  list-style: none;
  counter-reset: workflow-step;
}

.workflow-timeline li {
  position: relative;
  padding-left: 46px;
  counter-increment: workflow-step;
}

.workflow-timeline li::before {
  content: counter(workflow-step);
  position: absolute;
  top: 2px;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
}

.workflow-timeline strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.workflow-timeline span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.workflow-proof-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.workflow-shot {
  min-width: 0;
}

.workflow-shot-large {
  grid-column: 1 / -1;
}

.workflow-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.workflow-shot figcaption {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.3rem;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Answer Blocks --- */
.entity-summary {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.answer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.answer-card h3 {
  margin-bottom: 10px;
}

.answer-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.ecosystem-note {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 70%);
}

.ecosystem-note h3 {
  font-size: 1.25rem;
}

.ecosystem-note p {
  font-size: 0.98rem;
  margin: 0;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--border-accent), var(--accent));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Pricing Teaser --- */
.pricing-teaser {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-teaser-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-teaser-inner .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.pricing-teaser-inner .price span {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* --- Resource Articles --- */
.resource-hero p {
  max-width: 780px;
}

.resource-section-wrap {
  padding-top: 80px;
}

.resource-article {
  max-width: 900px;
}

.resource-intro {
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.resource-intro p,
.resource-section p,
.resource-explore p {
  font-size: 1.08rem;
  line-height: 1.8;
}

.resource-intro p + p,
.resource-section p + p {
  margin-top: 18px;
}

.resource-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.resource-section h2,
.resource-explore h2 {
  margin-bottom: 22px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 28px 0;
  padding: 28px 32px 28px 52px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.resource-list li {
  padding-left: 4px;
  line-height: 1.55;
}

.resource-list li::marker {
  color: var(--accent);
}

.resource-product-context {
  margin-top: 52px;
  padding: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
}

.resource-positioning {
  color: var(--text-primary);
  font-weight: 700;
}

.resource-explore {
  margin-top: 64px;
  padding: 44px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.resource-explore p {
  max-width: 720px;
  margin: 0 auto;
}

.resource-explore a {
  font-weight: 600;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-slow);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pricing-card .price-display {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 16px 0;
  min-height: 4.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 4px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.pricing-card .price-display span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card .price-summary {
  min-height: 2.75rem;
}

.pricing-card .price-capacity {
  min-height: 1.45rem;
}

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

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-features li.disabled::before {
  content: '—';
  color: var(--text-muted);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* --- Feature Deep Dive --- */
.feature-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-section:last-of-type {
  border-bottom: none;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text .section-label {
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.feature-text p {
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.feature-visual-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-muted);
}

.feature-visual-placeholder .icon-large {
  font-size: 4rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* --- Integration Cards --- */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
}

.integration-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.integration-logo {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.integration-logo-text {
  color: var(--accent-light);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.integration-card h3 {
  margin-bottom: 8px;
}

.integration-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* --- API Section --- */
.api-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.api-demo {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}

.api-demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.api-demo-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.api-demo-header .dot:nth-child(1) { background: #ef4444; }
.api-demo-header .dot:nth-child(2) { background: #f59e0b; }
.api-demo-header .dot:nth-child(3) { background: #22c55e; }

.api-demo pre {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.api-demo pre .keyword { color: #c084fc; }
.api-demo pre .string { color: #34d399; }
.api-demo pre .comment { color: var(--text-muted); }
.api-demo pre .method { color: #60a5fa; }
.api-demo pre .url { color: var(--accent-light); }

/* --- About --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Contact / Forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
}

/* --- Beta Page --- */
.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.beta-benefits {
  list-style: none;
}

.beta-benefits li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.beta-benefits li:last-child {
  border-bottom: none;
}

.beta-benefits li .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 16px;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.comparison-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.comparison-table td:first-child {
  color: var(--text-secondary);
}

.comparison-table td:not(:first-child) {
  text-align: center;
  color: var(--text-muted);
}

.comparison-table .check-mark {
  color: var(--accent);
  font-weight: 700;
}

/* --- Animations --- */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid,
  .answer-grid,
  .testimonials-grid,
  .pricing-grid,
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-proof-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-grid .pricing-card:last-child,
  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    justify-self: center;
  }
}


@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.98);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}


@media (max-width: 768px) {

  .features-grid,
  .answer-grid,
  .testimonials-grid,
  .pricing-grid,
  .steps,
  .integration-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: calc(var(--nav-height) + 44px) 0 44px;
  }

  .hero-product {
    margin-top: 40px;
  }

  .hero-product-frame {
    padding: 6px;
  }

  .hero-product-frame img {
    aspect-ratio: 4 / 3;
  }

  .hero-proof-list,
  .ecosystem-note,
  .workflow-proof-gallery {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 64px 0;
  }

  .resource-section-wrap {
    padding-top: 56px;
  }

  .resource-intro,
  .resource-product-context,
  .resource-explore {
    padding: 28px 24px;
  }

  .resource-section {
    padding: 40px 0;
  }

  .resource-list {
    grid-template-columns: 1fr;
    padding: 24px 24px 24px 44px;
  }

  .contact-grid,
  .beta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

.comparison-table {
    display: block;
    overflow-x: auto;
  }
}

.form-alert {
  border-radius: var(--radius-md);
  margin: 0 0 20px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--text-primary);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--text-primary);
}

.form-hp {
  left: -10000px;
  position: absolute;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .features-hero-title {
    font-size: clamp(2.15rem, 9.2vw, 2.35rem);
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}
