/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  color: #f5f5f5;
  background: #050510;
}

/* ---- Top navigation ---- */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffb347, #ff0066);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: #e1e1ff;
  text-decoration: none;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: #7b5cff;
  color: #ffffff;
  border-color: #7b5cff;
}

.btn-primary:hover {
  background: #9679ff;
  border-color: #9679ff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: #e1e1ff;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Hero section ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #ffffff;
  text-align: center;
  background-image: url("/stars.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 16, 0.85), rgba(5, 5, 16, 0.4)),
    radial-gradient(circle at top center, rgba(255, 0, 102, 0.35), transparent);
  mix-blend-mode: normal;
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
  margin-top: 70px; /* clear fixed nav */
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---- Chat button + panel ---- */

.chat-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: #7b5cff;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s;
}

.chat-toggle:hover {
  background: #9679ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

.chat-panel {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 320px;
  max-width: 90vw;
  height: 420px;
  border-radius: 20px;
  background: #0c0c1b;
  color: #f5f5f5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 25;
}

.chat-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  padding: 14px 16px;
  background: #15152c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-body {
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---- Responsive tweaks ---- */

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

  .nav-links {
    display: none; /* hide middle links on very small screens */
  }

  .nav-actions {
    gap: 8px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .hero-content {
    margin-top: 90px;
  }
}
/* ---- Generic page layout (used by contact.html) ---- */

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #171735, #050510);
  padding: 100px 20px 40px; /* leave room for fixed nav */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.page-inner {
  width: 100%;
  max-width: 720px;
}

.page-header {
  margin-bottom: 24px;
  color: #f5f5ff;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-header p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.98rem;
}

/* ---- Form card ---- */

.form-card {
  background: rgba(10, 10, 30, 0.95);
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Form fields ---- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row .form-field {
  flex: 1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #e6e6ff;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 10px;
  background: rgba(5, 5, 20, 0.95);
  color: #f5f5ff;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(220, 220, 255, 0.6);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #7b5cff;
  box-shadow: 0 0 0 1px rgba(123, 92, 255, 0.6);
  background: rgba(10, 10, 35, 1);
}

.form-field textarea {
  resize: vertical;
}

/* Checkbox line */

.form-field-inline {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #dcdcff;
}

.checkbox-label input {
  width: auto;
}

/* Submit row */

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 8px;
}

.form-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(230, 230, 255, 0.75);
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
  }

  .form-card {
    padding: 18px 16px 16px;
  }
}
/* ---------- AI Strategies page additions ---------- */

.page {
  min-height: 100vh;
  background: #0b0b12;
}

.page-hero {
  padding: 96px 24px 40px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(140, 80, 255, 0.20), rgba(0,0,0,0) 60%);
}

.page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 auto 22px;
  max-width: 820px;
  opacity: 0.85;
  font-size: 18px;
  line-height: 1.6;
}

.section {
  padding: 48px 24px;
}

.section-alt {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  grid-column: span 6;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
}

.note {
  margin-top: 18px;
  opacity: 0.8;
}

.steps {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.7;
  opacity: 0.9;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.cta-slab {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(140, 80, 255, 0.10);
  border: 1px solid rgba(140, 80, 255, 0.20);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #0b0b12;
  background: rgba(140, 80, 255, 1);
}

@media (max-width: 760px) {
  .card { grid-column: span 12; }
  .cta-slab { flex-direction: column; align-items: flex-start; }
}
