/* --- Dark Monochrome Theme Variables (Black & Grey) --- */
:root {
  --bg-color: #000000;
  --bg-alt: #0a0a0a; /* Subtle off-black sections */
  --bg-bento: #111111; 
  
  --text-dark: #ffffff; /* Re-using variable name, but mapping to white for dark mode */
  --text-muted: #a1a1aa; /* Zinc 400 for paragraph text */
  --text-light: #000000; /* Dark text for inverted elements */
  
  --accent-pink: #71717a; /* Repurposing to Grey */
  --accent-pink-hover: #a1a1aa;
  --accent-secondary: #18181b; /* Very dark grey background for badges/icons */
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  
  --nav-height: 84px;
  --bento-radius: 20px;
  --shadow-sm: 0 4px 6px -1px rgba(255, 255, 255, 0.05), 0 2px 4px -1px rgba(255, 255, 255, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(255, 255, 255, 0.08), 0 4px 6px -2px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(255, 255, 255, 0.08), 0 10px 10px -5px rgba(255, 255, 255, 0.03);
}

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

/* --- Custom WebKit Scrollbar --- */
html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--bg-color);
}
html::-webkit-scrollbar-thumb {
  background: var(--accent-pink); /* Which is mapped to #71717a grey */
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.center-align {
  text-align: center;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.highlight-accent {
  color: var(--accent-pink);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2sease;
}

.w-100 { width: 100%; text-align: center; }

/* Clean UI / SaaS Bento Box container */
.clean-bento {
  background: var(--bg-bento);
  border-radius: var(--bento-radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.clean-bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* --- Preloader --- */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--bg-color); z-index: 10000;
  display: flex; justify-content: center; align-items: center;
}
.preloader-text {
  font-size: 2.5rem; font-weight: 800;
  color: var(--text-dark); 
  display: flex; overflow: hidden; letter-spacing: -0.05em;
}
.preloader-text .char { display: inline-block; transform: translateY(100%); }

/* --- SaaS Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 8px; /* GloomMedia uses moderately rounded/square buttons */
}

.primary-btn {
  background-color: var(--accent-pink);
  color: var(--text-light);
  border: 1px solid var(--accent-pink);
}
.primary-btn:hover {
  background-color: var(--accent-pink-hover);
  border-color: var(--accent-pink-hover);
  color: var(--text-light); /* Prevent link hover coloring */
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.secondary-btn {
  background-color: var(--bg-color);
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.1);
}
.secondary-btn:hover {
  background-color: var(--accent-secondary);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-pink);
}

.large-btn { padding: 16px 32px; font-size: 1.05rem; }

/* --- Navigation & Header --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
  display: flex; align-items: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Very subtle bottom border */
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text-dark);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-pink); }

/* --- Cinematic Hero Section (Automatic Split) --- */
.hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--bg-color); /* Deep black */
  overflow: hidden; 
  padding-top: var(--nav-height); /* Pushes the center alignment down to clear the fixed navbar */
  display: flex;
  align-items: center; /* Center everything perfectly vertically */
}

/* Container locking mechanics via inline sticky. Just canvas styles here: */
.hero-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-sequence-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Don't crop the explosion, keep it sharp */
  mix-blend-mode: screen; /* Keys out the exact black background from the frames */
  filter: contrast(1.1) brightness(1.2); /* Make the neon pop perfectly against the theme */
  transform-origin: center center;
}



/* --- Marquee Section (White Theme) --- */
.marquee-section {
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03);
  background: var(--bg-alt); overflow: hidden;
}
.marquee-container { white-space: nowrap; display: flex; }
.marquee-content {
  display: flex; align-items: center; gap: 50px;
  font-size: 1.15rem; font-weight: 700; color: var(--text-dark); letter-spacing: 0.02em; opacity: 0.8;
}
.marquee-content span.dot { width: 6px; height: 6px; background-color: var(--accent-pink); border-radius: 50%; display: inline-block; }


/* --- Light Bento Work Section --- */
.work-section {
  background-color: var(--bg-color);
  padding: 120px 0;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.04em; margin-bottom: 16px; color: var(--text-dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}
.work-card {
  position: relative; display: block;
}
.work-card.large-card { grid-column: span 2; }
.offset-top { margin-top: 40px; } /* Slightly less offset for clean layout */

.work-media {
  position: relative; width: 100%; height: 45vh; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.work-card.large-card .work-media { height: 60vh; }
.work-media img, .work-media video {
  width: 100%; height: 110%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.work-card:hover .work-media img,
.work-card:hover .work-media video {
  transform: scale(1.03); /* Maintain subtle zoom */
}
.work-info {
  padding: 32px;
  background: var(--bg-color); /* Light interior */
}
.work-info h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark);
}
.work-info p {
  font-size: 1rem; color: var(--text-muted); font-weight: 500;
}


/* --- Features/Services List (Icon Grid) --- */
.services {
  background-color: var(--bg-alt); /* Light grey off section */
  padding: 120px 0;
}
.clean-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--bg-color);
  padding: 48px;
  border-radius: var(--bento-radius);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon-wrapper {
  width: 56px; height: 56px;
  background: var(--accent-secondary); /* Very light pink */
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 24px;
}
.feature-card h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark);
}
.feature-card p {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.6;
}

