/* ====== Design tokens ====== */
:root {
  --bg: #0b0d13;
  --bg-alt: #0f1219;
  --card: #121624;
  --text: #e8ecf3;
  --muted: #b9c2d0;
  --brand: #6aa7ff;
  --brand-2: #9ef3d6;
  --accent: #b69cff;

  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --gap: 24px;
  --card-default-color: #2f5074;
}

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

html,
body {
  padding: 0;
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -20%, rgba(106, 167, 255, 0.15), transparent 60%),
    radial-gradient(1000px 700px at 0% -10%, rgba(158, 243, 214, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans",
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.highlight {
  color: #5badff; /* light yellow */
  font-weight: 700; /* optional, makes it pop */
}

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

/* ====== Layout helpers ====== */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}
.section p {
  font-size: 20px;
  font-weight: bold;
}
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(10px);
  background: rgba(11, 13, 19, 0.6);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--gap);
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo {
  width: 32px;
  height: 32px;
}
.brand__logo--sm {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}
.brand__name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Nav */
.nav-toggle {
  display: none;
}
.nav-toggle__btn {
  justify-self: end;
  width: 40px;
  height: 36px;
  display: none;
  cursor: pointer;
}
.nav-toggle__btn span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 7px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}
.nav__list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.nav__list a:hover {
  color: var(--text);
}
.nav__cta {
  display: flex;
  gap: 10px;
}

/* ====== Buttons & forms ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 20px;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 22px rgba(106, 167, 255, 0.06);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: linear-gradient(180deg, var(--brand), #467ed9);
  color: #fff;
}
.btn--primary:hover {
  filter: brightness(1.05);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}
.btn--lg {
  padding: 14px 22px;
}

/* ====== Hero ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
}
.hero__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
  text-shadow: 4px 6px 6px rgba(0, 0, 0, 0.6); /* offset-x, offset-y, blur, color */
}
.lead {
  margin: 50px 0 122px 0;
  font-size: 27px;
  max-width: 58ch;
  text-shadow: 4px 6px 6px rgba(0, 0, 0, 0.6); /* offset-x, offset-y, blur, color */
  font-weight: bold;
}
.hero__actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}
.hero__badges {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.hero__media {
  background: linear-gradient(180deg, rgba(182, 156, 255, 0.12), rgba(106, 167, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* ====== Cards / specialties ====== */
.section__head {
  text-align: left;
  margin-bottom: 36px;
}
.section__head h2 {
  font-size: clamp(34px, 3.5vw, 46px);
  margin: 0 0 8px;
}
.section__head p {
  font-size: 20px;
  margin: 0 0 8px;
}

.cards {
  display: grid;
  gap: 16px;
}
.cards--grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards--grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
  transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}
.card__title {
  margin: 6px 0 0;
  font-size: 30px;
}
.card__text {
  margin: 0;
  font-size: 20px;
}
.card__link {
  margin-top: 4px;
  font-weight: 600;
  font-size: 20px;
  color: var(--brand);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px dashed rgba(106, 167, 255, 0.5);
}
.card__link:hover {
  border-bottom-style: solid;
}

/* ====== Features ====== */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Default: Desktop */
.featuresFour {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 900px) {
  .featuresFour {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 480px) {
  .featuresFour {
    grid-template-columns: 1fr;
  }
}
.featureProblem h3 {
  font-size: 25px;
}
.featureSolution h3 {
  font-size: 25px;
}
.featureSolution .flip-card-front {
  --card-default-color: #6b94b5;
}
.featureSolution .flip-card-back {
  --card-default-color: #6b94b5;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* ====== Proof / outcomes ====== */
.proof {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.proof__stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  font-size: 20px;
}
.stat__value {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  letter-spacing: 0.3px;
  font-weight: bold;
}

/* ====== CTA ====== */
.cta {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(106, 167, 255, 0.1), rgba(158, 243, 214, 0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta__inner p {
  font-size: 20px;
  font-weight: bold;
}
.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 36px);
}
.cta p {
  margin: 0 0 18px;
}

/* ====== Footer ====== */
.site-footer {
  padding: 40px 0 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 20px;
}
.footer__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  align-items: start;
}
.footer__nav h4 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
}
.footer__cta h4 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
}
.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
}
.footer__nav a:hover {
  color: var(--text);
}
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legal__links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
}
.legal__links a:hover {
  color: var(--text);
}

