/* ============================================================
   Custom Lightstick Kpop — GFLAI
   Static CSS Design System (Optimized for Mobile Performance)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 2;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
}

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

a {
  color: inherit;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #000;
  --bg-secondary: #0a0a0a;
  --bg-surface: #111;
  --bg-card: #141414;
  --text-primary: #fff;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent-indigo: #6366f1;
  --accent-indigo-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-cyan-hover: #0891b2;
  --accent-pink: #d946ef;
  --border-subtle: #1e1e1e;
  --border-medium: #2a2a2a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ---------- Navigation ---------- */
.nav-bg {
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 60px;
  padding: 0.6rem 2rem;
}

nav {
  position: fixed;
  top: 6px;
  left: 6px;
  right: 6px;
  z-index: 100;
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.7);
}

.nav-logo span strong {
  color: rgba(255,255,255,0.9);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-indigo);
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.92) 30%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217,70,239,0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow.g1 {
  top: 15%;
  right: 10%;
}

.hero-glow.g2 {
  bottom: 5%;
  left: 5%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,70,239,0.12);
  border: 1px solid rgba(217,70,239,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-pink);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(19px, 2.2vw, 22px);
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Space Grotesk', sans-serif;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-indigo-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.25);
}

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

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

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.breadcrumb .sep {
  color: var(--border-medium);
}

.breadcrumb .current {
  color: var(--text-secondary);
}

/* ---------- Section ---------- */
.section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-pink);
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.section h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ---------- Story Block ---------- */
.story-block {
  margin-top: 48px;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.story-row.last {
  margin-bottom: 0;
}

.story-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-surface);
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.story-text p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
  text-transform: none;
}

.story-text .causal {
  display: block;
  padding: 12px 16px;
  background: rgba(99,102,241,0.05);
  border-left: 2px solid var(--accent-indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---------- Scene Card ---------- */
.scene-card {
  background: linear-gradient(135deg, rgba(217,70,239,0.04), rgba(6,182,212,0.04));
  border: 1px solid rgba(217,70,239,0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.scene-card p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 800px;
}

.scene-card strong {
  color: var(--text-primary);
}

/* ---------- Solution Grid ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
}

.solution-card:hover {
  border-color: rgba(217,70,239,0.2);
  transform: translateY(-2px);
}

.solution-card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: rgba(217,70,239,0.12);
  margin-bottom: 10px;
}

.solution-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.solution-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-transform: none;
}

/* ---------- Product Strip ---------- */
.product-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.product-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  text-transform: none;
}

.product-info .plink {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Space Grotesk', sans-serif;
}

.product-info .plink:hover {
  color: var(--accent-cyan-hover);
}

.product-info .pnote {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Process Steps ---------- */
.process-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.process-step {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.process-step .step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.process-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.gallery-cap p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: none;
  font-family: 'Inter', sans-serif;
}

.gallery-cap span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 32px 0 0;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-top: 16px;
}

.faq-answer p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ---------- Form ---------- */
.stat-card {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
}

.border-glow {
  border: 1px solid rgba(99,102,241,0.15);
  transition: border-color 0.4s ease;
}

.border-glow:hover {
  border-color: rgba(99,102,241,0.4);
}

.text-gradient {
  background: linear-gradient(135deg, #a5b4fc, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hubspot-form-container .hs-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#hubspot-form-container .hs-form label {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#hubspot-form-container .hs-form input,
#hubspot-form-container .hs-form textarea,
#hubspot-form-container .hs-form select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: #f1f5f9;
  font-size: 1rem;
  width: 100% !important;
  outline: none;
  transition: border 0.25s ease;
}

#hubspot-form-container .hs-form input:focus,
#hubspot-form-container .hs-form textarea:focus,
#hubspot-form-container .hs-form select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

#hubspot-form-container .hs-form .hs-button {
  background: #6366f1;
  border: none;
  border-radius: 40px;
  padding: 1rem 2.4rem;
  font-weight: 600;
  color: white;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  align-self: flex-start;
}

#hubspot-form-container .hs-form .hs-button:hover {
  background: #4f46e5;
  box-shadow: 0 0 40px rgba(99,102,241,0.25);
  transform: scale(1.02);
}

#hubspot-form-container .hs-form .hs-error-msgs {
  color: #f87171;
  font-size: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0 0;
}

#hubspot-form-container .hs-form .legal-consent-container {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

#hubspot-form-container .hs-form .legal-consent-container a {
  color: #818cf8;
  text-decoration: underline;
}

.form-section {
  padding: 100px 24px;
  position: relative;
}

.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(99,102,241,0.06), transparent);
  pointer-events: none;
}

.form-inner-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #000;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  text-align: left;
}

.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 11px;
}

.footer p {
  text-transform: none;
  font-family: 'Inter', sans-serif;
}

.footer-address p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
}

.footer-contact {
  text-align: left;
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 16px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-contact a:hover {
  color: var(--accent-indigo);
}

.footer-contact .label {
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 8px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 96px auto 0;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8em;
  color: rgba(255,255,255,0.05);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

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

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

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

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    align-items: center;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
  }

  .nav-bg {
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
  }

  .hero {
    min-height: 90vh;
    padding: 120px 20px 60px;
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .product-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .process-compact {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 20px;
  }

  .form-section {
    padding: 60px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    margin-top: 48px;
    padding: 32px 20px;
  }
}

/* ---------- Responsive (Small Mobile) ---------- */
@media (max-width: 480px) {
  .product-strip {
    grid-template-columns: 1fr;
  }

  .process-compact {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
