/* ===== SELF-HOSTED FONTS ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:  #7b2ff7;
  --teal:    #00c9b1;
  --orange:  #f97316;
  --pink:    #f43f8e;
  --dark:    #0f1117;
  --darker:  #080a0f;
  --surface: #161b27;
  --border:  #1f2a3c;
  --text:    #e2e8f0;
  --muted:   #8896a7;
  --grad:    linear-gradient(135deg, var(--purple), var(--teal), var(--orange));
  --grad-h:  linear-gradient(135deg, #6021d3, #00a896, #e0620e);
  --radius:  12px;
  --shadow:  0 4px 32px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--muted); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT HELPERS ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-heading { margin-bottom: 1rem; }
.section-sub { max-width: 560px; margin: 0 auto 3rem; text-align: center; font-size: 1.05rem; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,17,23,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo { display: flex; align-items: center; gap: .75rem; }
.nav__logo img { height: 42px; width: auto; }
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav__links a:hover { color: var(--teal); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--grad);
  color: #fff !important;
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  transition: opacity .2s;
}
.nav__cta:hover { opacity: .85; color: #fff; }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .3rem .6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--darker);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(123,47,247,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 40%, rgba(0,201,177,.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(249,115,22,.12) 0%, transparent 70%);
}
.hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; }
.hero__content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.hero__logo {
  width: 400px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 0 40px rgba(123,47,247,.4));
}
.hero__title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, opacity .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,47,247,.4);
}
.btn-primary:hover { opacity: .9; box-shadow: 0 6px 28px rgba(123,47,247,.55); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ===== PRODUCTS ===== */
.products { background: var(--surface); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}
.product-card__header {
  padding: 2rem 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.product-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.product-icon--looper { background: linear-gradient(135deg, #7b2ff7, #00c9b1); }
.product-icon--band   { background: linear-gradient(135deg, #f97316, #f43f8e); }
.product-card__tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 50px;
}
.tag--looper { background: rgba(123,47,247,.2); color: #a777ff; }
.tag--band   { background: rgba(249,115,22,.2); color: #fdba74; }
.tag--soon   { background: rgba(251,191,36,.15); color: #fbbf24; }
.product-card__body { padding: 1.5rem 2rem; flex: 1; }
.product-card__body h3 { margin-bottom: .5rem; }
.product-card__body p { font-size: .95rem; margin-bottom: 1.25rem; }
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.product-features li {
  font-size: .875rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.product-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05em;
}
.product-card__footer {
  padding: 1.5rem 2rem 2rem;
}

/* ===== DOWNLOADS ===== */
.downloads { background: var(--darker); }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color .3s, transform .3s;
}
.download-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}
.download-card__icon {
  font-size: 2.2rem;
  line-height: 1;
}
.download-card h3 { font-size: 1.15rem; }
.download-card p { font-size: .875rem; }
.ms-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #000;
  border: 1.5px solid #555;
  border-radius: 8px;
  padding: .55rem 1rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
  margin-top: auto;
}
.ms-badge:hover { border-color: var(--teal); background: #111; color: #fff; }
.ms-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.ms-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.ms-badge-text small { font-size: .65rem; color: #aaa; font-weight: 400; }
.ms-badge-text strong { font-size: .85rem; }

/* ===== ABOUT ===== */
.about { background: var(--surface); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
}
.about__logo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.about__logo-wrap img { filter: drop-shadow(0 0 60px rgba(123,47,247,.5)); }
.about__text { display: flex; flex-direction: column; gap: 1.25rem; }
.about__text p { font-size: 1rem; }
.about__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat__label { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: .875rem; max-width: 280px; }
.footer__col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__col ul li a { font-size: .875rem; color: var(--muted); transition: color .2s; }
.footer__col ul li a:hover { color: var(--teal); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p { font-size: .8rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: .8rem; color: var(--muted); }
.footer__legal a:hover { color: var(--teal); }

/* ===== LEGAL PAGES ===== */
.legal-hero {
  background: var(--darker);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 2rem 0 .75rem;
}
.legal-content h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 1.5rem 0 .5rem;
}
.legal-content p,
.legal-content li { font-size: .95rem; color: var(--muted); margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--teal); }
.legal-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 2rem;
  transition: color .2s;
}
.back-link:hover { color: var(--teal); }

/* ===== SCROLL REVEAL (CSS-only fade-in) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .6s ease both; }
.reveal-1 { animation-delay: .1s; }
.reveal-2 { animation-delay: .2s; }
.reveal-3 { animation-delay: .3s; }
.reveal-4 { animation-delay: .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--darker);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav__links.open li { border-top: 1px solid var(--border); }
  .nav__links.open a {
    display: block;
    padding: .85rem 1.5rem;
    font-size: 1rem;
  }

  .about__inner { grid-template-columns: 1fr; }
  .about__visual { max-width: 280px; margin: 0 auto; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

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

@media (max-width: 500px) {
  .footer__inner { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
}
