/* ==========================================================================
   VIBE CODING — MODERN LIGHT MODE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette (Clean Modern Light) */
  --bg-primary: #ffffff;
  --bg-secondary: #fff8f1;
  --bg-tertiary: #ffeddc;
  --bg-card: rgba(255, 255, 255, 0.85);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-highlight: #ffc295;

  --accent-orange-rgb: 199, 71, 0;
  --accent-primary: rgb(var(--accent-orange-rgb));
  --accent-primary-hover: #a63800;
  --accent-secondary: #e46100;
  --accent-mint: #059669;
  --accent-glow: rgba(var(--accent-orange-rgb), 0.12);

  --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --gradient-subtle: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  --gradient-card: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: 'Pretendard', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', monospace;

  /* Layout */
  --container-max: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Background Ambient Visuals */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.glow-1 {
  top: -150px;
  left: 20%;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(254, 215, 170, 0.08) 70%, transparent 100%);
}

.glow-2 {
  top: 35%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, rgba(253, 186, 116, 0.04) 65%, transparent 100%);
}

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

/* Text Styles */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Common Section Headers */
.section {
  padding: 110px 0;
  position: relative;
}

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

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-block;
  margin-bottom: 12px;
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--accent-orange-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-orange-rgb), 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 100;
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.header-container > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.875rem;
}

.accent-text {
  color: var(--accent-primary);
  margin-left: 2px;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.highlight-nav {
  color: var(--accent-primary) !important;
  font-weight: 700 !important;
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-divider {
  color: var(--border-strong);
}

.badge-highlight {
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
  word-break: keep-all;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

/* Hero Terminal Visual Card */
.hero-card-wrapper {
  width: 100%;
  max-width: 960px;
  perspective: 1000px;
}

.terminal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  text-align: left;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mac-buttons {
  display: flex;
  gap: 7px;
}

.mac-buttons .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-title-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-mint);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.card-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 270px;
}

.prompt-pane {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  background: #fffaf5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pane-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.typing-box {
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.prompt-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 500;
  position: relative;
}

.prompt-footer {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.result-pane {
  padding: 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-preview-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mini-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.mini-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.mini-pill {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mini-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.mini-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.card-thumb {
  height: 48px;
  border-radius: 5px;
  margin-bottom: 8px;
}

.thumb-warm {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.thumb-cool {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.card-line-strong {
  height: 6px;
  width: 70%;
  background: #94a3b8;
  border-radius: 3px;
  margin-bottom: 4px;
}

.card-line-weak {
  height: 4px;
  width: 45%;
  background: #cbd5e1;
  border-radius: 2px;
}

.generation-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Concept Section
   ========================================================================== */
.concept-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.quote-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  max-width: 860px;
  margin: 0 auto 64px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent-glow);
  position: absolute;
  top: 14px;
  left: 20px;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Spring Bounce Keyframe & Card Elastic Animation */
@keyframes cardSpring {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-15px) scale(1.025, 0.985);
  }
  52% {
    transform: translateY(-5px) scale(0.99, 1.015);
  }
  72% {
    transform: translateY(-11px) scale(1.01, 0.995);
  }
  88% {
    transform: translateY(-8px) scale(0.997, 1.003);
  }
  100% {
    transform: translateY(-9px) scale(1.01, 1.01);
  }
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  animation: cardSpring 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  box-shadow: 0 20px 30px -10px rgba(var(--accent-orange-rgb), 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--border-highlight);
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: transform var(--transition-fast);
}

.feature-card:hover .icon-box {
  transform: scale(1.1);
  background: var(--accent-glow);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */
.comparison-section {
  background: #ffffff;
}

.comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.col-traditional {
  color: var(--text-muted);
}

.col-vibe {
  background: #fff7ed !important;
  color: var(--accent-primary) !important;
  border-left: 1px solid var(--border-highlight);
}

.row-label {
  font-weight: 600;
  color: var(--text-secondary);
  background: #fbfcfe;
  width: 140px;
}

.vibe-highlight {
  background: #fffaf5;
  font-weight: 600;
  color: var(--accent-primary);
  border-left: 1px solid #ffedd5;
}

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

/* ==========================================================================
   Interactive Playground Section
   ========================================================================== */
.playground-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.playground-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.vibe-selector {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.selector-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vibe-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vibe-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.vibe-btn:hover {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.vibe-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(var(--accent-orange-rgb), 0.28);
}

.playground-display {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

.display-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.copy-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.panel-body {
  padding: 24px;
  flex: 1;
}

.live-prompt-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  font-weight: 500;
  position: relative;
}

.panel-footer {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Live Simulation Sandbox Styles inside Preview Panel */
.live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.sim-container {
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Workflow Section
   ========================================================================== */
.workflow-section {
  background: #ffffff;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.step-card:hover {
  animation: cardSpring 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  box-shadow: 0 20px 30px -10px rgba(var(--accent-orange-rgb), 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--border-highlight);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
}

.step-visual {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 1.5rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-arrow {
  font-size: 1.75rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ==========================================================================
   Recommended Tools Section
   ========================================================================== */
.tools-section {
  background: var(--bg-secondary);
}

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

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.tool-card:hover {
  animation: cardSpring 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  box-shadow: 0 20px 30px -10px rgba(var(--accent-orange-rgb), 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--border-highlight);
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.tool-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tool-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-glow);
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tool-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: #ffffff;
}

.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  padding: 0 26px 24px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */
.cta-banner-section {
  padding: 60px 0 100px;
  background: #ffffff;
}

.cta-card {
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.cta-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 16px;
  display: inline-block;
}

.cta-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 40px 0;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .features-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .playground-display {
    grid-template-columns: 1fr;
  }

  .card-content-grid {
    grid-template-columns: 1fr;
  }

  .prompt-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 1130px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    gap: 18px;
  }

  .nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-container {
    gap: 8px;
    padding-inline: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

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

  .comparison-table-wrapper {
    overflow-x: auto;
  }

  .playground-box {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .header-container .logo {
    gap: 6px;
    font-size: 1rem;
  }

  .header-actions .btn {
    padding-inline: 10px;
  }
}