/* ====== Forms ====== */
.form {
  display: flex;
  gap: 8px;
}
.form input[type="email"] {
  flex: 1;
  background: #0b0f1a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}
.form input[type="email"]::placeholder {
  color: #7b8798;
  font-size: 20px;
}

/* ====== Responsive ====== */
@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .features,
  .cards--grid-3,
  .proof {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle__btn {
    display: inline-block;
  }
  .nav {
    position: absolute;
    inset: 60px 0 auto 0;
    background: rgba(11, 13, 19, 0.95);
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 16px;
    padding: 16px;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav__list {
    flex-direction: column;
  }
  .nav__cta {
    flex-direction: column;
  }
  .header__inner {
    grid-template-columns: 1fr auto;
  }
  .nav-toggle:checked ~ .nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked + .nav-toggle__btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle__btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle__btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    padding-top: 56px;
  }
  .features,
  .cards--grid-3,
  .proof {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Accessibility helpers ====== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Scroll reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url("../img/galaxy.jpg") center/cover no-repeat;
  position: relative;
  color: var(--text);
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* Optional: add a dark overlay for better text contrast */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit; /* copy background */
  background-size: cover;
  filter: blur(2px);
  transform: scale(1.1); /* prevents edge clipping */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1; /* keep text above blur */
}

/* Ensure content sits above overlay */
.hero__inner {
  position: relative;
  z-index: 1;
}

/* SVG logo as background decoration */
.hero::after {
  content: "";
  position: absolute;
  right: -10%; /* push a bit off screen */
  top: 50%;
  transform: translateY(-50%);
  width: 800px; /* make it huge */
  height: 800px;
  background: url("../img/logo.svg") no-repeat center/contain;
  opacity: 0.1; /* subtle watermark effect */
  pointer-events: none; /* don’t block clicks */
  z-index: 0;
}

/* ===== History Layout ===== */
.history {
  display: grid;
  grid-template-columns: 1fr 1fr; /* text smaller, images bigger */
  gap: 40px;
  align-items: start;
}

.histy-section {
  background: #000; /* black background like your slide */
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Background map (optional) */
.histy-section::before {
  content: "";
  background: url("../image/drug.png") no-repeat center center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  filter: blur(6px);
}

.histy-section > * {
  position: relative;
  z-index: 1;
}

.history__content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.history__points {
  list-style: none;
  padding: 0;
}

.history__points li {
  margin-bottom: 1.5em;
  font-size: 20px;
  font-weight: bold; 
  line-height: 1.6;
  color: var(--text);
}

.history__points .highlight {
  color: #5badff; /* light green highlight */
  font-weight: 600;
}

.bullet {
  margin-right: 8px;
}

/* ===== Right-side 2x2 Image Grid ===== */
.history__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.history__grid img {
  width: 95%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive: stack images under text on small screens */
@media (max-width: 900px) {
  .history {
    grid-template-columns: 1fr; /* stack */
  }
  .history__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Core Values Section */
.core-values {
  background: #000; /* black background like your slide */
  color: #fff;
  position: relative;
  overflow: hidden;
}

.core-values__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

/* Background map (optional) */
.core-values::before {
  content: "";
  background: url("../image/canada.png") no-repeat center center;
  background-size: cover;
  opacity: 0.5; /* faint like your slide */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}


/* Flip card container */
.flip-card {
  perspective: 1200px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  cursor: pointer;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: 320px;
}

/* Inner wrapper for flipping */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
  transform-style: preserve-3d;
}

/* Flip on .flipped class */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Card faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Front face styling */
.flip-card-front {
  background: linear-gradient(180deg, var(--card-default-color), transparent);
  color: #fff;
}

/* Back face styling */
.flip-card-back {
  background: linear-gradient(180deg, #222, var(--card-default-color) 80%);
  color: #fff;
  transform: rotateY(180deg);
}

/* Wiggle animation */
@keyframes wiggle {
  0%, 100% { transform: rotateZ(0deg); }
  15% { transform: rotateZ(-4deg); }
  30% { transform: rotateZ(4deg); }
  45% { transform: rotateZ(-3deg); }
  60% { transform: rotateZ(3deg); }
  75% { transform: rotateZ(-2deg); }
  90% { transform: rotateZ(2deg); }
}

/* Hint animation on card (not flipped) */
.flip-card:not(.flipped) {
  animation: wiggle 1.2s ease-in-out 1.5s 2;
}