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

:root {
  --primary: #0069ff;
  --primary-dark: #0050cc;
  --accent: #00c875;
  --dark: #0b1121;
  --dark-light: #131b2e;
  --gray: #8892a4;
  --gray-light: #c8cdd6;
  --light: #f4f6fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { color: var(--gray); }

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

/* ===== Layout ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 0;
}

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

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand span {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}

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

.nav-links .btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-links .btn-nav:hover {
  background: var(--primary-dark);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 105, 255, 0.3);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--light);
  transform: translateY(-1px);
}

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

.btn-accent:hover {
  background: #00b368;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #f4f6fa 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 105, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card .status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}

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

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

.status-text {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  background: var(--light);
  padding: 16px;
  border-radius: 8px;
}

.stat-item .label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-item .value.green { color: var(--accent); }
.stat-item .value.blue { color: var(--primary); }

/* ===== Features ===== */
.features {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.1rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 105, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.blue { background: rgba(0, 105, 255, 0.1); }
.feature-icon.green { background: rgba(0, 200, 117, 0.1); }
.feature-icon.purple { background: rgba(130, 80, 255, 0.1); }
.feature-icon.orange { background: rgba(255, 150, 50, 0.1); }
.feature-icon.red { background: rgba(255, 80, 80, 0.1); }
.feature-icon.teal { background: rgba(0, 180, 180, 0.1); }

.feature-card h4 {
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.95rem;
}

/* ===== Deployment Models ===== */
.models {
  background: var(--light);
}

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

.model-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.model-card.featured {
  border: 2px solid var(--primary);
}

.model-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
  text-transform: uppercase;
}

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

.model-card .subtitle {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.model-features {
  list-style: none;
  margin-bottom: 32px;
}

.model-features li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--dark);
}

.model-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.model-card .price-from {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.model-card .price-from strong {
  font-size: 1.75rem;
  color: var(--dark);
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  z-index: 0;
}

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

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0, 105, 255, 0.3);
}

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

.step p {
  font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: var(--gray-light);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  margin: 0 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 60px 0 30px;
}

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

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--primary);
}

.footer p {
  font-size: 0.9rem;
  color: var(--gray);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

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

/* ===== Pricing Page Styles ===== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #f4f6fa 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 550px;
  margin: 0 auto;
}

/* Currency toggle */
.currency-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.currency-toggle span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
}

.currency-toggle span.active {
  color: var(--dark);
}

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

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.usd::after {
  transform: translateX(22px);
}

/* Pricing section */
.pricing-section {
  padding: 60px 0 80px;
}

.pricing-section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.pricing-section > .container > p {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

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

.pricing-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

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

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.pricing-card .plan-desc {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.price {
  margin-bottom: 24px;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
}

.price .period {
  font-size: 0.95rem;
  color: var(--gray);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #4a5568;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

/* Enterprise card */
.enterprise-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
  color: var(--white);
}

.enterprise-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.enterprise-card p {
  color: var(--gray-light);
  max-width: 500px;
}

.enterprise-features {
  list-style: none;
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.enterprise-features li {
  color: var(--gray-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.enterprise-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* Add-Ons */
.addons {
  background: var(--light);
}

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

.addon-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.addon-card h4 {
  margin-bottom: 4px;
}

.addon-card .addon-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.addon-card p {
  font-size: 0.88rem;
}

/* FAQ */
.faq {
  background: var(--white);
}

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

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

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

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

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 450px; margin: 0 auto; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 24px; }
  .enterprise-card { flex-direction: column; text-align: center; }
  .enterprise-features { justify-content: center; }
  .addons-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  section { padding: 56px 0; }

  .nav-links { display: none; }
  .menu-toggle { display: block; }

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