/* =========================================================
   GigJam — styles.css
   Design tokens at top; nothing hardcoded below them.
   ========================================================= */

/* ---------------------------------------------------------
   @font-face — self-hosted Inter (latin-ext + latin)
   --------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  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 600;
  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;
}

/* ---------------------------------------------------------
   Design tokens
   --------------------------------------------------------- */
:root {
  /* Brand palette */
  --primary-1: #EFF6FF;
  --primary-2: #DBEAFE;
  --primary-3: #BFDBFE;
  --primary-4: #60A5FA;
  --primary-5: #3B82F6;
  --primary-6: #2563EB;
  --primary-7: #1D4ED8;
  --primary-8: #1E40AF;
  --primary-9: #1E3A8A;

  /* Dark theme surfaces */
  --color-bg:        #0a0a0a;
  --color-surface:   #111111;
  --color-surface-2: #1a1a1a;
  --color-border:    rgba(255, 255, 255, 0.08);

  /* Dark theme text */
  --color-text:      #f1f5f9;
  --color-text-muted:#94a3b8;

  /* CTA — used sparingly */
  --color-cta-bg:    var(--primary-5);
  --color-cta-text:  #ffffff;
  --color-cta-hover: var(--primary-6);

  /* Typography */
  --font:      'Inter', sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:  1160px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-full:9999px;

  /* Shadows — dark-mode glow style */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

  /* Motion */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

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

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

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

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

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

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
}

/* ---------------------------------------------------------
   Focus visible — accessibility ring
   --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--primary-4);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------
   Shared button styles
   --------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-cta-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* Button Wrapper to wrap all buttons and allow multiple buttons */
.btn-wrapper {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-start;
}

/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Logo */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-mark {
  display: flex;
  align-items: center;
}
.nav__logo-gig {
  color: var(--primary-5);
}
.nav__logo-jam {
  color: var(--color-text);
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}
.nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--color-text);
}

/* CTA on the right */
.nav__cta {
  flex-shrink: 0;
  margin-left: auto;
}

/* Mobile: hide links, show hamburger */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
}

.hero__heading {
  font-size: clamp(2.125rem, 4.5vw, 3.875rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 430px;
  margin-bottom: var(--space-8);
}

.hero__form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.hero__input {
  flex: 1;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease);
}
.hero__input::placeholder {
  color: var(--color-text-muted);
}
.hero__input:focus {
  border-color: var(--primary-5);
}
.hero__input:focus-visible {
  outline: none;
  border-color: var(--primary-5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.hero__terms {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.hero__terms a {
  color: var(--color-text-muted);
  text-decoration: underline;
}
.hero__terms a:hover {
  color: var(--color-text);
}

.hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-12) var(--space-6);
    gap: var(--space-8);
    min-height: auto;
  }
  .hero__img-wrap {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

/* ---------------------------------------------------------
   SHOWCASE
   --------------------------------------------------------- */
.showcase {
  background: var(--color-surface);
  padding: var(--space-24) var(--space-6);
}
.showcase__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.showcase__heading {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.showcase__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.showcase__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.showcase__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.showcase__item::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background-color: var(--primary-5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  margin-top: 0.1em;
}

.showcase__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .showcase__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .showcase__img-wrap {
    aspect-ratio: 16 / 10;
  }
}

/* ---------------------------------------------------------
   FEATURES
   --------------------------------------------------------- */
.features {
  padding: var(--space-24) var(--space-6);
}
.features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.features__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.features__heading {
  font-size: clamp(1.625rem, 3.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 680px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: left;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ---------------------------------------------------------
   Feature card (shared by Features + Streamlined)
   --------------------------------------------------------- */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--primary-5);
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.feature-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--duration-fast) var(--ease);
}
.feature-card__link:hover {
  color: var(--primary-3);
}

/* ---------------------------------------------------------
   MUSICIAN HERO
   --------------------------------------------------------- */
.musician-hero {
  background: var(--color-surface);
  padding: var(--space-24) var(--space-6);
}
.musician-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.musician-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  order: 2;
}

.musician-hero__heading {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.musician-hero__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.musician-hero__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--duration-fast) var(--ease);
  align-self: flex-start;
}
.musician-hero__link:hover {
  color: var(--primary-3);
}

.musician-hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  order: 1;
}
.musician-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .musician-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .musician-hero__copy {
    order: 2;
  }
  .musician-hero__img-wrap {
    order: 1;
    aspect-ratio: 16 / 10;
  }
}

/* ---------------------------------------------------------
   STREAMLINED
   --------------------------------------------------------- */
.streamlined {
  background: var(--color-surface-2);
  padding: var(--space-24) var(--space-6);
}
.streamlined__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.streamlined__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  margin-bottom: var(--space-12);
}

.streamlined__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-4);
  margin-bottom: var(--space-4);
}
.streamlined__label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--primary-5);
}

.streamlined__heading {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.streamlined__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  padding-top: var(--space-8);
}

.streamlined__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .streamlined__header {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }
  .streamlined__body {
    padding-top: 0;
  }
  .streamlined__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ---------------------------------------------------------
   TESTIMONIAL
   --------------------------------------------------------- */
.testimonial {
  background: var(--color-surface);
  padding: var(--space-24) var(--space-6);
  text-align: center;
}
.testimonial__inner {
  max-width: 680px;
  margin: 0 auto;
}

.testimonial__stars {
  font-size: 1.375rem;
  color: #f59e0b;
  letter-spacing: 5px;
  margin-bottom: var(--space-8);
}

.testimonial__quote {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-8);
  font-style: normal;
  color: var(--color-text);
}

.testimonial__author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__info {
  text-align: left;
}

.testimonial__name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 600px) {
  .testimonial__author {
    flex-direction: column;
    text-align: center;
  }
  .testimonial__info {
    text-align: center;
  }
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-6);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---------------------------------------------------------
   Username availability status
   --------------------------------------------------------- */
.hero__username-status {
  font-size: var(--text-xs);
  min-height: 1.4em;
  margin-top: var(--space-2);
  transition: color var(--duration-fast) var(--ease);
}
.hero__username-status--available { color: #4ade80; }
.hero__username-status--taken     { color: #f87171; }
.hero__username-status--checking  { color: var(--color-text-muted); }
.hero__username-status--warn      { color: #fbbf24; }

.hero__input--available { border-color: #4ade80 !important; }
.hero__input--taken     { border-color: #f87171 !important; }