/* --- Pricing Boxes --- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pricing-card {
  padding: 48px 32px;
  display: flex; flex-direction: column;
}
.pricing-card.popular { 
  background: var(--text-dark); /* Slate 900 */
  color: var(--text-light);
  transform: scale(1.02);
  border-color: var(--text-dark);
}
.pricing-card.popular:hover { border-color: var(--text-dark); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-pink); color: var(--text-light); font-size: 0.8rem;
  padding: 6px 16px; border-radius: 20px; font-weight: 700;
}
.pricing-header { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pricing-header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.pricing-card.popular .pricing-header { border-bottom-color: rgba(255,255,255,0.1); }
.pricing-card.popular .pricing-header h3 { color: var(--text-light); }
.price { font-size: 2.25rem; font-weight: 800; line-height: 1; margin-bottom: 8px; color: var(--text-dark); }
.pricing-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.pricing-features li { padding: 12px 0; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-weight: 600; color: var(--text-dark);}
.pricing-features.dark-bg li { color: #f1f5f9; border-bottom-color: rgba(255,255,255,0.05); }
.pricing-features li::before { content: '✓'; margin-right: 12px; color: var(--accent-pink); font-weight: 800;}

/* --- FAQ Section --- */
.faq-section { padding: 100px 0; }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.faq-item {
  padding: 32px; background: var(--bg-alt); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.03);
}
.faq-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.faq-item p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }


/* --- Footer --- */
.footer { padding: 80px 0 40px; background-color: var(--bg-alt); position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 60px; flex-wrap: wrap; gap: 40px; }
.footer-links-group { display: flex; gap: 80px; }
.link-column { display: flex; flex-direction: column; gap: 16px; }
.link-column h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.link-column a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.link-column a:hover { color: var(--accent-pink); }

/* --- Services Tier Tabs --- */
.tier-btn {
  background: transparent; color: var(--text-muted); border: none;
  border-left: 2px solid rgba(255,255,255,0.05); padding: 20px 24px;
  text-align: left; font-size: 1.35rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; font-family: var(--font-main);
}
.tier-btn:hover { background: rgba(255,255,255,0.02); color: var(--text-dark); }
.tier-btn.active {
  color: var(--text-dark); border-left-color: #fff; background: rgba(255,255,255,0.03);
}
.tier-panel { display: none; animation: fadeIn 0.4s ease; }
.tier-panel.active { display: block; }

