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

:root {
  --color-bg: #050713;
  --color-bg-alt: #0b1020;
  --color-card: #111729;
  --color-card-alt: #161d30;
  --color-primary: #2f8cff;
  --color-primary-soft: rgba(47, 140, 255, 0.1);
  --color-accent: #4dd0ff;
  --color-text: #f5f7ff;
  --color-muted: #9aa4c6;
  --color-border: #26324b;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #233559 0, #050713 52%, #020308 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(135deg, rgba(20, 32, 60, 0.96), rgba(10, 12, 26, 0.96));
}

.section-alt .container {
  position: relative;
}

.section-alt .container::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at top, rgba(77, 208, 255, 0.12), transparent 60%);
  opacity: 0.7;
  z-index: -1;
}

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: 0.02em;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 8, 24, 0.96), rgba(5, 7, 19, 0.88));
  border-bottom: 1px solid rgba(72, 106, 170, 0.5);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 40%;
  background: radial-gradient(circle at 30% 0, #4dd0ff, #2f8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #050713;
  box-shadow: 0 0 0 1px rgba(173, 197, 255, 0.35);
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 0.95rem;
}

.logo-subtitle {
  font-size: 0.74rem;
  color: var(--color-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
}

.main-nav a {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--color-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.main-nav a:hover {
  color: var(--color-text);
  background: rgba(77, 208, 255, 0.08);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2f8cff, #4dd0ff);
  color: #020308;
  box-shadow: 0 10px 22px rgba(18, 134, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(18, 134, 255, 0.55);
}

.btn-accent {
  background: transparent;
  border-color: rgba(77, 208, 255, 0.7);
  color: #e7f2ff;
  box-shadow: 0 0 0 1px rgba(77, 208, 255, 0.35);
  background-image: radial-gradient(circle at top, rgba(77, 208, 255, 0.18), transparent 65%);
}

.btn-accent:hover {
  background: radial-gradient(circle at top, rgba(77, 208, 255, 0.3), rgba(9, 13, 30, 0.98));
  transform: translateY(-1px);
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.hero-copy p {
  max-width: 36rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 1.5rem;
  display: grid;
  gap: 0.45rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle, #4dd0ff, #2f8cff);
  box-shadow: 0 0 0 4px rgba(77, 208, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.hero-panel {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(77, 208, 255, 0.2), rgba(9, 13, 30, 0.98));
  border: 1px solid rgba(96, 138, 208, 0.7);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-panel-header {
  padding: 0.9rem 1.3rem;
  background: linear-gradient(to right, rgba(11, 25, 63, 0.98), rgba(26, 54, 105, 0.97));
  border-bottom: 1px solid rgba(128, 170, 255, 0.5);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8dcff;
}

.hero-panel-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.hero-panel-intro {
  font-size: 0.95rem;
}

.hero-panel-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.hero-panel-list li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding-left: 1.1rem;
  position: relative;
}

.hero-panel-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  color: #4dd0ff;
}

.hero-panel-footnote {
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px dashed rgba(120, 150, 210, 0.6);
  padding-top: 0.7rem;
}

/* Generic layouts */

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: radial-gradient(circle at top left, rgba(77, 208, 255, 0.16), rgba(8, 12, 28, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94, 135, 204, 0.65);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(1, 6, 18, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.card h3 {
  font-size: 1.02rem;
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.card p {
  font-size: 0.9rem;
  margin: 0;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 208, 255, 0.95);
  box-shadow: 0 18px 40px rgba(3, 12, 38, 0.95);
  background: radial-gradient(circle at top left, rgba(77, 208, 255, 0.24), rgba(8, 12, 28, 0.98));
}

/* Lists */

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9rem;
  color: #4dd0ff;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.stack-list li {
  font-size: 0.9rem;
}

/* Pitch section */

.pitch-section {
  background: radial-gradient(circle at top, rgba(47, 140, 255, 0.15), rgba(5, 7, 19, 0.98));
  border-top: 1px solid rgba(88, 126, 201, 0.5);
  border-bottom: 1px solid rgba(88, 126, 201, 0.5);
}

.pitch-section h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.pitch-section p {
  max-width: 48rem;
}

.pitch-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.pitch-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
}

.pitch-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 40%;
  border: 1px solid rgba(77, 208, 255, 0.8);
  box-shadow: 0 0 12px rgba(77, 208, 255, 0.5);
}

.pitch-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.pitch-note {
  font-size: 0.84rem;
  color: var(--color-muted);
}

/* Trust section */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.trust-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(60, 96, 158, 0.8);
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 14px 34px rgba(2, 5, 12, 0.92);
}

.trust-card h3 {
  font-size: 0.98rem;
  margin: 0 0 0.5rem;
}

.trust-card p {
  font-size: 0.88rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(67, 100, 167, 0.85);
  padding: 0.7rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Contact */

.contact-email a {
  font-weight: 600;
  color: #e7f2ff;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(58, 96, 158, 0.7);
  padding: 1.4rem 0 2rem;
  background: radial-gradient(circle at top, rgba(18, 32, 61, 0.9), rgba(3, 4, 10, 1));
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0.2rem 0;
  font-size: 0.82rem;
}

.footer-disclaimer {
  max-width: 54rem;
  margin: 0.6rem auto 0;
}

/* Chat page */

.chat-body {
  background: radial-gradient(circle at top, #233559 0, #050713 52%, #020308 100%);
  color: var(--color-text);
  min-height: 100vh;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.chat-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(4, 8, 21, 0.97), rgba(4, 6, 16, 0.9));
  border-bottom: 1px solid rgba(83, 122, 196, 0.7);
}

.chat-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.chat-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 0, #4dd0ff, #2f8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #050713;
  box-shadow: 0 0 0 1px rgba(173, 197, 255, 0.55);
  font-size: 0.9rem;
}

.chat-title-group h1 {
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
}

.chat-title-group p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--color-muted);
}

