/* ===== Variables ===== */
:root {
  --brand: #2E2D8E;
  --brand-light: #4654AC;
  --brand-dark: #1C1E5D;
  --brand-50: #eef0fb;
  --brand-100: #dde1f7;
  --accent: #58C034;
  --accent-dark: #47992a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background-color: #fafaf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23cbd5e1' fill-opacity='0.15'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }
ul { list-style: none; }

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); color: white; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-50); color: var(--brand); }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo img { height: 28px; }
.nav-logo .logo-dark { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}
.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-600);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  background: white;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.5rem 0; font-size: 0.9rem; color: var(--slate-600); }
.lang-toggle {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--slate-600);
  cursor: pointer;
  letter-spacing: 0.05em;
}
.lang-toggle:hover { background: var(--slate-200); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--brand-50) 0%, #fafaf8 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-screenshot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-screenshot { order: -1; }
}

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: #f5f5f0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}
.feature-card > p {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.feature-screenshot {
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}

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

/* ===== Industry Grid ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.industry-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.industry-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand);
}
.industry-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.industry-card p {
  font-size: 0.8rem;
  color: var(--slate-500);
}

@media (max-width: 768px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industry-grid { grid-template-columns: 1fr; } }

/* ===== Architecture Diagram ===== */
.arch-diagram {
  max-width: 600px;
  margin: 0 auto 3rem;
}
.arch-layer {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}
.arch-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}
.arch-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.arch-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--brand-50);
  color: var(--brand);
}
.arch-badge.accent { background: #f0fbe9; color: var(--accent-dark); }
.arch-badge.dark { background: var(--slate-100); color: var(--slate-700); }
.arch-arrow {
  text-align: center;
  color: var(--slate-300);
  font-size: 1.25rem;
  padding: 0.25rem 0;
}

/* ===== Tech Grid ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tech-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tech-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--brand);
}
.tech-card ul { padding-left: 0; }
.tech-card li {
  font-size: 0.85rem;
  color: var(--slate-600);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.tech-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
}

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

/* ===== Security Grid ===== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.security-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.security-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.security-card li {
  font-size: 0.85rem;
  color: var(--slate-600);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.security-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badges img { height: 20px; width: auto; display: inline-block; }

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

/* ===== Pricing Grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.pricing-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}
.pricing-target {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}
.pricing-price {
  margin-bottom: 1.5rem;
}
.pricing-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
}
.pricing-period {
  font-size: 0.9rem;
  color: var(--slate-500);
  font-weight: 400;
}
.pricing-features {
  flex: 1;
  margin-bottom: 1.5rem;
  padding-left: 0;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--slate-600);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pricing-notes {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing-notes p {
  font-size: 0.85rem;
  color: var(--slate-500);
  max-width: 650px;
  margin: 0 auto;
}

.pricing-data-sovereignty {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.pricing-data-sovereignty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}
.data-points {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.data-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-600);
}
.data-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

/* Pricing Form */
.pricing-form-wrapper {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-form-wrapper h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 0.25rem;
}
.pricing-form-sub {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-align: center;
  margin-bottom: 1.5rem;
}
.pricing-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-700);
}
.form-group input,
.form-group select {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--slate-800);
  background: white;
  transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.form-group input::placeholder {
  color: var(--slate-400);
}

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; } }
@media (max-width: 600px) {
  .data-points { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== WhatsApp Float ===== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  text-align: center;
}
.cta-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto 2rem;
}
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary {
  background: white;
  color: var(--brand);
  border-color: white;
}
.cta-section .btn-primary:hover { background: var(--slate-100); }
.cta-section .btn-outline {
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

/* ===== Footer ===== */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand img {
  height: 32px;
  width: auto;
}
.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 300px;
}
.footer-links { display: contents; }
.footer-links > div { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--slate-400);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--slate-700);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: white; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f1218;
    color: #d1d8e4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  a { color: #7b8adb; }
  a:hover { color: #9aa6e8; }

  /* Nav */
  .nav { background: #151921; border-color: #2a3040; }
  .nav-mobile { background: #151921; border-color: #2a3040; }
  .nav-links a:not(.btn) { color: #a0aab8; }
  .nav-links a:not(.btn):hover { color: #7b8adb; }
  .nav-menu-btn { color: #a0aab8; }
  .lang-toggle { background: #232830; border-color: #2a3040; color: #a0aab8; }
  .lang-toggle:hover { background: #2f3540; }
  .btn-outline { color: #7b8adb; border-color: #7b8adb; }
  .btn-outline:hover { background: #1e2044; color: #9aa6e8; }

  /* Nav logo: hide light, show dark */
  .nav-logo .logo-light { display: none; }
  .nav-logo .logo-dark { display: block; }

  /* Hero */
  .hero { background: linear-gradient(135deg, #1a1d3a 0%, #0f1218 60%); }
  .hero h1 { color: #e8ecf2; }
  .hero-sub { color: #a0aab8; }
  .hero-screenshot img { border-color: #2a3040; }

  /* Sections */
  .section-alt { background: #151921; }
  .section-title { color: #e8ecf2; }
  .section-sub { color: #8090a4; }

  /* Feature cards */
  .feature-card { background: #1a1f2b; border-color: #2a3040; }
  .feature-icon { background: #1e2044; color: #7b8adb; }
  .feature-card h3 { color: #e8ecf2; }
  .feature-card > p { color: #8090a4; }
  .feature-screenshot { border-color: #2a3040; }

  /* Industry cards */
  .industry-card { background: #1a1f2b; border-color: #2a3040; }
  .industry-icon { background: #1e2044; color: #7b8adb; }
  .industry-card p { color: #8090a4; }

  /* Architecture diagram */
  .arch-layer { background: #1a1f2b; border-color: #2a3040; }
  .arch-label { color: #607080; }
  .arch-badge { background: #1e2044; color: #7b8adb; }
  .arch-badge.accent { background: #1a2e14; color: #6dd44e; }
  .arch-badge.dark { background: #232830; color: #a0aab8; }
  .arch-arrow { color: #3a4555; }

  /* Tech cards */
  .tech-card { background: #1a1f2b; border-color: #2a3040; }
  .tech-card h3 { color: #7b8adb; }
  .tech-card li { color: #a0aab8; }

  /* Security cards */
  .security-card { background: #1a1f2b; border-color: #2a3040; }
  .security-card h3 { color: #7b8adb; }
  .security-card li { color: #a0aab8; }

  /* Pricing cards */
  .pricing-card { background: #1a1f2b; border-color: #2a3040; }
  .pricing-card-featured { border-color: #7b8adb; }
  .pricing-header h3 { color: #e8ecf2; }
  .pricing-target { color: #8090a4; }
  .pricing-amount { color: #e8ecf2; }
  .pricing-period { color: #8090a4; }
  .pricing-features li { color: #a0aab8; }
  .pricing-notes p { color: #8090a4; }
  .pricing-data-sovereignty { background: #1a1f2b; border-color: #2a3040; }
  .pricing-data-sovereignty h3 { color: #e8ecf2; }
  .data-point { color: #a0aab8; }
  .data-icon { color: #7b8adb; }
  .pricing-form-wrapper { background: #1a1f2b; border-color: #2a3040; }
  .pricing-form-wrapper h3 { color: #e8ecf2; }
  .pricing-form-sub { color: #8090a4; }
  .form-group label { color: #a0aab8; }
  .form-group input,
  .form-group select { background: #232830; border-color: #3a4555; color: #e8ecf2; }
  .form-group input::placeholder { color: #607080; }
  .form-group input:focus,
  .form-group select:focus { border-color: #7b8adb; box-shadow: 0 0 0 3px rgba(123,138,219,0.15); }

  /* CTA — keep brand gradient, just adjust outline btn */
  .cta-section .btn-outline { color: white; border-color: rgba(255,255,255,0.4); }
  .cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

  /* Footer — already dark, just deepen slightly to differentiate */
  .footer { background: #080b10; }
}
