/* =========================================================
   BEAN RUN — Landing Page
   Modern glassmorphism · dark theme · blue accents
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #060912;
  --bg-2:          #0a0f1e;
  --surface:       rgba(255, 255, 255, 0.045);
  --surface-2:     rgba(255, 255, 255, 0.08);
  --stroke:        rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  --text:          #eaf0ff;
  --text-dim:      #a7b3cf;
  --text-faint:    #6d7a99;

  --blue:          #3d82ff;
  --blue-bright:   #5aa0ff;
  --cyan:          #46d6ff;
  --grad-blue:     linear-gradient(135deg, #4f8bff 0%, #2f6bff 45%, #1b4fff 100%);
  --grad-glow:     radial-gradient(circle at 50% 0%, rgba(61,130,255,.55), transparent 70%);

  --radius:        22px;
  --radius-sm:     14px;
  --shadow-soft:   0 20px 50px -20px rgba(0, 0, 0, .65);
  --shadow-glow:   0 10px 40px -8px rgba(47, 107, 255, .55);

  --maxw:          1180px;
  --ease:          cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  /* subtle ambient blue glows behind everything */
  background-image:
    radial-gradient(45rem 45rem at 80% -10%, rgba(47,107,255,.16), transparent 60%),
    radial-gradient(40rem 40rem at 0% 20%, rgba(70,214,255,.08), transparent 55%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.1; letter-spacing: -.02em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.section { padding-block: clamp(70px, 11vw, 140px); position: relative; }

.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 66px); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-bright);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(61,130,255,.10); border: 1px solid rgba(61,130,255,.25);
  margin-bottom: 18px;
}
.section__title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
.section__lead { margin-top: 16px; color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Particle canvas ---------- */
#particles {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* keep content above canvas */
.nav, main, .footer { position: relative; z-index: 2; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 9, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }

.nav__brand { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: .04em; }
.nav__logo { font-size: 1.35rem; filter: drop-shadow(0 2px 8px rgba(61,130,255,.5)); }
.nav__name { font-size: 1.05rem; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: .94rem; color: var(--text-dim); font-weight: 500;
  position: relative; padding: 6px 2px; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad-blue); border-radius: 2px; transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.music-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--stroke); background: var(--surface);
  color: var(--text-dim); font-size: 1.1rem;
  transition: all .3s var(--ease);
}
.music-btn:hover { color: var(--text); border-color: var(--stroke-strong); transform: translateY(-2px); }
.music-btn.is-playing { color: #fff; background: var(--grad-blue); border-color: transparent; box-shadow: var(--shadow-glow); }
.music-btn.is-playing .music-btn__icon { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--stroke); background: var(--surface); }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  padding: 16px 30px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn__icon { flex-shrink: 0; }

.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 46px -6px rgba(47,107,255,.75); }
.btn--primary:active { transform: translateY(-1px) scale(.99); }

/* animated glow ring for primary buttons */
.btn[data-glow]::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--grad-blue); filter: blur(16px); opacity: .55;
  transition: opacity .3s; animation: glowPulse 2.8s ease-in-out infinite;
}
.btn[data-glow]:hover::after { opacity: .9; }
@keyframes glowPulse { 0%,100% { opacity: .4; } 50% { opacity: .75; } }

.btn--glass {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { transform: translateY(-3px) scale(1.02); background: rgba(255,255,255,.12); border-color: var(--blue-bright); box-shadow: 0 12px 34px -12px rgba(61,130,255,.5); }

.btn--mini { padding: 9px 18px; font-size: .88rem; background: var(--grad-blue); color: #fff; border-radius: 999px; }
.btn--mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ripple effect (JS-driven span) */
.ripple > .ripple__wave {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, .45); pointer-events: none;
  animation: ripple .6s linear; mix-blend-mode: overlay;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; }

.hero__bg {
  position: absolute; inset: -8% 0 0 0; z-index: 0;
  background: url("assets/bg.jpg") center/cover no-repeat;
  transform: scale(1.08); will-change: transform;
  filter: saturate(115%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,9,18,.55) 0%, rgba(6,9,18,.72) 55%, var(--bg) 100%),
    radial-gradient(60rem 40rem at 75% 40%, rgba(47,107,255,.22), transparent 60%);
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 5vw, 70px);
  width: 100%; padding-block: 60px;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--text-dim);
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(70,214,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,214,255,.65); } 70% { box-shadow: 0 0 0 10px rgba(70,214,255,0); } 100% { box-shadow: 0 0 0 0 rgba(70,214,255,0); } }