.chat-back-link {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 208, 255, 0.55);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.chat-back-link:hover {
  background: rgba(77, 208, 255, 0.12);
  color: var(--color-text);
  border-color: rgba(77, 208, 255, 0.9);
}

.chat-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0.75rem 0.25rem;
}

.chat-window {
  width: 100%;
  max-width: 960px;
  background: linear-gradient(135deg, rgba(10, 13, 30, 0.98), rgba(6, 11, 26, 0.98));
  border-radius: 24px;
  border: 1px solid rgba(82, 120, 192, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
}

.message-row {
  display: flex;
}

.message-row.ai {
  justify-content: flex-start;
}

.message-row.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 0.7rem 0.9rem;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-row.ai .message-bubble {
  background: radial-gradient(circle at top left, rgba(46, 96, 208, 0.9), rgba(9, 12, 30, 0.98));
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(117, 150, 220, 0.9);
}

.message-row.user .message-bubble {
  background: radial-gradient(circle at top right, #4dd0ff, #2f8cff);
  border-bottom-right-radius: 4px;
  color: #050713;
  font-weight: 500;
}

.message-footnote {
  font-size: 0.78rem;
  color: rgba(219, 232, 255, 0.9);
  margin-top: 0.4rem;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #4dd0ff;
  animation: blink 1s infinite alternate;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  from {
    opacity: 0.3;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.chat-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(4, 6, 16, 0.99), rgba(4, 6, 16, 0.96));
  border-top: 1px solid rgba(78, 115, 190, 0.9);
  padding: 0.65rem 0.85rem 0.8rem;
}

.chat-form {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.chat-form textarea {
  width: 100%;
  resize: none;
  border-radius: 999px;
  border: 1px solid rgba(85, 118, 188, 0.9);
  background: radial-gradient(circle at top, rgba(12, 18, 38, 0.98), rgba(3, 5, 14, 0.98));
  padding: 0.7rem 1rem;
  color: var(--color-text);
  font-size: 0.92rem;
  max-height: 140px;
}

.chat-form textarea:focus {
  outline: none;
  border-color: rgba(77, 208, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(77, 208, 255, 0.7);
}

.chat-send-btn {
  min-width: 80px;
}

.chat-hint {
  max-width: var(--max-width);
  margin: 0.45rem auto 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-main {
    padding-inline: 0.5rem;
  }

  .chat-window {
    border-radius: 18px;
    padding-inline: 0.8rem;
    max-height: calc(100vh - 190px);
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chat-form textarea {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .chat-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-back-link {
    align-self: flex-end;
  }

  .chat-window {
    max-height: calc(100vh - 200px);
  }
}

/* Partner / affiliate section */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.partner-card {
  background: radial-gradient(circle at top left, rgba(77, 208, 255, 0.16), rgba(8, 12, 28, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94, 135, 204, 0.65);
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(1, 6, 18, 0.9);
}

.partner-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.partner-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.partner-card a {
  font-size: 0.86rem;
  color: #e5eeff;
  text-decoration: none;
}

.partner-card a:hover {
  text-decoration: underline;
}

/* responsive tweaks for partner grid */
@media (max-width: 960px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chat hyperlinks */
.chat-window a,
.chat-link {
  color: #4dd0ff;
  text-decoration: underline;
  font-weight: 500;
}

.chat-window a:hover,
.chat-link:hover {
  text-decoration: underline;
  filter: brightness(1.1);
}

/* Partner grid links */
.partner-card a {
  font-size: 0.86rem;
  color: #4dd0ff;
  text-decoration: underline;
}

.partner-card a:hover {
  text-decoration: underline;
  filter: brightness(1.1);
}
