/* ============================================================
   BarSpark Brand Site — Shared Stylesheet
   B2B SaaS · Minimal Luxury · Champagne Gold
   ============================================================ */

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

:root {
  --bg-warm: #FAF9F6;
  --gold: #D4AF37;
  --dark: #1A1A1A;
  --accent: #E69A49;
  --gray: #707070;
  --dark-bg: #121212;
  --card-bg: #FFFFFF;
  --card-dark: #1C1C1E;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius: 16px;
  --max-width: 1100px;
  --nav-height: 72px;
}

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

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-warm);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }

p {
  color: var(--gray);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.nav-links .nav-login {
  color: var(--gold);
  font-weight: 600;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav toggle (CSS-only via hidden checkbox) */
#menu-toggle {
  display: none;
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
  max-width: 700px;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #c9a631;
  border-color: #c9a631;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--bg-warm);
  transform: translateY(-2px);
}

/* --- Scroll Arrow --- */
.scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--gray);
}

.scroll-arrow svg {
  display: block;
  width: 28px;
  height: 28px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  stroke: var(--gold);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.card .features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}

.card .features li {
  font-size: 0.875rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card .features li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-live {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}

.tag-coming {
  background: rgba(112, 112, 112, 0.1);
  color: var(--gray);
}

.tag-planning {
  background: rgba(112, 112, 112, 0.08);
  color: #999;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg-warm) 0%, rgba(212, 175, 55, 0.04) 100%);
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  margin-bottom: 2rem;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-header .section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
  border-radius: 1px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  color: var(--gray);
}

.footer a {
  color: var(--gray);
  text-decoration: none;
}

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

.footer-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

.footer-dark a {
  color: rgba(255, 255, 255, 0.3);
}

.footer-dark a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Product Page
   ============================================================ */
.product-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}

.product-block {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-block-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-block-icon svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  stroke: var(--gold);
}

.product-block-body h2,
.product-block-body h3 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-block-body .desc {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark);
  background: rgba(212, 175, 55, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.product-features li svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.product-scene {
  font-size: 0.85rem;
  color: var(--gray);
}

.product-scene strong {
  color: var(--dark);
  font-weight: 600;
}

/* ============================================================
   About Page
   ============================================================ */
.about-intro {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.contact-block {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 720px;
  margin: 0 auto;
}

.contact-text h3 {
  margin-bottom: 0.75rem;
}

.contact-text p {
  font-size: 0.95rem;
}

.contact-qr img {
  width: 240px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: var(--shadow);
}

/* ============================================================
   Login Page
   ============================================================ */
.login-page {
  background: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--card-dark);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-logo {
  margin-bottom: 1.5rem;
}

.login-logo img {
  width: 64px;
  height: auto;
  display: inline-block;
}

.login-card h2 {
  color: #FFF;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.login-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.btn-guts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-guts:hover {
  background: #c9a631;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}

.login-footer {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.login-footer a {
  color: var(--gold);
  font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.4rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  #menu-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

  .card-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .product-block {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }

  .contact-block {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .contact-qr img {
    width: 200px;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .section-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero .subtitle { font-size: 1rem; }
}