.hero__title { font-size: clamp(3.4rem, 11vw, 7.5rem); font-weight: 800; margin-bottom: 22px; }
.hero__title-line { display: block; }
.hero__title-accent {
  background: linear-gradient(120deg, #6aa6ff, #2f6bff 60%, #46d6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(47,107,255,.45));
}

.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 30rem; margin-bottom: 36px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero__stats { display: flex; gap: 38px; list-style: none; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: "Sora", sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text); }
.hero__stats span { font-size: .82rem; color: var(--text-faint); letter-spacing: .04em; text-transform: uppercase; }

/* hero art */
.hero__art { position: relative; display: grid; place-items: center; }
.hero__art-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-glow); filter: blur(20px); opacity: .8;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.12); opacity: .9; } }
.hero__img { position: relative; z-index: 1; width: min(100%, 500px); filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }

.floating { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* scroll hint */
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid var(--stroke-strong); border-radius: 14px; position: relative; }
.mouse::before { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--blue-bright); border-radius: 2px; transform: translateX(-50%); animation: scroll 1.8s ease infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* =========================================================
   CARDS (shared glass style)
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   FEATURES
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature-card {
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(24rem 16rem at var(--mx,50%) var(--my,0%), rgba(61,130,255,.16), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(61,130,255,.4); box-shadow: 0 30px 60px -30px rgba(47,107,255,.5); }
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(61,130,255,.22), rgba(70,214,255,.10));
  border: 1px solid rgba(61,130,255,.28);
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: .97rem; }

.feature-card--cta { background: linear-gradient(150deg, rgba(47,107,255,.18), rgba(255,255,255,.03)); border-color: rgba(61,130,255,.3); }
.feature-card__link { display: inline-block; margin-top: 16px; color: var(--blue-bright); font-weight: 600; transition: transform .25s; }
.feature-card__link:hover { transform: translateX(4px); }

/* =========================================================
   SCREENSHOTS
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.shot {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: var(--bg-2);
  aspect-ratio: 4 / 3; display: block; text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,9,18,.85));
  opacity: .7; transition: opacity .4s;
}
.shot__caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-weight: 600; font-size: .95rem; color: #fff;
  transform: translateY(6px); opacity: .85; transition: transform .4s var(--ease), opacity .4s;
}
.shot:hover { transform: translateY(-6px); border-color: var(--blue-bright); box-shadow: 0 30px 60px -26px rgba(47,107,255,.55); }
.shot:hover img { transform: scale(1.08); }
.shot:hover::after { opacity: .55; }
.shot:hover .shot__caption { transform: translateY(0); opacity: 1; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.about__frame { padding: 12px; overflow: hidden; }
.about__frame img { border-radius: calc(var(--radius) - 10px); width: 100%; }
.about__content p { color: var(--text-dim); margin-top: 18px; font-size: 1.05rem; }
.about__content .section__title { margin-top: 12px; }

.about__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.about__tags li {
  font-size: .9rem; font-weight: 600; color: var(--text);
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .3s var(--ease), border-color .3s;
}
.about__tags li:hover { transform: translateY(-3px); border-color: var(--blue-bright); }

/* =========================================================
   CONTACT
   (glassmorphism card — reuses shared .card + theme tokens)
   ========================================================= */
.contact__card {
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 48px) clamp(26px, 5vw, 44px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(30rem 20rem at 50% -20%, rgba(47,107,255,.20), transparent 65%);
  pointer-events: none;
}
.contact__card:hover { transform: translateY(-6px); border-color: rgba(61,130,255,.35); box-shadow: 0 30px 60px -28px rgba(47,107,255,.5); }
.contact__card > * { position: relative; z-index: 1; }

.contact__avatar {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.1rem;
  background: linear-gradient(140deg, rgba(61,130,255,.24), rgba(70,214,255,.10));
  border: 1px solid rgba(61,130,255,.3);
  box-shadow: var(--shadow-glow);
}
.contact__name { font-size: 1.5rem; font-weight: 800; }

.contact__edu { color: var(--text-dim); font-size: 1rem; line-height: 1.5; }
.contact__edu dd { margin: 0; }
.contact__edu dd:first-of-type { color: var(--text); font-weight: 600; }

