/* ========================================
   ShortGenie Landing Page — Styles
   ======================================== */

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

:root {
  --bg: #151515;
  --bg-alt: #1a1a1a;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --accent: #8750d0;
  --accent-hover: #9b6ad8;
  --text: #E6E6E6;
  --text-secondary: #999999;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 8px 20px;
}

.btn--full {
  width: 100%;
}

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img {
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.nav__link:hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('visualizer-screenshot.png') center center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

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

.hero__heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 120px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ========================================
   AUDIOVIZOR
   ======================================== */
.av {
  text-align: center;
}

.av__logo {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 24px;
}

.av__wordmark {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.av__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* Hero media placeholder */
.av__hero-media {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 72px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.av__hero-media img,
.av__hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.av__placeholder-label {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.av__placeholder-size {
  font-size: 0.75rem;
  color: #555;
}

/* Feature grid */
.av__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

.av__card {
  background: var(--bg);
  padding: 36px 28px;
  text-align: left;
}

.av__card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.av__card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.av__cta {
  margin-top: 8px;
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing__card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing__card--featured {
  border-color: var(--accent);
}

.pricing__badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.pricing__price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1;
}

.pricing__period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  flex: 1;
}

.pricing__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 32px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  max-width: 640px;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.contact__text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer__logo {
  opacity: 0.6;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.75rem;
  color: #555;
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  .av__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .section {
    padding: 80px 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__cta {
    margin-top: 8px;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 64px);
    padding-bottom: 64px;
  }

  .hero__heading {
    font-size: 2.25rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .av__wordmark {
    font-size: 1.75rem;
  }

  .section {
    padding: 64px 0;
  }

  .section__heading {
    margin-bottom: 32px;
  }

  .pricing__card {
    padding: 32px 24px;
  }

  .pricing__price {
    font-size: 2.25rem;
  }
}
