/* assets/css/pages/index.css */

:root{
  --index-shell: 1120px;
  --index-radius: 24px;
  --index-radius-lg: 30px;

  --index-border: rgba(255,255,255,0.10);
  --index-border-strong: rgba(255,255,255,0.16);

  --index-surface: rgba(14,18,26,0.58);
  --index-surface-strong: rgba(14,18,26,0.72);

  --index-shadow: 0 24px 80px rgba(0,0,0,0.42);
  --index-shadow-soft: 0 16px 46px rgba(0,0,0,0.28);

  --index-copy: rgba(255,255,255,0.92);
  --index-muted: rgba(255,255,255,0.72);
  --index-soft: rgba(255,255,255,0.56);
}

.page-index{
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 720px at 12% -6%, rgba(166,255,181,0.10), transparent 60%),
    radial-gradient(1100px 760px at 108% 14%, rgba(142,153,251,0.14), transparent 62%),
    linear-gradient(180deg, #080b11 0%, #0a0e15 48%, #090c12 100%);
  overflow-x: clip;
}

.index-main{
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h, 76px) + 18px);
  padding-bottom: 72px;
  isolation: isolate;
}

.index-global-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.index-ripple-canvas{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.index-global-glow{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 680px at 66% 48%, rgba(124,238,221,0.055), transparent 60%),
    radial-gradient(1260px 920px at 67% 54%, rgba(160,161,255,0.080), transparent 64%),
    radial-gradient(760px 540px at 61% 48%, rgba(255,255,255,0.020), transparent 44%);
  filter: blur(44px);
  opacity: 1;
}

.index-global-fade{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7,10,15,0.94) 0%,
      rgba(7,10,15,0.78) 15%,
      rgba(7,10,15,0.38) 36%,
      rgba(7,10,15,0.10) 62%,
      rgba(7,10,15,0.20) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7,10,15,0.22) 0%,
      rgba(7,10,15,0.03) 28%,
      rgba(7,10,15,0.10) 62%,
      rgba(7,10,15,0.34) 100%
    );
}

/* SVG bubble lens — layered optical film */

.index-bubble-lens{
  --bubble-image-opacity: 0.23;
  --bubble-image-x: 0px;
  --bubble-image-y: 0px;
  --bubble-image-scale: 1.13;
  --bubble-film-x: 0px;
  --bubble-film-y: 0px;
  --bubble-film-rotate: 0deg;
  --bubble-content-opacity: 0;

  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 224px;
  height: 224px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;

  transform:
    translate3d(-999px, -999px, 0)
    translate(-50%, -50%)
    scale(0.01);

  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint style;

  background: transparent;

  box-shadow:
    0 20px 46px rgba(0,0,0,0.20),
    inset 0 -10px 26px rgba(0,4,12,0.10);
}

