﻿/* ==============================
   星火工坊 - 智能API平台
   Style: 冷色专业风
   ============================== */

:root {
  /* Primary palette */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-bg-card: #FFFFFF;
  --color-text: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-muted: #718096;

  /* Brand colors */
  --color-primary: #2B6CB0;
  --color-primary-hover: #1A56A0;
  --color-primary-light: #EBF4FF;
  --color-primary-subtle: rgba(43, 108, 176, 0.08);
  --color-accent: #4C51BF;
  --color-accent-hover: #3C41A0;
  --color-accent-light: #EBF0FF;

  /* Utility */
  --color-border: #E2E8F0;
  --color-success: #38A169;
  --color-warning: #DD6B20;
  --color-error: #E53E3E;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1320px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   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);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==============================
   Typography
   ============================== */

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==============================
   Buttons
   ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

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

.btn-ghost:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==============================
   Section Shared Styles
   ============================== */

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==============================
   Navbar
   ============================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #E2E8F0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #2563EB;
  background: #F1F5F9;
}

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

.btn-register-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #4C51BF;
  color: #4C51BF;
  background: transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.5;
}
.btn-register-nav:hover {
  background: #4C51BF;
  color: #fff;
  box-shadow: 0 4px 14px rgba(76, 81, 191, 0.3);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

/* ==============================
   Hero Section
   ============================== */

.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(180deg, #F7F8FA 0%, #FFFFFF 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  bottom: -100px;
  left: -100px;
}

.hero-container {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary-light);
  border: 1px solid rgba(43, 108, 176, 0.15);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

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

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  max-width: 650px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* ==============================
   Features Section
   ============================== */

.features {
  background: var(--color-bg-alt);
}

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

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--color-primary-subtle);
  color: var(--icon-color, var(--color-primary));
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ==============================
   Products Section
   ============================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-card-header p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.product-icon svg {
  width: 24px;
  height: 24px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.product-badge {
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.product-badge-new {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
}

/* ==============================
   Docs Section
   ============================== */

.docs {
  background: var(--color-bg-alt);
}

.docs-content {
  max-width: 800px;
  margin: 0 auto;
}

.docs-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.docs-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.docs-tab:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.docs-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.docs-panels {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
}

.docs-panel {
  display: none;
}

.docs-panel.active {
  display: block;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.panel-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.code-block {
  background: #1A202C;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

.code-copy {
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: var(--transition);
}

.code-copy:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: var(--font-mono);
  color: #E2E8F0;
}

.code-block code {
  font-family: inherit;
}

.integration-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ==============================
   Pricing Section
   ============================== */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.toggle-label.active {
  color: var(--color-text);
  font-weight: 600;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--color-primary);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.toggle-switch.active .toggle-thumb {
  left: 25px;
}

.toggle-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #C6F6D5, #9AE6B4);
  color: #276749;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border: 2px solid var(--color-primary);
  position: relative;
  box-shadow: 0 8px 30px rgba(43, 108, 176, 0.12);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.375rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 1.5rem;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.pricing-amount {
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.period {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pricing-features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  color: var(--color-success);
}

/* ==============================
   FAQ Section
   ============================== */

.faq {
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

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

.faq-arrow {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  transition: var(--transition);
  color: var(--color-text-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

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

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

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

/* ==============================
   CTA Section
   ============================== */

.cta-card {
  background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==============================
   Footer
   ============================== */

.footer {
  background: #1A202C;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.375rem 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ==============================
   Modal
   ============================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: var(--color-bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

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

.modal-header {
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

/* ==============================
   Responsive - Tablet
   ============================== */

@media (max-width: 1024px) {
  .features-grid,
  .products-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ==============================
   Responsive - Mobile
   ============================== */

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(72px + 220px);
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    padding: 0 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .hide-mobile {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-grid,
  .products-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured {
    transform: none;
  }

  .docs-tabs {
    flex-wrap: wrap;
  }

  .docs-tab {
    flex: none;
    width: calc(50% - 0.125rem);
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .cta-card {
    padding: 3rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

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

  .pricing-toggle {
    flex-wrap: wrap;
  }
}

/* ==============================
   Responsive - Small Mobile
   ============================== */

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}



/* ==============================
   Nav & Tab Styles (moved from index.html inline)
   ============================== */

.nav-key-btn {
      display: inline-flex; align-items: center; gap: 0.375rem;
      padding: 0.375rem 0.65rem; font-size: 0.75rem; font-weight: 600;
      color: #2563EB; border: 1px solid #BFDBFE; background: #EFF6FF;
      border-radius: 8px; cursor: pointer; white-space: nowrap;
      transition: all 0.2s;
    }
    .nav-key-btn:hover { background: #DBEAFE; border-color: #93C5FD; }
    .nav-key-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
    .nav-balance-btn {
      display: inline-flex; align-items: center; gap: 0.375rem;
      font-size: 0.875rem; font-weight: 500; color: #475569;
      border: none; background: none; cursor: pointer; padding: 0.375rem 0.5rem;
      border-radius: 6px; transition: all 0.2s;
    }
    .nav-balance-btn:hover { color: #0F172A; }
    .nav-balance-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
    .nav-user {
      position: relative; display: flex; align-items: center; gap: 0.625rem;
    }
    .nav-user-trigger {
      display: flex; align-items: center; gap: 0.5rem;
      padding: 0.375rem 0.5rem; border-radius: 8px; cursor: pointer;
      transition: background 0.15s;
    }
    .nav-user-trigger:hover { background: #F1F5F9; }
    .nav-user-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      background: #0F172A; color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8125rem; font-weight: 700;
    }
    .nav-user-name { font-size: 0.875rem; font-weight: 500; color: #475569; white-space: nowrap; }
    .nav-user-arrow { color: #94A3B8; transition: transform 0.2s; }
    .nav-user-trigger:hover .nav-user-arrow { transform: rotate(180deg); }
    .nav-user-dropdown {
      position: absolute; top: 100%; right: 0; margin-top: 0.25rem;
      background: #fff; border-radius: 12px; padding: 0.375rem;
      box-shadow: 0 10px 40px rgba(0,0,0,0.12); min-width: 150px;
      display: none; z-index: 100;
    }
    .nav-user-trigger:hover + .nav-user-dropdown,
    .nav-user-dropdown:hover { display: block; }
    .dropdown-item {
      display: block; padding: 0.5rem 0.75rem; border-radius: 8px;
      font-size: 0.875rem; color: #475569; text-decoration: none;
      transition: background 0.15s;
    }
    .dropdown-item:hover { background: #F1F5F9; color: #2563EB; }
    .dropdown-item-danger { color: #DC2626; }
    .dropdown-item-danger:hover { background: #FEF2F2; color: #DC2626; }
    .dropdown-divider { height: 1px; background: #E2E8F0; margin: 0.25rem 0; }

    /* Tab Navigation */
    .nav-tabs {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
    .nav-tab {
      position: relative;
      padding: 0.625rem 1rem;
      font-size: 1rem;
      font-weight: 600;
      color: #64748B;
      cursor: pointer;
      white-space: nowrap;
      transition: color 0.2s;
      border: none;
      background: none;
      font-family: inherit;
    }
    .nav-tab:hover {
      color: #2563EB;
    }
    .nav-tab.active {
      color: #2563EB;
    }
    .nav-tab::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2.5px;
      border-radius: 2px;
      background: #2563EB;
      transition: width 0.25s ease, left 0.25s ease;
      transform: translateX(-50%);
    }
    .nav-tab:hover::after {
      width: 70%;
    }
    .nav-tab.active::after {
      width: 80%;
    }
    .nav-tab.active:hover::after {
      width: 80%;
    }

    /* Tab Content Panels */
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* Tab placeholder for non-home tabs */
    .tab-placeholder {
      padding: 6rem 0;
      text-align: center;
    }
    .tab-placeholder h2 {
      font-size: 1.75rem;
      font-weight: 700;
      color: #1E293B;
      margin-bottom: 0.75rem;
    }
    .tab-placeholder p {
      color: #94A3B8;
      font-size: 1rem;
      max-width: 400px;
      margin: 0 auto;
    }
