/* ================================================
   Medes Capital — Global Stylesheet
   ================================================ */

/* --- Variables --- */
:root {
  --c-bg:       #000000;
  --c-surface:  #0a0a0a;
  --c-border:   #313133;
  --c-text:     #ffffff;
  --c-muted:    #7c7c80;
  --c-accent:   #0000f5;
  --c-accent-l: #ccccff;
  --f-sans:     'Inter', sans-serif;
  --f-serif:    'Playfair Display', serif;
  --max-w:      1400px;
  --s-pad:      clamp(24px, 6vw, 80px);   /* horizontal section padding */
  --v-pad:      clamp(64px, 9vw, 120px);  /* vertical section padding   */
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

/* --- Shared layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-pad);
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--s-pad);
  background: linear-gradient(to bottom, rgba(0,0,0,.85) 0%, transparent 100%);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(0,0,0,.95); }

.nav__logo { width: 160px; }

.nav__links {
  display: flex;
  gap: 40px;
  font-size: .9rem;
  font-weight: 500;
}
.nav__links a { transition: opacity 0.2s; }
.nav__links a:hover { opacity: .55; }

.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  padding: 12px 20px;
  transition: opacity 0.2s;
}
.nav__hamburger:hover { opacity: .7; }
.nav__hamburger img { width: 28px; }

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  padding: 32px var(--s-pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.nav__overlay.is-open { transform: translateX(0); }

.nav__overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.nav__overlay-logo { width: 140px; }
.nav__close {
  width: 20px;
  height: 20px;
  fill: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav__close:hover { opacity: .5; }

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 500;
}
.nav__overlay-links a { transition: opacity 0.2s; }
.nav__overlay-links a:hover { opacity: .5; }

.nav__overlay-social {
  display: flex;
  gap: 24px;
}
.nav__overlay-social a { opacity: .5; transition: opacity 0.2s; }
.nav__overlay-social a:hover { opacity: 1; }
.nav__overlay-social svg { width: 18px; height: 18px; fill: #fff; }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-inline: var(--s-pad);
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
}

.hero__heading {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 500;
  line-height: 1.05;
  max-width: 800px;
  color: #fff;
}
.hero__heading em {
  font-style: italic;
  font-family: var(--f-serif);
}

/* ================================================
   NOTE / MISSION
   ================================================ */
.note {
  padding-block: var(--v-pad);
  display: flex;
  justify-content: flex-end;
}

.note__text {
  color: var(--c-muted);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 800px;
}

/* ================================================
   STATISTICS
   ================================================ */
.stats { padding-bottom: var(--v-pad); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 72px;
  border-right: 1px solid var(--c-border);
}
.stat:last-child { border-right: none; }

.stat__number {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 500;
  font-style: italic;
  font-family: var(--f-serif);
  line-height: 1.1;
}

.stat__label {
  font-size: 15px;
  color: var(--c-muted);
  text-align: center;
}

/* ================================================
   APPROACH
   ================================================ */
.approach { padding-block: var(--v-pad); }

.approach__heading {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 40px;
}
.approach__heading em {
  font-style: italic;
  font-family: var(--f-serif);
}

.approach__body {
  font-size: clamp(15px, 1.8vw, 22px);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 640px;
}

/* ================================================
   SLIDER
   ================================================ */
.slides { padding-bottom: var(--v-pad); overflow: hidden; }

.blaze-track { cursor: grab; }
.blaze-track:active { cursor: grabbing; }

.slide-card {
  display: flex;
  flex-direction: row;
  background: var(--c-accent);
  min-width: 0;
}

.slide-card__img {
  width: 240px;
  height: 380px;
  object-fit: cover;
  flex-shrink: 0;
}

.slide-card__body {
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 36px;
  min-width: 0;
}

.slide-card__title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
}

.slide-card__text {
  color: var(--c-accent-l);
  font-size: 14px;
  line-height: 1.6;
}

