/* ---------- Base ---------- */
:root {
  --bg: #0b0f14;
  --surface: #101724;
  --surface-2: #131b28;
  --text: #e5e9f0;
  --muted: rgba(229, 233, 240, 0.75);
  --primary: #17a2ff;
  --primary-2: #2ac7ff;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max-width: 1100px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #16202b 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 1rem 0;
}

button,
input,
textarea {
  font: inherit;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  padding: 0.3rem 0.25rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav a.active {
  background: rgba(23, 162, 255, 0.18);
  border: 1px solid rgba(23, 162, 255, 0.4);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0f14;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(23, 162, 255, 0.25);
}

.cta:hover {
  opacity: 0.95;
}

.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 12px;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger::before {
  transform: translateY(-6px);
}

.hamburger::after {
  transform: translateY(4px);
}

.mobile-nav-toggle.open .hamburger {
  transform: translateX(-4px);
  background: transparent;
}

.mobile-nav-toggle.open .hamburger::before {
  transform: translate(0, 0) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger::after {
  transform: translate(0, 0) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

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

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}

.hero-copy p {
  max-width: 520px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0f14;
  box-shadow: 0 18px 40px rgba(23, 162, 255, 0.25);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 360px;
}

.lightning {
  width: 220px;
  height: 260px;
  background: linear-gradient(135deg, rgba(23, 162, 255, 0.9), rgba(142, 255, 252, 0.1));
  border-radius: 40px;
  box-shadow: 0 40px 80px rgba(23, 162, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.lightning::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.62), transparent 65%);
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.section-header p {
  color: var(--muted);
}

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

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.card p {
  color: var(--muted);
  margin: 0.85rem 0 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy ul {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.benefits li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.45;
}

.benefits li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.15rem;
}

.about-visual .visual-box {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(to bottom right, rgba(23, 162, 255, 0.4), rgba(53, 95, 170, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.bolt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(23, 162, 255, 0.6));
  clip-path: polygon(50% 0%, 40% 36%, 60% 36%, 45% 62%, 55% 62%, 40% 100%, 60% 100%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(23, 162, 255, 0.45));
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  padding: 2.25rem;
  border-radius: var(--radius);
  background: rgba(16, 23, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  margin: 0.65rem 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 24, 33, 0.8);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(23, 162, 255, 0.65);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-align: center;
}

.footer-meta {
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-illustration {
    height: 220px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.95);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.open {
    max-height: 280px;
  }

  .nav a {
    padding: 0.65rem 0;
    border-radius: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 1rem 0;
  }
}

/* ---------- Chat Widget ---------- */
.chat-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  font-family: var(--font);
}

.chat-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 40px rgba(23, 162, 255, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #0b0f14;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(340px, calc(100vw - 2rem));
  max-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(16, 23, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
}

.chat-panel[aria-hidden="false"] {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 28, 0.92);
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: grid;
  gap: 0.55rem;
}

.chat-message {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  line-height: 1.4;
}

.chat-message.user {
  justify-self: end;
  background: rgba(23, 162, 255, 0.18);
  color: var(--text);
}

.chat-message.ai {
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chat-message.typing {
  opacity: 0.65;
  font-style: italic;
}

.chat-form {
  display: flex;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 28, 0.92);
}

.chat-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
}

.chat-form input:focus {
  outline: 2px solid rgba(23, 162, 255, 0.65);
}

.chat-form button {
  border-radius: 999px;
  border: none;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0f14;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-panel {
    width: min(100vw - 2rem, 340px);
  }
}
