@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0f1f;
  --bg-elev: #121833;
  --ink: #e6ecff;
  --muted: #9aa6cc;
  --accent: #64ffda;
  --accent-strong: #42d0ff;
  --stroke: rgba(100, 115, 160, 0.3);
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at top left, rgba(100, 208, 255, 0.15), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.1), transparent 40%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 28px 24px 0;
}

.navbar {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--stroke);
  color: var(--ink);
}

.hero {
  padding: 70px 24px 90px;
}

.hero-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: linear-gradient(160deg, rgba(18, 24, 51, 0.9), rgba(15, 23, 42, 0.5));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary {
  background: var(--accent);
  color: #04161a;
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.cta-secondary {
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.5);
}

main {
  padding: 0 24px 80px;
}

.section {
  max-width: 1150px;
  margin: 0 auto 70px;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 24px;
}

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

.card {
  background: var(--bg-elev);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.4);
}

.card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.page-hero {
  max-width: 1150px;
  margin: 40px auto 0;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(100, 255, 218, 0.08), rgba(100, 208, 255, 0.1));
  border: 1px solid var(--stroke);
}

.page-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0c1226;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer {
  text-align: center;
  padding: 36px 24px 50px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}

.chat-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--accent-strong);
  color: #02121a;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.4);
  cursor: pointer;
  z-index: 50;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: min(360px, 90vw);
  background: var(--bg-elev);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  padding: 16px 20px;
  background: rgba(100, 208, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.chat-body {
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-body .provider-ready {
  color: var(--ink);
}

.chat-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-placeholder {
  display: grid;
  gap: 12px;
}

.chat-placeholder code {
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .nav-links {
    gap: 10px;
  }

  .hero {
    padding-top: 40px;
  }
}
