/* ============================================================
   PredyctBio.ai — Main Stylesheet
   Colors: #2A2766 (navy), #6B0D37 (burgundy), #240F2A (near-black)
   Font: Montserrat (wordmark match) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #2A2766;
  --navy-dark: #1c1a44;
  --burgundy:  #6B0D37;
  --plum:      #240F2A;
  --white:     #ffffff;
  --off-white: #f8f8fc;
  --light-gray:#eef0f6;
  --mid-gray:  #8890a8;
  --text:      #1a1a2e;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(42,39,102,0.10);
  --shadow-lg: 0 8px 40px rgba(42,39,102,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--plum {
  background: linear-gradient(135deg, var(--plum) 0%, var(--navy) 100%);
  color: var(--white);
}
.section--plum h2,
.section--plum h3 { color: var(--white); }

.section--light { background: var(--off-white); }

.text-center { text-align: center; }
.text-white  { color: var(--white); }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  display: block;
}
.section--dark .eyebrow,
.section--plum .eyebrow { color: #e0a0c0; }

.section-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-intro p {
  font-size: 1.1rem;
  color: var(--mid-gray);
}
.section--dark .section-intro p,
.section--plum .section-intro p { color: rgba(255,255,255,0.75); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: #850f44;
  border-color: #850f44;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107,13,55,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.82);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}

.nav__cta {
  background: var(--burgundy) !important;
  color: var(--white) !important;
  border-radius: 6px;
  padding: 8px 18px !important;
}
.nav__cta:hover {
  background: #850f44 !important;
}

.nav__portal {
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  color: rgba(255,255,255,0.82) !important;
}
.nav__portal:hover {
  border-color: var(--white) !important;
  color: var(--white) !important;
  background: rgba(255,255,255,0.08) !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--plum) 0%, var(--navy) 55%, #3d2070 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero h1 span { color: #c8a0cc; }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* ── Feature Cards ────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--burgundy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 10px; }
.card p  { color: var(--mid-gray); font-size: 0.95rem; margin: 0; }

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.stat__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #c8a0cc;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
}

/* ── Phase Timeline ───────────────────────────────────────── */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  overflow: hidden;
}

.phase {
  padding: 24px 18px;
  border-right: 1.5px solid var(--light-gray);
  position: relative;
}
.phase:last-child { border-right: none; }

.phase__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.phase h4 { font-size: 0.88rem; margin-bottom: 8px; color: var(--navy); }
.phase ul { list-style: none; padding: 0; }
.phase ul li {
  font-size: 0.78rem;
  color: var(--mid-gray);
  padding: 2px 0;
  border-bottom: 1px solid var(--light-gray);
}
.phase ul li:last-child { border-bottom: none; }

/* ── Two-column layout ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col--reverse .two-col__visual { order: -1; }

.two-col__visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--plum) 100%);
  border-radius: 16px;
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col__text h2 { margin-bottom: 16px; }
.two-col__text p  { color: var(--mid-gray); margin-bottom: 24px; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--light-gray);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  color: var(--burgundy);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 72px 24px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Modality tags ────────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  background: rgba(42,39,102,0.08);
  color: var(--navy);
  border: 1px solid rgba(42,39,102,0.16);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.section--dark .tag, .section--plum .tag {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.20);
}

/* ── Form ─────────────────────────────────────────────────── */
.form-page {
  background: var(--off-white);
  min-height: calc(100vh - 68px);
  padding: 64px 0;
}

.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}

.form-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.form-card .lead { color: var(--mid-gray); font-size: 1rem; margin-bottom: 36px; }

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d4d8e8;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(42,39,102,0.10);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-submit { margin-top: 32px; }
.form-submit .btn { width: 100%; justify-content: center; }

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-top: 16px;
}

.success-box {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  margin-top: 24px;
  color: #166534;
  font-weight: 600;
}

/* ── Product page specifics ───────────────────────────────── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--navy), var(--burgundy));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}
.step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--burgundy));
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 1rem; margin-bottom: 10px; }
.step p   { font-size: 0.875rem; color: var(--mid-gray); }

.ich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.ich-tag {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--plum);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand img { height: 28px; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; max-width: 300px; line-height: 1.65; }

.footer__col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col--reverse .two-col__visual { order: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .how-steps::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
