:root {
  --bg: #070A14;
  --bg2: #0B1030;
  --panel: rgba(255, 255, 255, 0.08);
  --panel2: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.16);

  --text: #F2F5FF;
  --muted: rgba(242, 245, 255, 0.72);
  --muted2: rgba(242, 245, 255, 0.55);

  --primary: #56A8FF;
  --secondary: #A86CFF;
  --accent: #5EEAD4;

  --success: #3FE7A7;
  --error: #FF5C7A;
  --text-light: rgba(242, 245, 255, 0.65);

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 22, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.navbar-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.9;
  transition: transform 0.05s ease, opacity 0.05s ease;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(86, 168, 255, 0.9);
  color: rgba(255, 255, 255, 0.92);
}

.btn-outline:hover {
  background: rgba(86, 168, 255, 0.12);
  box-shadow: 0 8px 20px rgba(86, 168, 255, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 24px rgba(86, 168, 255, 0.25);
}

.btn-primary:active {
  box-shadow: 0 5px 12px rgba(86, 168, 255, 0.3);
  opacity: 0.95;
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(86, 168, 255, 0.35), transparent 60%),
              radial-gradient(circle at 80% 40%, rgba(168, 108, 255, 0.35), transparent 55%),
              radial-gradient(circle at 50% 90%, rgba(94, 234, 212, 0.22), transparent 60%);
  filter: blur(0.2px);
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  text-align: center;
}

.hero-product-frame {
  margin: 2rem auto 0;
  max-width: min(1040px, 100%);
  text-align: center;
}

.hero-product-frame-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: rgba(10, 14, 32, 0.9);
  line-height: 0;
}

.hero-product-frame-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
  object-position: top center;
}

.hero-product-frame-caption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.45;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-product-frame--illustration .hero-product-frame-caption {
  color: rgba(242, 245, 255, 0.5);
}

.hero-logo img,
.hero-logo svg {
  width: min(520px, 94vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Section Base */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* Features */
.features {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(86, 168, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Pricing */
.pricing {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(86, 168, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured {
  border-color: rgba(86, 168, 255, 0.6);
  box-shadow: 0 14px 40px rgba(86, 168, 255, 0.18);
}

.pricing-card.featured::before {
  content: "POPULAR";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pricing-plan {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  margin-right: 0.6rem;
  font-weight: 800;
}

/* CTA */
.cta-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.modal h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.form-input {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(86, 168, 255, 0.7);
}

.form-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.form-footer a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-decoration: underline;
}

/* Tawk widget: ensure visibility (CSP wss://*.tawk.to must be allowed for WebSocket - see server.js) */
#tawkchat-container,
#tawkchat-iframe-container,
iframe[title*="Tawk"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
}
div:has(> #tawkchat-container),
div:has(> #tawkchat-iframe-container),
div:has(> iframe[title*="Tawk"]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-product-frame {
    margin-top: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

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