:root {
  --bg: #060a11;
  --bg-soft: #0b1220;
  --panel: rgba(10, 16, 28, 0.9);
  --panel-strong: rgba(13, 21, 35, 0.95);
  --text: #eef4ff;
  --muted: #99a8c4;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-3: #8b5cf6;
  --success: #2dd4bf;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 18%),
    linear-gradient(135deg, var(--bg) 0%, #08111d 60%, #0b1220 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  z-index: -1;
  animation: drift 11s ease-in-out infinite alternate;
}

body::before {
  background: var(--accent);
  top: -120px;
  left: -80px;
}

body::after {
  background: var(--accent-2);
  right: -100px;
  bottom: -120px;
  animation-duration: 14s;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(40px, 40px, 0) scale(1.08); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.glass {
  background: rgba(9, 15, 26, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.28);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background: rgba(6, 10, 17, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.21));
  color: var(--accent-2);
  font-size: 1rem;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover { color: white; }

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2rem;
}
.hero-copy h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.06;
  margin: 0 0 1rem;
}
.hero-copy .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 1.35rem;
  max-width: 700px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.stat-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
}
.stat-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.stat-card span { color: var(--muted); font-size: 0.9rem; }

.hero-card {
  padding: 1.2rem;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(12, 21, 36, 0.95), rgba(6, 11, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  animation: floatCard 5.5s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.18), transparent 45%, rgba(34, 211, 238, 0.12));
  pointer-events: none;
}
.hero-card .card-glow {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #9fd2ff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.hero-card h2 { margin: 0.2rem 0 0.5rem; font-size: 1.25rem; font-family: inherit; }
.hero-card ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 0.75rem;
}
.hero-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}
.hero-card li .icon { color: var(--accent-2); }

section { padding: 2rem 0 3.2rem; }
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.section-heading .eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}
.section-heading h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0;
}
.section-heading p { color: var(--muted); margin: 0; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tab-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.35);
}
.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.15));
  border-color: rgba(59,130,246,0.32);
}
.tab-panels { display: grid; gap: 1rem; }
.service-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.3);
}
.service-card h3 { margin: 0 0 0.65rem; font-size: 1.1rem; }
.service-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.service-card li { margin-bottom: 0.5rem; }

.feature-grid {
  display: grid;
  gap: 1rem;
}
.feature-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
}

.calculator-grid {
  display: grid;
  gap: 1rem;
}
.calculator-panel, .pricing-card, .demo-panel, .contact-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.calculator-panel:hover, .pricing-card:hover, .demo-panel:hover, .contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59,130,246,0.3);
}
.slider-group { margin: 1rem 0 0.7rem; }
.slider-group label { display: flex; justify-content: space-between; font-weight: 600; }
input[type="range"] {
  width: 100%;
  margin-top: 0.72rem;
  accent-color: var(--accent);
}
.result-box {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.17), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.22);
}
.result-box .value {
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
}
.pricing-card h3 { margin-top: 0; margin-bottom: 0.35rem; }
.pricing-card .price { font-size: 1.3rem; font-weight: 800; color: white; }
.pricing-card .note { color: var(--muted); font-size: 0.95rem; }
.pill {
  display: inline-block;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: #98f1ff;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.demo-shell { display: grid; gap: 1rem; }
.chat-window {
  min-height: 320px;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(6, 10, 17, 0.86);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.bubble {
  max-width: 84%;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  font-size: 0.95rem;
  animation: popIn 0.35s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble.ai { background: rgba(59,130,246,0.16); color: #dfeeff; }
.bubble.user { background: rgba(255,255,255,0.08); align-self: flex-end; }
.demo-input {
  display: flex;
  gap: 0.6rem;
}
.demo-input input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.8rem 0.95rem;
  background: rgba(255,255,255,0.06);
  color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.demo-input input:focus {
  outline: none;
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.demo-input button { border: 0; }

.faq-list {
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: rgba(59,130,246,0.32); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(59,130,246,0.16);
  color: var(--accent-2);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}
.faq-answer p { margin: 0; }

.contact-grid { display: grid; gap: 1rem; }
form { display: grid; gap: 0.9rem; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  background: rgba(255,255,255,0.05);
  color: white;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(59,130,246,0.3);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
/* Most browsers render the <option> popup using the OS's native light
   theme, ignoring the dark background we set on the closed <select> box.
   Without this, option text stayed white-on-white and was unreadable. */
.field select option {
  color: #0b1220;
  background: #ffffff;
}
.form-note { color: var(--muted); font-size: 0.9rem; }
.success-state {
  display: none;
  margin-top: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(45,212,191,0.12);
  color: #b9fff3;
  border: 1px solid rgba(45,212,191,0.25);
}
.success-state.show { display: block; }

.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.direct-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.direct-contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}
.direct-contact a .icon {
  color: var(--accent-2);
  width: 1.1rem;
  text-align: center;
}
.direct-contact a:hover { color: var(--accent-2); }

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.4);
  color: white;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(34,211,238,0.18));
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 0.9rem;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.footer-contact a .icon { color: var(--accent-2); }
.footer-contact a:hover { color: white; }
footer .social-links { margin-top: 0.9rem; }

.contact-card { display: flex; flex-direction: column; }
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
html.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 2.1rem 0 3rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a:hover { color: white; }

@media (min-width: 700px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-grid { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1024px) {
  header { padding: 1.2rem 0; }
  .hero { padding: 5rem 0 3.5rem; }
  .hero-copy h1 { max-width: 760px; }
}
