/* The home page of getbrains4ai.com: the products of Brains4Ai.
   Mycodi is first (the flagship). STORMchat is second.
   The colours are the same as on the STORMchat landing page. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --mecha: #f59e0b;
  --radius: 14px;
  --gradient-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.16), transparent 42%),
    var(--bg-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-light);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* The top bar */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
  gap: 0.25rem 1rem;
  padding: 0.4rem 0;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 0.2rem 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links .nav-login {
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* The first lines */

.intro {
  padding: 3.4rem 0 1.6rem;
  text-align: center;
}

.intro h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.intro p {
  margin: 0.9rem auto 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

/* Shared parts */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow .tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-plain {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* Mycodi: the flagship */

.flagship {
  padding: 1rem 0 2.5rem;
}

.splash {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.2), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.16), transparent 50%),
    linear-gradient(160deg, #1b2440 0%, #131a2e 60%, #0f172a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.splash-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.splash .eyebrow {
  color: var(--mecha);
}

.splash .eyebrow .tag {
  background: var(--mecha);
  color: #1a1205;
}

.splash h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.splash h2 span {
  display: block;
  background: linear-gradient(100deg, #fbbf24 0%, #f59e0b 45%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.splash .lead {
  margin-top: 1.1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 34rem;
}

.splash .lead + .lead {
  margin-top: 0.7rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.btn-mecha {
  color: #1a1205;
  background: linear-gradient(100deg, #fbbf24, #f59e0b);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
}

.btn-mecha:hover {
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.5);
}

.splash-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.splash-picture {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.splash-picture:hover {
  transform: translateY(-3px) scale(1.01);
}

.splash-picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #0b1020;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step {
  background: #121a30;
  padding: 1.4rem clamp(1.2rem, 3vw, 2rem);
}

.step .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--mecha);
  font-size: 0.85rem;
}

.step h3 {
  margin-top: 0.3rem;
  font-size: 1.08rem;
}

.step p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.can {
  padding: 1.6rem clamp(1.2rem, 4vw, 3.2rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.can h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.can ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.can li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.07);
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* STORMchat: the second product */

.second {
  padding: 1rem 0 3rem;
}

.product {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.7);
}

.product .eyebrow {
  color: var(--primary-light);
}

.product h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.product .lead {
  margin-top: 0.8rem;
  color: var(--text-secondary);
  max-width: 38rem;
}

.btn-primary {
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}

.facts {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.facts li {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.facts strong {
  color: var(--text-primary);
}

.more {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--text-muted);
}

.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* The foot */

footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 1.6rem;
  background: rgba(15, 23, 42, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.6rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* A narrow screen */

@media (max-width: 860px) {
  .splash-grid,
  .product {
    grid-template-columns: 1fr;
  }

  .splash-picture {
    order: -1;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 2.2rem;
    text-align: left;
  }

  .intro p {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .actions .btn {
    width: 100%;
  }

  .nav-links {
    gap: 0 0.9rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .splash-picture {
    transition: none;
  }
}
