/* =========================
   MediMate Site Styles
   Clean version without fixed/sticky navbar
   ========================= */

/* =========================
   Base
   ========================= */
body {
  font-family: "Montserrat", sans-serif;
}

p {
  color: #8f8f8f;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  line-height: 1.5;
  font-weight: 900;
  margin: 0;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  line-height: 1.5;
  font-weight: 800;
  margin: 0;
}

h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  margin: 0;
}

.container-fluid {
  padding: 3% 15% 7%;
}

/* =========================
   Hero / Title
   ========================= */
#title {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(4, 6, 18, 0.95) 0%, rgba(4, 6, 18, 0.8) 25%, rgba(10, 16, 48, 0.4) 50%, rgba(10, 16, 48, 0) 75%),
    radial-gradient(circle at 50% 40%, rgba(8, 12, 36, 0.85) 0%, rgba(8, 12, 36, 0.4) 40%, rgba(8, 12, 36, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 10, 0.9) 0%, rgba(20, 28, 70, 0.3) 50%, rgba(39, 45, 79, 0.1) 100%),
    #272d4f;
  color: #fff;
}

#title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(110, 145, 255, 0.07) 0%, rgba(110, 145, 255, 0.04) 18%, rgba(110, 145, 255, 0) 42%),
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 24%);
}

#title .container-fluid {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  margin-bottom: 20px;
}

.sub-heading {
  margin-top: 0;
  margin-bottom: 24px;
}

/* =========================
   Navigation
   ========================= */
.navbar {
  padding-bottom: 4.5rem;
}

.navbar-brand {
  font-family: "Ubuntu", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
}

.nav-item {
  padding: 0 18px;
}

.nav-link {
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
}

/* =========================
   Hero buttons and image
   ========================= */
.download-button {
  margin: 5% 3% 5% 0;
}

.title-image {
  width: 70%;
  position: absolute;
  right: 50px;
}

/* =========================
   Features
   ========================= */
#features {
  padding: 7% 15%;
  background-color: #fff;
  position: relative;
}

.feature-box {
  text-align: center;
  padding: 5%;
}

.icon {
  color: #99d63e;
  margin-bottom: 10%;
}

.icon:hover {
  color: #e13f5a;
}

/* =========================
   Testimonials
   ========================= */
#testimonials {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(4, 6, 18, 0.95) 0%, rgba(4, 6, 18, 0.8) 25%, rgba(10, 16, 48, 0.4) 50%, rgba(10, 16, 48, 0) 75%),
    radial-gradient(circle at 50% 40%, rgba(8, 12, 36, 0.85) 0%, rgba(8, 12, 36, 0.4) 40%, rgba(8, 12, 36, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 10, 0.9) 0%, rgba(20, 28, 70, 0.3) 50%, rgba(39, 45, 79, 0.1) 100%),
    #272d4f;
  color: #fff;
}

#testimonials > *:not(canvas) {
  position: relative;
  z-index: 1;
}

.carousel-item {
  padding: 7% 20%;
}

.testimonial-text {
  margin-bottom: 16px;
}

.testimonial-image {
  width: 10%;
  border-radius: 100%;
  margin: 20px;
}

/* =========================
   Press
   ========================= */
#press {
  background-color: #ffffff;
  text-align: center;
  padding-bottom: 3%;
}

.press-logo {
  width: 15%;
  margin: 20px 20px 50px;
}

/* =========================
   Pricing
   ========================= */
#pricing {
  padding: 100px 15%;
}

#pricing h2 {
  margin-bottom: 12px;
}

.pricing-intro {
  color: #8f8f8f;
  margin: 0 0 40px;
  max-width: 900px;
}

.pricing-column {
  padding: 3% 3%;
  text-align: center;
}

.pricing-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  margin: 20px 0 18px;
}

.pricing-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 18px;
  max-width: 320px;
}

.pricing-list li {
  margin: 10px 0;
  color: #8f8f8f;
}

.pricing-note {
  font-weight: 700;
  margin-bottom: 18px;
}

.pricing-seo {
  margin-top: 26px;
  color: #8f8f8f;
  max-width: 900px;
}

/* =========================
   CTA
   ========================= */
#cta {
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(225, 63, 90, 0.15) 0%, rgba(225, 63, 90, 0.25) 35%, rgba(180, 30, 60, 0.5) 70%, rgba(140, 10, 40, 0.85) 100%),
    #e13f5a;
  padding: 7% 20%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 120, 140, 0.18) 0%, rgba(255, 120, 140, 0.08) 30%, rgba(255, 120, 140, 0) 65%);
}