/* WhatsApp button — reuses .btn (ripple handled by shared .ripple JS) */
.wa-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 55%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 10px 34px -10px rgba(37, 211, 102, .6);
}
.wa-btn::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, #25d366, #128c7e);
  filter: blur(16px); opacity: .5;
  transition: opacity .3s; animation: glowPulse 2.8s ease-in-out infinite;
}
.wa-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 44px -8px rgba(37, 211, 102, .8); }
.wa-btn:hover::after { opacity: .85; }
.wa-btn:active { transform: translateY(-1px) scale(.99); }
.wa-btn__icon { flex-shrink: 0; }
/* WhatsApp ripple tint (shared JS creates .ripple__wave) */
.wa-btn .ripple__wave { background: rgba(255, 255, 255, .5); }

.contact__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--text); letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.contact__phone:hover { transform: translateY(-2px); border-color: #25d366; color: #eafff2; }
.contact__phone-icon { font-size: 1rem; }

/* Screen-reader-only helper (accessibility) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download__panel { padding: clamp(34px, 5vw, 66px); position: relative; overflow: hidden; }
.download__panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(40rem 26rem at 50% -10%, rgba(47,107,255,.20), transparent 65%);
}
.download__head { text-align: center; max-width: 620px; margin: 0 auto 50px; position: relative; z-index: 1; }

.download__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: stretch; position: relative; z-index: 1; }
.download__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .4s var(--ease), border-color .4s;
}
.download__item:hover { transform: translateY(-6px); border-color: rgba(61,130,255,.35); }
.download__item-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(140deg, rgba(61,130,255,.22), rgba(70,214,255,.10));
  border: 1px solid rgba(61,130,255,.28);
}
.download__item h3 { font-size: 1.35rem; font-weight: 700; }
.download__item p { color: var(--text-dim); font-size: .98rem; flex-grow: 1; }
.download__item .btn { width: 100%; margin-top: 6px; }

.download__divider { display: grid; place-items: center; position: relative; }
.download__divider::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--stroke), transparent, var(--stroke)); }
.download__divider span {
  font-size: .8rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em;
  background: var(--bg); padding: 8px; border-radius: 50%; border: 1px solid var(--stroke); position: relative;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--stroke); padding-block: 46px; margin-top: 20px; background: rgba(6,9,18,.5); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: .04em; }

.footer__credit { color: var(--text-dim); }
.footer__credit strong { color: var(--text); font-weight: 600; }

.footer__tech { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__tech-label { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.footer__stack { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer__stack li {
  font-size: .84rem; font-weight: 600; color: var(--text-dim);
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.footer__stack li:hover { transform: translateY(-2px); border-color: var(--blue-bright); color: var(--text); }

.footer__powered { color: var(--text-dim); font-size: .94rem; max-width: 30rem; }
.footer__powered strong { color: var(--blue-bright); font-weight: 600; }

.footer__copy { color: var(--text-faint); font-size: .88rem; margin-top: 4px; }

/* =========================================================
   IMAGE MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 30px;
  background: rgba(4, 6, 13, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__img {
  max-width: min(1000px, 92vw); max-height: 86vh; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong); box-shadow: 0 40px 90px -20px rgba(0,0,0,.8);
  transform: scale(.9); transition: transform .4s var(--ease);
}
.modal.is-open .modal__img { transform: scale(1); }
.modal__close {
  position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--stroke); transition: all .3s var(--ease);
}
.modal__close:hover { background: var(--blue); border-color: transparent; transform: rotate(90deg); }

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal[data-reveal="up"]    { transform: translateY(46px); }
.reveal[data-reveal="right"] { transform: translateX(46px); }
.reveal[data-reveal="left"]  { transform: translateX(-46px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-block: 90px 40px; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__art { order: -1; margin-bottom: 10px; }
  .hero__img { width: min(72%, 360px); }
  .about__grid { grid-template-columns: 1fr; }
  .about__art { max-width: 480px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* mobile drop menu */
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 18px clamp(20px, 5vw, 40px) 26px;
    background: rgba(6, 9, 18, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke);
  }
  .nav__links.is-open a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--stroke); }

  .download__grid { grid-template-columns: 1fr; }
  .download__divider { padding-block: 4px; }
  .download__divider::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; background: linear-gradient(90deg, var(--stroke), transparent, var(--stroke)); }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__stats { gap: 26px; }
}

@media (max-width: 480px) {
  .feature-grid, .gallery { grid-template-columns: 1fr; }
  .nav__name { display: none; }
  .hero__stats strong { font-size: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
