/* ==========================================================================
   MorphWiz Studio — Custom CSS
   Dark premium instrument site
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font Faces
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_28pt-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */

:root {
  /* Colours */
  --bg:          #0D121A;
  --bg-surface:  #111827;
  --bg-alt:      #0F1720;
  --bg-card:     #1A2235;
  --accent:      #8B5CF6;
  --accent-light: #A78BFA;
  --accent-cyan: #22D3EE;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --text:        #E6EAF0;
  --text-muted:  #94A3B8;
  --text-dim:    #64748B;
  --border:      rgba(255, 255, 255, 0.08);
  --border-accent: rgba(139, 92, 246, 0.3);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 7rem 2rem;
  --section-pad-sm: 4rem 1.5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

#site-header {
  position: static;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo img {
  height: clamp(24px, 4vw, 36px);
  width: auto;
  max-width: 50vw;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav .btn-appstore img {
  height: 36px;
  width: auto;
  transition: opacity var(--transition);
}

.header-nav .btn-appstore:hover img {
  opacity: 0.8;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Ambient background glow */
#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero-body {
  font-size: 1.0625rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-actions .btn-appstore img {
  height: 52px;
  width: auto;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-actions .btn-appstore:hover img {
  opacity: 0.85;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-image img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(139, 92, 246, 0.12);
  max-height: 460px;
  object-fit: contain;
}

/* Hero Video */
.hero-video-section {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero-video-wrap video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  display: block;
}

.video-mute-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(13, 18, 26, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font);
}

.video-mute-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Section Dividers (decorative slant)
   -------------------------------------------------------------------------- */

.section-separator {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-separator svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* --------------------------------------------------------------------------
   Intro / Hook Section
   -------------------------------------------------------------------------- */

#intro {
  padding: var(--section-pad);
  background: var(--bg-surface);
  position: relative;
}

.intro-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.intro-col p {
  font-size: 1.0625rem;
}

.pull-quote {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
  border-left: none;
  position: relative;
}

.pull-quote::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -1.5rem;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
}

.pull-quote blockquote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.pull-quote blockquote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   Feature Spotlight — Spectral Morphing (full-bleed dark)
   -------------------------------------------------------------------------- */

#spectral-morphing {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#spectral-morphing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(34, 211, 238, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.spectral-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.spectral-header {
  max-width: 680px;
}

.spectral-header h2 {
  margin-bottom: 1.25rem;
}

.spectral-header p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.spectral-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Feature Spotlight Sections (alternating)
   -------------------------------------------------------------------------- */

.feature-section {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.feature-section:nth-child(odd) {
  background: var(--bg-alt);
}

.feature-section:nth-child(even) {
  background: var(--bg-surface);
}

.feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-inner.reverse {
  direction: rtl;
}

.feature-inner.reverse > * {
  direction: ltr;
}

.feature-image {
  position: relative;
}

.feature-image img {
  border-radius: 16px;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(139, 92, 246, 0.08);
  width: 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.feature-image:hover img {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(139, 92, 246, 0.15);
}

.feature-text {}

.feature-text h2 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-text .sub {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.feature-text p {
  margin-bottom: 0.875rem;
}

.feature-text p:last-of-type {
  margin-bottom: 1.75rem;
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.07);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-learn:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent);
  color: var(--text);
}

.btn-learn svg {
  transition: transform var(--transition);
}

.btn-learn:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Key Features Grid
   -------------------------------------------------------------------------- */

#features-grid {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#features-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.features-grid-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-grid-header h2 {
  margin-bottom: 0.75rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-light);
  font-size: 1.1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Jordan Rudess Endorsement
   -------------------------------------------------------------------------- */

#endorsement {
  padding: var(--section-pad);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#endorsement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.endorsement-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.endorsement-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.endorsement-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-style: italic;
  letter-spacing: -0.01em;
}

.endorsement-attr {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.endorsement-attr strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Final CTA Section
   -------------------------------------------------------------------------- */

#final-cta {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-cta-inner h2 {
  margin-bottom: 1rem;
}

.final-cta-inner > p {
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.cta-store-btn img {
  height: 58px;
  width: auto;
  transition: opacity var(--transition), transform var(--transition);
}

.cta-store-btn:hover img {
  opacity: 0.85;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

#site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 30px;
  width: auto;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--border-accent);
  color: var(--accent-light);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  :root {
    --section-pad: 5rem 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 320px;
    margin: 0 auto;
  }

  .intro-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-inner.reverse {
    direction: ltr;
  }

  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 4rem 1.25rem;
  }

  .header-nav a:not(.btn-appstore):not(.nav-support) {
    display: none;
  }

  .grid-6 {
    grid-template-columns: 1fr;
  }
}
