/* Otter OS landing page — palette mirrors the plugin panel tokens in src/ui/theme.ts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #0c0c0e;
  --bg-card: rgba(33, 33, 38, 0.75);
  --bg-card-solid: #212126;
  --bg-card-hover: #25252b;
  --bg-elevated: #1c1c20;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  --border-accent: rgba(2, 132, 199, 0.3);

  /* Brand Accents — C.accent / C.accentGradient / C.warning / C.negative */
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-deep: #0284c7;
  --accent-deep-glow: rgba(2, 132, 199, 0.3);
  --warning: #f0c674;
  --warning-dark: #c9963f;
  --accent-bright: #00f2fe;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --accent-ink: #031726;
  --positive: #4ade80;
  --negative: #f08a7a;

  /* Typography */
  --text-main: #f1f1f5;
  --text-muted: #94949e;
  --text-dim: #6c6c77;
  --font-sans: 'Instrument Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --container-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Noise & Radial Gradients */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(240, 198, 116, 0.08) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  z-index: -2;
  pointer-events: none;
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(12, 12, 14, 0.8);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
  box-shadow: 0 0 16px var(--accent-glow);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--accent-ink);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-accent-deep {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-deep-glow);
}

.btn-accent-deep:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--warning);
  color: var(--accent-ink);
}

.btn-warning:hover {
  background: #f5d894;
  transform: translateY(-2px);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

/* solid like its siblings — an outlined middle pill reads as a weaker tier */
.pill-accent-deep {
  background: var(--accent-deep);
  color: #ffffff;
}

.pill-warning {
  background: var(--warning);
  color: var(--accent-ink);
}

/* Header Announcement Banner */
.hero-banner {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title span.accent-text {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-title span.accent-deep-text {
  color: var(--warning);
  text-shadow: 0 0 30px rgba(240, 198, 116, 0.22);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Header Category Grid Banner (Inspired by reference image top block) */
.hero-tags-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.tag-card {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-light);
}

.tag-card.active-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
}

/* Interactive Figma Simulator Section */
.simulator-section {
  margin-bottom: 100px;
}

.sim-window {
  background: #18181b;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(2, 132, 199, 0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 600px;
}

@media (max-width: 900px) {
  .sim-window {
    grid-template-columns: 1fr;
  }
}

/* Simulator Sidebar (Plugin Panel) */
.sim-sidebar {
  background: #1c1c20;
  border-right: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sim-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.sim-plugin-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.sim-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-weight: 600;
}

.sim-prompt-box {
  background: #141416;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.sim-prompt-box label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sim-prompt-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: none;
  outline: none;
  min-height: 70px;
}

.sim-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.sim-run-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-gradient);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sim-run-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.sim-logs {
  margin-top: 20px;
  flex-grow: 1;
  background: #0e0e10;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-y: auto;
  max-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-step {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.log-step.done {
  color: var(--accent);
}

.log-step.running {
  color: var(--warning);
}

/* Simulator Canvas Area */
.sim-canvas {
  background: #101012;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sim-canvas-bar {
  height: 42px;
  background: #1a1a1e;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.canvas-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sim-viewport {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.figma-frame-mockup {
  background: #18181b;
  border: 2px solid #0284c7;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  position: relative;
}

.frame-selection-tag {
  position: absolute;
  top: -26px;
  left: -2px;
  background: #0284c7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px 4px 0 0;
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Architecture Section */
.architecture-section {
  padding: 80px 0;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.pipe-step {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 120px;
  position: relative;
  transition: all 0.3s ease;
}

.pipe-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.pipe-step .step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pipe-step .step-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.pipe-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-card.accent-deep-accent .feature-icon {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-deep);
  border-color: rgba(2, 132, 199, 0.2);
}

.feature-card.warning-accent .feature-icon {
  background: rgba(240, 198, 116, 0.1);
  color: var(--warning);
  border-color: rgba(240, 198, 116, 0.2);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* DSL Code Visualizer Section */
.dsl-section {
  padding: 80px 0;
}

.dsl-container {
  background: #121214;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.dsl-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1b1b1f;
  border-bottom: 1px solid var(--border-light);
  padding: 0 20px;
}

.dsl-tabs {
  display: flex;
  gap: 4px;
}

.dsl-tab {
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.dsl-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

.code-viewer {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #dcdce2;
  overflow-x: auto;
  max-height: 400px;
}

.code-keyword { color: #f08a7a; }
.code-string { color: #4facfe; }
.code-number { color: #e5b85c; }
.code-key { color: #38bdf8; }

/* Social Proof Banner (warm amber card — the one warm beat in a cyan palette) */
.social-proof-banner {
  margin: 100px 0;
  background: var(--warning);
  color: var(--accent-ink);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.social-proof-banner h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.social-proof-banner p {
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto 32px;
  color: #1c1c20;
}

.avatars-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -10px;
  margin-bottom: 24px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--warning);
  background: #18181b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: -10px;
}

/* Connection Modes Cards */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.mode-card.active-mode {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.mode-badge {
  align-self: flex-start;
  margin-bottom: 16px;
}

/* Pricing Grid Section */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.highlight-accent-deep {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.15) 0%, var(--bg-card-solid) 100%);
  border: 2px solid var(--accent-deep);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.25);
}

.pricing-card.highlight-warning {
  background: linear-gradient(180deg, rgba(240, 198, 116, 0.15) 0%, var(--bg-card-solid) 100%);
  border: 2px solid var(--warning);
  box-shadow: 0 20px 40px rgba(240, 198, 116, 0.25);
}

.plan-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

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

.plan-features {
  list-style: none;
  margin: 24px 0 36px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Footer Section */
.footer {
  background: #08080a;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-banner {
  background: var(--accent);
  color: #031726;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-bottom: 60px;
}

.footer-banner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Animation Keyframes */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.glow-effect {
  animation: pulseGlow 4s infinite ease-in-out;
}