.index-bubble-lens__img{
  position: absolute;
  inset: -1%;
  z-index: 1;
  width: 102%;
  height: 102%;
  display: block;
  object-fit: cover;
  object-position: center;

  opacity: var(--bubble-image-opacity);

  filter:
    saturate(0.82)
    contrast(1.08)
    brightness(0.60)
    blur(0.20px);

  -webkit-mask-image:
    radial-gradient(
      circle at 50% 50%,
      #000 0 62%,
      rgba(0,0,0,0.88) 74%,
      rgba(0,0,0,0.36) 90%,
      transparent 100%
    );

  mask-image:
    radial-gradient(
      circle at 50% 50%,
      #000 0 62%,
      rgba(0,0,0,0.88) 74%,
      rgba(0,0,0,0.36) 90%,
      transparent 100%
    );

  transform:
    translate3d(
      var(--bubble-image-x),
      var(--bubble-image-y),
      0
    )
    scale(var(--bubble-image-scale));

  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.index-bubble-lens__surface{
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: var(--bubble-content-opacity);

  transform:
    translate3d(
      var(--bubble-film-x),
      var(--bubble-film-y),
      0
    )
    rotate(var(--bubble-film-rotate));

  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.index-bubble-lens__body{
  mix-blend-mode: multiply;
}

.index-bubble-lens__sheen{
  opacity: 0.78;
  mix-blend-mode: screen;
}

.index-bubble-lens__rim-glow,
.index-bubble-lens__rim-crisp,
.index-bubble-lens__lower-flare,
.index-bubble-lens__upper-glint{
  mix-blend-mode: screen;
}

.index-bubble-lens__rim-glow{
  opacity: 0.62;
}

.index-bubble-lens__rim-crisp{
  opacity: 0.96;
}

.index-bubble-lens__lower-flare{
  opacity: 0.80;
}

.index-bubble-lens__upper-glint{
  opacity: 0.72;
}

.index-bubble-lens .index-bubble-lens__img::selection{
  background: transparent;
}

/* Independent automatic burst */

.index-bubble-burst{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 300px;
  height: 300px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;

  transform:
    translate3d(-999px, -999px, 0)
    translate(-50%, -50%)
    scale(0.01);

  transform-origin: center;
  transform-box: fill-box;
  mix-blend-mode: screen;

  filter:
    drop-shadow(0 0 4px rgba(93,230,255,0.16));

  will-change: transform, opacity;
  backface-visibility: hidden;
}

.index-bubble-burst__glow{
  opacity: 0.44;
}

.index-bubble-burst__crisp{
  opacity: 0.84;
}

.index-bubble-burst__drops{
  opacity: 0.66;
}

.index-bubble-burst .index-bubble-lens__burst-glow{
  opacity: 0.62;
  transform-origin: center;
  transform-box: fill-box;
}

.index-bubble-burst .index-bubble-lens__burst-crisp{
  opacity: 0.96;
  transform-origin: center;
  transform-box: fill-box;
}

.aurora{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 14% -8%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 68%),
    radial-gradient(980px 620px at 110% 18%, color-mix(in srgb, var(--peri) 18%, transparent), transparent 70%),
    radial-gradient(760px 520px at 50% 100%, rgba(255,255,255,0.03), transparent 72%);
  filter: saturate(1.04);
  opacity: 0.92;
}

.index-main > *:not(.aurora):not(.index-global-bg){
  position: relative;
  z-index: 1;
}

.index-section{
  padding: 18px 0;
}

.index-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--index-soft);
}

/* HERO */

.index-hero{
  position: relative;
  min-height: 760px;
  padding-top: 24px;
  padding-bottom: 12px;
  overflow: clip;
}

.index-hero__copy{
  position: relative;
  z-index: 3;
  width: min(100%, 500px);
  padding: 72px 0 40px;
}

.index-hero__title{
  max-width: 8.3ch;
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 5.8vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 400;
  color: #fff;
  text-wrap: balance;
}

.index-hero__lead{
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  line-height: 1.65;
  color: var(--index-copy);
}

/* SPLIT */

.index-split{
  margin-top: -20px;
  padding-top: 0;
  padding-bottom: 12px;
}

.index-grid{
  display: grid;
  gap: 16px;
}

.index-grid--2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.index-card{
  --card-accent-rgb: 255,255,255;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  --card-glow-opacity: 0;
  --card-sheen-opacity: 0;
  

  position: relative;
  isolation: isolate;
  overflow: hidden;

  height: 100%;
  padding: 24px 22px 22px;
  border-radius: var(--index-radius);
  border: 1px solid var(--index-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.014)),
    var(--index-surface);
  backdrop-filter: blur(12px) saturate(1.03);
  -webkit-backdrop-filter: blur(12px) saturate(1.03);
  box-shadow: var(--index-shadow-soft);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.index-card::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;

  background:
    radial-gradient(
      260px circle at var(--card-glow-x) var(--card-glow-y),
      rgba(255,255,255,0.13) 0%,
      rgba(var(--card-accent-rgb),0.16) 20%,
      rgba(var(--card-accent-rgb),0.075) 40%,
      rgba(var(--card-accent-rgb),0.025) 56%,
      transparent 74%
    );

  opacity: var(--card-glow-opacity);
  transition: opacity 180ms ease;
}

.index-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.03) 20%,
      transparent 42%
    );

  opacity: var(--card-sheen-opacity);
  transition: opacity 180ms ease;
}

.index-card > *{
  position: relative;
  z-index: 1;
}

.index-card:hover{
  transform: translateY(-2px);
  border-color: var(--index-border-strong);
  box-shadow: 0 20px 48px rgba(0,0,0,0.30);
}

.index-card__eyebrow{
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--index-soft);
}

.index-card h3{
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
}