/* --- FAQ Tabs --- */
.faq-tabs {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 60px;
}
.faq-tab-btn {
  background: transparent; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1); padding: 12px 32px;
  border-radius: 30px; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease; font-family: var(--font-main);
}
.faq-tab-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text-dark); }
.faq-tab-btn.active {
  background: var(--text-dark); color: var(--bg-color); border-color: var(--text-dark);
}
.faq-panel { display: none; animation: fadeIn 0.4s ease; }
.faq-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Accordion (FAQ) --- */
.accordion { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.accordion-header {
  padding: 24px 0; font-size: 1.15rem; font-weight: 600; color: var(--text-dark);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: color 0.2s;
}
.accordion-header:hover { color: var(--accent-pink-hover); }
.accordion-header .icon { font-size: 1.5rem; transition: transform 0.3s ease; font-weight: 400; color: var(--text-muted); }
.accordion-header.active .icon { transform: rotate(45deg); color: var(--text-dark); }
.accordion-content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.accordion-content p {
  padding-bottom: 32px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; max-width: 90%;
}

/* --- Floating Bob Animations --- */
@keyframes floatBob1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes floatBob2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.bob-1 { animation: floatBob1 6s ease-in-out infinite; }
.bob-2 { animation: floatBob2 7s ease-in-out infinite reverse; }

/* --- Scroll Indicator Animation --- */
@keyframes scrollDown {
  0% { top: -50%; opacity: 0; }
  20% { opacity: 1; }
  80% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.scroll-dot { animation: scrollDown 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }

/* --- Footer Bottom Reset --- */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.copyright { font-size: 0.9rem; color: var(--text-muted); font-weight: 500;}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .work-grid, .clean-features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .work-card.large-card { grid-column: span 1; }
  .offset-top { margin-top: 0; }
  .work-media { height: 35vh; }
  .work-card.large-card .work-media { height: 40vh; }
  .footer-links-group { flex-direction: column; gap: 40px; }
}

/* SMARTPHONE RESPONSIVE LAYOUT */
@media (max-width: 768px) {
  .container { padding: 0 20px !important; } /* Tighter mobile padding */
  .section { padding: 60px 0 !important; }

  /* Hero Section */
  .hero { min-height: auto !important; padding-top: 140px !important; padding-bottom: 60px !important; }
  .hero .container { flex-direction: column !important; justify-content: center !important; gap: 30px !important; text-align: center; }
  .hero-text-content { width: 100% !important; padding-right: 0 !important; text-align: center !important; }
  .hero-title { font-size: 2.8rem !important; text-align: center !important; line-height: 1.1 !important; letter-spacing: -0.05em !important; }
  .hero-subtitle { text-align: center !important; margin: 16px auto !important; font-size: 1.05rem !important;}
  .hero-actions { justify-content: center !important; flex-direction: column; width: 100%; gap: 12px !important; margin-top: 24px !important;}
  .hero-actions .btn { width: 100%; padding: 18px !important; font-size: 1.1rem !important; }
  .hero-visual-container { width: 100% !important; justify-content: center !important; margin-top: 20px !important; }
  .hero-abstract-art { margin-right: 0 !important; max-width: 100% !important; transform: scale(0.9); }

  /* Philosophy */
  .philosophy .container { grid-template-columns: 1fr !important; gap: 24px !important; text-align: center; }
  .philosophy .section-title { font-size: 2.8rem !important; }
  .philosophy .container > div:nth-child(2) { border-left: none !important; padding-left: 0 !important; }
  .philosophy p { font-size: 1.1rem !important; }

  /* Services */
  .services-tiers { padding: 60px 0 !important; }
  .services-tiers .center-align { margin-bottom: 30px !important; }
  .services-tiers .center-align h2 { font-size: 2.3rem !important; margin-bottom: 12px !important; }
  .tier-tabs-container { flex-direction: column !important; gap: 20px !important; }
  .tier-nav { width: 100% !important; display: flex !important; flex-direction: row !important; overflow-x: auto; gap: 10px !important; justify-content: flex-start !important; padding-bottom: 16px !important; }
  .tier-nav::-webkit-scrollbar { height: 4px; }
  .tier-btn { border-left: none !important; border-bottom: 2px solid rgba(255,255,255,0.05); padding: 12px 16px !important; font-size: 0.95rem !important; flex-shrink: 0; white-space: nowrap; }
  .tier-btn.active { border-bottom-color: #fff !important; }
  .tier-content-wrapper { width: 100% !important; padding: 24px 20px !important; min-height: auto !important; border-radius: 16px !important;}
  .tier-panel h3 { font-size: 1.8rem !important; margin-bottom: 16px !important; }
  .tier-panel ul li { font-size: 0.95rem !important; }

  /* Brands / Creators */
  .split-section { padding: 80px 0 !important; }
  .split-section .container { grid-template-columns: 1fr !important; gap: 32px !important; text-align: center; }
  .split-media { min-height: 280px !important; order: -1 !important; border-radius: 16px !important;}
  .split-content .section-title { font-size: 2.4rem !important; margin-bottom: 16px !important; line-height: 1.1 !important; }
  .split-content p { font-size: 1.05rem !important; margin-bottom: 30px !important; }
  .split-content ul { align-items: center !important; margin-bottom: 30px !important; }
  .split-content ul li { flex-direction: column !important; align-items: center !important; text-align: center !important; padding-bottom: 16px !important; gap: 8px !important; }
  .split-content .btn { width: 100%; padding: 18px !important; font-size: 1.1rem !important;}

  /* Trust Features */
  .trust-section { padding: 80px 0 !important; }
  .trust-section .section-title { font-size: 2.5rem !important; }
  .clean-features-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .feature-card { padding: 32px 24px !important; border-radius: 16px !important;}

  /* FAQ */
  .faq { padding: 80px 0 !important; }
  .accordion-header { font-size: 1rem !important; padding: 20px 0 !important; }
  .accordion-content p { font-size: 0.95rem !important; padding-bottom: 24px !important; max-width: 100% !important; }

  /* Footer & Forms */
  .footer { padding: 80px 0 40px !important; }
  .footer .section-title { font-size: 3rem !important; }
  .form-container { padding: 32px 20px !important; border-radius: 16px !important; }
  .application-form { gap: 24px !important; }
  .application-form > div:first-child { grid-template-columns: 1fr !important; gap: 24px !important; }
  .input-group label { font-size: 0.8rem !important; }
  .input-group input { font-size: 1rem !important; padding: 8px 0 !important;}
  .form-tabs { flex-direction: column; gap: 10px !important; width: 100%; margin-bottom: 30px !important;}
  .form-tab-btn { width: 100% !important; padding: 16px !important; }
  #submit-brand, #submit-creator { padding: 16px !important; font-size: 1.05rem !important; }

  .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .footer-bottom div:last-child { justify-content: center; width: 100%; }
}