.slide-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  opacity: .9;
  transition: opacity 0.2s;
}
.slide-card__more:hover { opacity: .5; }
.slide-card__more svg { width: 13px; height: 13px; fill: #fff; }

/* ================================================
   OPPORTUNITY
   ================================================ */
.opportunity {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-block: var(--v-pad);
}

.opportunity__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.opportunity__heading {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 28px;
}

.opportunity__body {
  font-size: clamp(15px, 1.8vw, 22px);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 520px;
}

.opportunity__img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  margin: auto;
  width: min(55%, 680px);
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

/* ================================================
   PILLARS
   ================================================ */
.pillars {
  padding-block: var(--v-pad);
  border-top: 1px solid var(--c-border);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar__title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}

.pillar__body {
  color: var(--c-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* ================================================
   GROWTH
   ================================================ */
.growth {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-block: var(--v-pad);
}

.growth__content { flex: 1; max-width: 560px; }

.growth__heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 32px;
}
.growth__heading em {
  font-style: italic;
  font-family: var(--f-serif);
}

.growth__body {
  color: var(--c-muted);
  line-height: 1.7;
  font-size: clamp(14px, 1.4vw, 17px);
  margin-bottom: 16px;
}

.growth__images {
  flex: 1;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.growth__square {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 75%;
  height: 75%;
  background: var(--c-accent);
  z-index: 0;
}

.growth__img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  max-height: 520px;
}

/* ================================================
   FORMULA
   ================================================ */
.formula {
  background: var(--c-surface);
  padding-block: var(--v-pad);
}

.formula__quote {
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 960px;
}

/* ================================================
   PLATFORM / ACCORDION
   ================================================ */
.platform { padding-block: var(--v-pad); }

.platform__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.platform__left {}

.platform__heading {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}
.platform__heading em {
  font-style: italic;
  font-family: var(--f-serif);
}

.platform__sub {
  color: var(--c-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
  margin-bottom: 40px;
}

.platform__img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 2px;
}

/* Accordion */
.accordion { display: flex; flex-direction: column; }

.accordion__item { border-bottom: 1px solid var(--c-border); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  text-align: left;
}

.accordion__label {
  font-size: 17px;
  font-weight: 500;
}

.accordion__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: #fff;
  transition: transform 0.3s ease;
}
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.7;
}
.accordion__item.is-open .accordion__body {
  max-height: 200px;
  padding-bottom: 22px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding-block: var(--v-pad);
  border-top: 1px solid var(--c-border);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer__logo { width: 130px; margin-bottom: 24px; }

.footer__disclaimer {
  color: var(--c-muted);
  font-size: 11.5px;
  line-height: 1.8;
}
.footer__disclaimer h3 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer__disclaimer h3:first-child { margin-top: 0; }
.footer__disclaimer ul { padding-left: 16px; list-style: disc; margin-block: 4px; }

.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-links a {
  font-size: 14px;
  color: var(--c-muted);
  transition: color 0.2s;
}
.footer__col-links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}

.footer__copy { font-size: 13px; color: var(--c-muted); }

.scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.scroll-top:hover { opacity: .7; }
.scroll-top img { width: 16px; }

/* ================================================
   RESPONSIVE — Tablet ≤ 1024px
   ================================================ */
@media (max-width: 1024px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }

  .platform__inner { grid-template-columns: 1fr; gap: 0; }
  .platform__img   { display: none; }

  .growth { flex-direction: column; gap: 48px; }
  .growth__images { width: 100%; }

  .opportunity__img { opacity: .25; }

  .footer__main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ================================================
   RESPONSIVE — Mobile ≤ 768px
   ================================================ */
@media (max-width: 768px) {
  .note { justify-content: flex-start; }

  .stats__grid { grid-template-columns: 1fr; }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding-block: 48px;
  }
  .stat:last-child { border-bottom: none; }

  .pillars__grid { grid-template-columns: 1fr; gap: 32px; }

  .slide-card { flex-direction: column; }
  .slide-card__img { width: 100%; height: 220px; }
  .slide-card__body { height: auto; padding: 28px; }

  .opportunity__img { display: none; }

  .growth__images { display: none; }

  .footer__main { grid-template-columns: 1fr; gap: 36px; }

  .footer__bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__heading { font-size: clamp(36px, 10vw, 60px); }
}
