/* =====================================================
   Code-Scripts.com — Main Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #06090F;
  --surface: #0D1626;
  --surface2: #111D30;
  --border: #1B2B45;
  --accent: #2563EB;
  --accent2: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --text: #E8F0FF;
  --text-muted: #8899BB;
  --text-dim: #4A5A78;
  --green: #10B981;
  --amber: #F59E0B;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 60px rgba(37, 99, 235, 0.15);
  --navbar-bg: rgba(6, 9, 15, 0.88);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-links a.btn-nav {
  background: var(--accent);
  color: #fff;
  margin-left: 8px;
  padding: 8px 18px;
}

.nav-links a.btn-nav:hover { background: var(--accent2); }

.mobile-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.4rem; cursor: pointer; margin-left: auto;
}

/* Mobile nav open state */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 10px 14px; font-size: .95rem; }
  .nav-links a.btn-nav { margin-left: 0; margin-top: 8px; text-align: center; }
  .lang-switch { order: -1; margin-left: auto; }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

/* ==================== SECTIONS (shared) ==================== */
section { padding: 100px 0; }

.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto 56px; }

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #93B8FF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: left; }

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Code window mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-accent);
  width: 100%;
  max-width: 460px;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-dot-red   { background: #FF5F57; }
.code-dot-amber { background: #FFBD2E; }
.code-dot-green { background: #28CA41; }

.code-window-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.code-body {
  padding: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.85;
}

.code-line { display: block; }
.code-indent { margin-left: 20px; }
.code-indent2 { margin-left: 40px; }

.c-comment  { color: #3D526E; }
.c-keyword  { color: #79A8F0; }
.c-class    { color: #F0C080; }
.c-string   { color: #80C880; }
.c-num      { color: #F08080; }
.c-func     { color: #60C8F0; }
.c-dim      { color: #4A5A78; }
.c-ok       { color: #10B981; font-weight: 600; }
.c-arrow    { color: var(--accent); }
.c-text     { color: #B0C8E0; }

.code-cursor {
  display: inline-block;
  width: 2px; height: 0.95em;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

/* ==================== SERVICES ==================== */
.services { background: var(--surface); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

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

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(37, 99, 235, 0.12);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

a.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.service-card-link:hover {
  color: inherit;
}

.service-card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.service-card-ai {
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(145deg, var(--bg) 0%, rgba(37, 99, 235, 0.06) 100%);
  position: relative;
}

.service-card-ai:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 36px rgba(37, 99, 235, 0.2);
}

.service-badge {
  display: inline-block;
  margin-top: 14px;
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ==================== AI ADVANTAGE ==================== */
.ai-advantage {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 96px 0;
}

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

.ai-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ai-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.14);
}

.ai-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.ai-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.ai-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.ai-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.ai-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.ai-cta {
  text-align: center;
  margin-top: 56px;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ai-cta p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==================== PRODUCTS ==================== */
.products { background: var(--bg); }

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 56px rgba(37, 99, 235, 0.16);
}

.product-card.featured {
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(37, 99, 235, 0.07) 100%);
}

.product-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.product-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.product-card:hover .product-link { gap: 10px; }

/* ==================== CLIENTS ==================== */
.clients { background: var(--surface); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.client-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.client-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.client-type {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.client-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.client-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==================== ABOUT ==================== */
.about {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-title { margin-bottom: 20px; }

.about-text p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.big-stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.big-stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.big-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==================== STACK STRIP ==================== */
.stack-strip {
  background: var(--surface);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.stack-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stack-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-right: 8px;
}

.stack-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ==================== CONTACT ==================== */
.contact { background: var(--surface); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 16px; }
.contact-info .section-sub { margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-row-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

.contact-row-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row-value:hover { color: var(--accent); }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-form-wrapper { align-self: start; }
.contact-form-wrapper .cms-contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--accent); }
.contact-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .clients-grid   { grid-template-columns: repeat(2, 1fr); }
  .ai-grid        { grid-template-columns: repeat(2, 1fr); }
  .about-inner    { gap: 48px; }
  .contact-inner  { gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero { padding: 100px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid, .products-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .services-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .clients-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
}

/* =====================================================
   Pricing Section
   ===================================================== */
.cw-pricing {
  padding: 100px 0;
  background: var(--surface);
}

.cw-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
  max-width: 860px;
  margin-inline: auto;
}

.cw-price-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.cw-price-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, .12);
}

.cw-price-card.cw-price-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--surface2) 0%, rgba(37,99,235,.08) 100%);
  position: relative;
}

.cw-price-card.cw-price-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 20px;
}

.cw-price-badge {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent2);
}

.cw-price-amount {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
}

.cw-price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  align-self: flex-start;
  padding-top: 6px;
}

.cw-price-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.cw-price-period {
  font-size: .9rem;
  color: var(--text-muted);
  padding-bottom: 6px;
}

.cw-price-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.cw-price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.cw-price-features li {
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cw-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.cw-price-btn {
  display: block;
  text-align: center;
  padding: 13px 20px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .15s;
  margin-top: auto;
}

.cw-price-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.cw-pricing-note {
  margin-top: 48px;
}

.cw-pricing-note-inner {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cw-pricing-note-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cw-pricing-note h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cw-pricing-note p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.cw-pricing-note p strong {
  color: var(--accent2);
}

/* Hosting callout */
.cw-hosting-callout {
  margin-top: 28px;
  max-width: 860px;
  margin-inline: auto;
}

.cw-hosting-callout-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.cw-hosting-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cw-hosting-body {
  flex: 1;
}

.cw-hosting-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cw-hosting-price strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.cw-hosting-price strong span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cw-hosting-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cw-hosting-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.cw-hosting-features li {
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Light theme — variables */
html.light {
  --bg:          #F0F4FF;
  --surface:     #E6ECFB;
  --surface2:    #FFFFFF;
  --border:      #C7D4EE;
  --text:        #0D1626;
  --text-muted:  #3A4F72;
  --text-dim:    #4A5E82;
  --accent-glow: rgba(37,99,235,.08);
  --shadow:      0 4px 30px rgba(0,0,0,.08);
  --shadow-accent: 0 0 60px rgba(37,99,235,.08);
  --navbar-bg:   rgba(240,244,255,.92);
}

html.light body { background: var(--bg); color: var(--text); }

/* Hardcoded-white headings — make them use the text variable */
html.light .section-title,
html.light .cw-hero-text h1,
html.light .cw-inc-card h3,
html.light .cw-lead-point strong,
html.light .cw-step-body h3,
html.light .cw-contact-text h2,
html.light .cw-price-number,
html.light .cw-price-currency,
html.light .cw-hosting-price strong {
  color: var(--text);
}

/* Hero eyebrow badge — light-blue is invisible on white */
html.light .hero-eyebrow,
html.light .cw-block-badge,
html.light .cw-badge-ai,
html.light .cw-llm-badge {
  color: var(--accent);
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.25);
}

/* Service badge in home hero */
html.light .service-badge {
  color: var(--accent);
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.2);
}

/* Hero gradient-text — too faint on light */
html.light .gradient-text {
  background: linear-gradient(135deg, #1D4ED8 0%, #0D9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* cw-big-num gradient on metrics panel */
html.light .cw-big-num {
  background: linear-gradient(135deg, #1D4ED8, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Light-colored badge text in custom-websites */
html.light .cw-ba-label.after { color: #065f46; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); }
html.light .cw-ba-label.before { color: #991b1b; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); }
html.light .cw-after .cw-ba-list li::before { color: #059669; }
html.light .cw-before .cw-ba-list li::before { color: #dc2626; }

/* Sections that use var(--text-dim) — already adjusted via variable, but be safe */
html.light .cw-who-card span,
html.light .cw-stat-label,
html.light .cw-mini-label,
html.light .cw-big-label {
  color: var(--text-muted);
}

/* Code window — keep dark always, it's a visual element */
html.light .code-window,
html.light .code-window-bar,
html.light .code-body {
  background: #0D1626;
  border-color: #1B2B45;
  color: #E8F0FF;
}

/* Language switcher link */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  padding: 4px 0;
  min-width: 130px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  list-style: none;
  z-index: 1000;
}
.lang-menu-open { display: block; }
.lang-option {
  display: block;
  width: 100%;
  padding: 7px 16px;
  border: none;
  background: none;
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.lang-option:hover { background: var(--border); }
.lang-option.active { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .cw-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .cw-hosting-callout { max-width: 480px; }
  .cw-hosting-callout-inner { flex-direction: column; gap: 12px; }
}

/* =====================================================
   CMS Contact Form — dark-theme overrides
   ===================================================== */
.cms-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cms-contact-form .mb-3 { margin-bottom: 0 !important; }

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

.cms-contact-form .form-label .text-danger { color: var(--accent); }

.cms-contact-form .form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}

.cms-contact-form .form-control::placeholder { color: var(--text-dim); }

.cms-contact-form .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}

.cms-contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.cms-contact-form .invalid-feedback {
  font-size: .8rem;
  color: #f87171;
  margin-top: 4px;
}

.cms-contact-form .alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
}

.cms-contact-form .alert-success {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #6ee7b7;
}

.cms-contact-form .alert-danger {
  background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .3);
  color: #fca5a5;
}

.cms-contact-form .alert-warning {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #fcd34d;
}

/* =====================================================
   Light mode — Sistema Clínica (.sc-) + Plataforma (.pl-)
   ===================================================== */

/* Hardcoded-white headings */
html.light .sc-hero-text h1,
html.light .sc-feat-body h2,
html.light .sc-feat-visual h3,
html.light .sc-comp-card h3,
html.light .sc-comp-law h3,
html.light .sc-phase h3,
html.light .sc-trust-card h4,
html.light .sc-contact-text h2,
html.light .sc-step h3,
html.light .pl-hero-text h1,
html.light .pl-mod-card h3,
html.light .pl-step h3,
html.light .pl-prod-card h3,
html.light .pl-cta-banner h2,
html.light .pl-contact-text h2,
html.light .section-title { color: var(--text); }

/* Muted text — already CSS variable, but enforce */
html.light .sc-hero-sub,
html.light .sc-feat-body p,
html.light .sc-feat-visual p,
html.light .sc-comp-card p,
html.light .sc-comp-law p,
html.light .sc-phase-items li,
html.light .sc-check-list li,
html.light .sc-contact-text p,
html.light .pl-hero-sub,
html.light .pl-mod-card p,
html.light .pl-step p,
html.light .pl-prod-card p,
html.light .pl-cta-banner p,
html.light .pl-contact-text p,
html.light .pl-trust-item,
html.light .sc-trust-item { color: var(--text-muted); }

/* Cards — dark surface becomes light surface */
html.light .sc-trust-card,
html.light .sc-comp-card,
html.light .sc-comp-law,
html.light .sc-feat-visual,
html.light .sc-phase,
html.light .pl-stat,
html.light .pl-mod-card,
html.light .pl-step,
html.light .pl-prod-card {
  background: var(--surface);
  border-color: var(--border);
}

/* Who grid cards */
html.light .sc-who-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}
html.light .sc-who-card:hover { color: var(--text); }

/* Sections with explicit dark bg — keep them readable */
html.light .sc-features { background: var(--surface2); }
html.light .sc-compliance { background: var(--surface); }
html.light .sc-compact { background: var(--bg); }
html.light .sc-roadmap { background: var(--surface); }
html.light .sc-for-whom { background: var(--surface2); }
html.light .pl-modules { background: var(--surface2); }
html.light .pl-products { background: var(--surface); }
html.light .pl-how { background: var(--bg); }

/* Eyebrow badges — teal on dark is invisible on light bg */
html.light .sc-hero-eyebrow,
html.light .sc-feat-eyebrow,
html.light .sc-phase-label,
html.light .sc-law-badge,
html.light .pl-hero-eyebrow { color: var(--accent); }

html.light .sc-hero-eyebrow {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.25);
}
html.light .sc-law-badge {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.25);
}

/* Product badge */
html.light .pl-prod-badge {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.25);
  color: var(--accent);
}

/* CTA banner */
html.light .pl-cta-banner {
  background: var(--surface2);
  border-color: var(--border);
}

/* Step numbers */
html.light .pl-step-num {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.25);
  color: var(--accent);
}

/* Gradient text — visible on light bg */
html.light .sc-hero-text .gradient-text,
html.light .pl-hero-text .gradient-text,
html.light .sc-features .gradient-text,
html.light .sc-compliance .gradient-text {
  background: linear-gradient(135deg, #1D4ED8 0%, #0D9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stat numbers */
html.light .pl-stat-num { color: var(--accent); }