.index-card p{
  margin: 0 0 18px;
  max-width: none;
  color: var(--index-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.index-card--path{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.index-card--path .btn{
  align-self: flex-start;
  margin-top: auto;
}

/* Individual path-card colors */

/* Education — Peri #8E99FB */

.index-card--education{
  --card-accent-rgb: 142,153,251;

  border-color: rgba(142,153,251,0.18);

  background:
    linear-gradient(
      145deg,
      rgba(142,153,251,0.105) 0%,
      rgba(142,153,251,0.045) 46%,
      rgba(255,255,255,0.016) 100%
    ),
    var(--index-surface);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.035);
}

.index-card--education:hover{
  border-color: rgba(142,153,251,0.34);

  background:
    linear-gradient(
      145deg,
      rgba(142,153,251,0.155) 0%,
      rgba(142,153,251,0.070) 48%,
      rgba(255,255,255,0.022) 100%
    ),
    var(--index-surface);

  box-shadow:
    0 20px 48px rgba(0,0,0,0.30),
    0 0 28px rgba(142,153,251,0.10),
    inset 0 1px 0 rgba(255,255,255,0.045);
}


/* Corporate — Seafoam #A6FFB5 */

.index-card--corporate{
  --card-accent-rgb: 166,255,181;

  border-color: rgba(166,255,181,0.17);

  background:
    linear-gradient(
      145deg,
      rgba(166,255,181,0.085) 0%,
      rgba(166,255,181,0.035) 46%,
      rgba(255,255,255,0.014) 100%
    ),
    var(--index-surface);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.035);
}

.index-card--corporate:hover{
  border-color: rgba(166,255,181,0.32);

  background:
    linear-gradient(
      145deg,
      rgba(166,255,181,0.135) 0%,
      rgba(166,255,181,0.060) 48%,
      rgba(255,255,255,0.020) 100%
    ),
    var(--index-surface);

  box-shadow:
    0 20px 48px rgba(0,0,0,0.30),
    0 0 28px rgba(166,255,181,0.09),
    inset 0 1px 0 rgba(255,255,255,0.045);
}

/* BUTTON POLISH */

.page-index .btn{
  position: relative;
  overflow: hidden;
}

.page-index .btn.primary{
  box-shadow: 0 10px 28px rgba(255,255,255,0.08);
}

.page-index .btn.primary:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 14px 38px rgba(255,255,255,0.10);
}

.page-index .btn.ghost:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 14px 34px rgba(0,0,0,0.28);
}

/* RESPONSIVE */

@media (max-width: 980px){
  .index-grid--2{
    grid-template-columns: 1fr;
  }

  .index-hero{
    min-height: 640px;
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .index-hero__copy{
    width: min(100%, 460px);
    padding: 42px 0 24px;
  }

  .index-hero__title{
    max-width: 8.8ch;
    font-size: clamp(2.3rem, 7vw, 4.2rem);
    line-height: 0.97;
  }

  .index-hero__lead{
    font-size: 1rem;
  }

  .index-split{
    margin-top: -8px;
  }

  .index-card h3{
    font-size: 1.28rem;
  }

  .index-card p{
    font-size: 0.95rem;
  }
}

@media (max-width: 640px){
  .index-main{
    padding-top: calc(var(--header-h, 76px) + 18px);
    padding-bottom: 56px;
  }

  .index-section{
    padding: 14px 0;
  }

  .index-hero{
    min-height: 620px;
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .index-hero__copy{
    width: 100%;
    padding: 20px 0 12px;
  }

  .index-hero__title{
    max-width: 9ch;
    font-size: clamp(2.1rem, 10vw, 3.7rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .index-hero__lead{
    max-width: 30ch;
  }

  .index-bubble-lens{
    width: 144px;
    height: 144px;
  }

  .index-bubble-burst{
    width: 220px;
    height: 220px;
  }

  .index-global-fade{
    background:
      linear-gradient(
        180deg,
        rgba(7,10,15,0.20) 0%,
        rgba(7,10,15,0.05) 34%,
        rgba(7,10,15,0.18) 100%
      ),
      linear-gradient(
        90deg,
        rgba(7,10,15,0.76) 0%,
        rgba(7,10,15,0.35) 44%,
        rgba(7,10,15,0.12) 100%
      );
      
  }

  .index-split{
    margin-top: -22px;
  }

  .index-card{
    padding: 20px 18px 18px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce){
  .index-card,
  .page-index .btn,
  .index-bubble-lens,
  .index-bubble-burst{
    transition: none !important;
  }

  .index-card:hover{
    transform: none;
  }
}