.cta-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cta-subtext {
  max-width: 720px;
  margin: 16px auto 32px;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   Footer
   ========================= */
#footer {
  padding: 7% 15%;
  text-align: center;
}

.social-icon {
  margin: 20px 10px;
}

/* =========================
   Coming soon badge
   ========================= */
.btn-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.coming-soon-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.95;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-dark .coming-soon-badge {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-light .coming-soon-badge {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
}

button[disabled].btn-with-badge {
  cursor: not-allowed;
  opacity: 0.85;
}

/* =========================
   Early access form
   ========================= */
.medimate-early-interest {
  padding: 40px 20px;
}

.medimate-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 14px;
}

.checkbox-row label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

#formMessage {
  margin-top: 12px;
}

/* =========================
   Stardust canvas layers
   ========================= */
#stardust-canvas,
#stardust-canvas-testimonials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.1);
  mix-blend-mode: screen;
}

/* =========================
   Blog
   ========================= */
#blog-page-hero {
  background-color: #272d4f;
  color: #fff;
}

#blog-page-hero .container-fluid {
  padding: 3% 8% 6%;
}

.blog-hero-copy {
  max-width: 820px;
  padding-top: 40px;
}

.blog-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 16px;
}

#blog-page-hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}

.blog-hero-subtext {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 700px;
  opacity: 0.95;
}

#blog-listing {
  padding: 80px 8%;
  background: #f8f9fc;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image-placeholder {
  min-height: 180px;
  background: linear-gradient(135deg, rgba(39, 45, 79, 1), rgba(79, 121, 181, 0.95));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 14px;
}

.blog-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 20px;
}

.blog-card .btn {
  margin-top: auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 10px 18px;
}

#blog-post-content {
  background: #ffffff;
  padding: 70px 8%;
}

.blog-post-article {
  max-width: 860px;
  margin: 0 auto;
}

.blog-post-article p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 22px;
}

.blog-post-article h2 {
  font-size: 1.7rem;
  line-height: 1.35;
  margin-top: 36px;
  margin-bottom: 14px;
}

.blog-post-back {
  margin-top: 40px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1350px) {
  #title {
    text-align: center;
  }

  .title-image {
    position: static;
    display: block;
    width: 90%;
    max-width: 520px;
    height: auto;
    margin: 24px auto 0;
    right: auto;
  }

  .download-button {
    margin: 12px 10px 0 0;
  }
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  #blog-page-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  #title .container-fluid {
    padding: 10% 6% 10%;
  }

  #features {
    padding: 12% 8%;
  }

  #pricing {
    padding: 60px 20px;
  }

  .pricing-column {
    padding: 3% 10%;
    text-align: center;
  }

  #cta {
    padding: 12% 8%;
  }

  #footer {
    padding: 12% 8%;
  }

  .navbar {
    padding-bottom: 1.2rem;
  }

  .navbar-brand {
    font-size: 2.2rem;
  }

  .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.45rem 0.7rem;
    border-radius: 14px;
    box-shadow: none;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    background: rgba(39, 45, 79, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    margin-top: 14px;
    padding: 14px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .navbar-nav {
    gap: 0;
  }

  .nav-item {
    margin: 0;
    padding: 0;
  }

  .nav-link {
    display: block;
    text-align: center;
    padding: 12px 0;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  #title,
  #title h1,
  #title p {
    text-align: center;
  }

  #title .hero-tagline {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  #title .sub-heading {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 18px;
  }

  #title .download-button {
    width: 100%;
    max-width: 320px;
    margin: 10px auto 0;
    display: block;
  }

  .btn-with-badge {
    justify-content: center;
  }

  .title-image {
    position: static;
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 22px auto 0;
    right: auto;
  }

  h2 {
    font-size: 2rem;
  }

  .cta-heading {
    font-size: 2.2rem;
  }

  .pricing-price {
    font-size: 1.9rem;
  }

  #testimonials {
    text-align: center;
  }

  .carousel-item {
    padding: 12% 10%;
  }

  .testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 12px;
  }

  #testimonials em {
    display: block;
    text-align: center;
  }

  #blog-page-hero .container-fluid {
    padding: 6% 6% 10%;
  }

  .blog-hero-copy {
    padding-top: 24px;
    text-align: center;
    margin: 0 auto;
  }

  #blog-page-hero h1 {
    font-size: 2rem;
  }

  .blog-hero-subtext {
    font-size: 1rem;
  }

  #blog-listing,
  #blog-post-content {
    padding: 56px 20px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card h2 {
    font-size: 1.25rem;
  }

  .blog-post-article p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .blog-post-article h2 {
    font-size: 1.4rem;
  }
}

html {
  scroll-behavior: smooth;
}

.btn {
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}