/* =============================================
   YING YANG ENTERTAINMENT — STYLES
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #080808;
  --black-2: #0f0f0f;
  --black-3: #141414;
  --black-4: #1a1a1a;
  --black-5: #222222;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --white-80: rgba(255, 255, 255, 0.80);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-30: rgba(255, 255, 255, 0.30);
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-dim: rgba(201, 168, 76, 0.10);
  --green: #1db954;
  --green-dim: rgba(29, 185, 84, 0.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 60px rgba(0, 0, 0, 0.8);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--white-80);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--white);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
}

em {
  font-style: italic;
  color: var(--gold);
}

p {
  color: var(--white-80);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 100px 0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.75rem;
}

.btn-large {
  padding: 17px 40px;
  font-size: 0.875rem;
}

/* LABELS */
.section-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-headline {
  margin-bottom: 20px;
}

.section-subheadline {
  font-size: 1.05rem;
  color: var(--white-50);
  max-width: 620px;
  margin-bottom: 60px;
  line-height: 1.8;
}

/* FADE IN */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.nav-yy-icon {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--white);
  line-height: 1;
}

.nav-logo-sub {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--white-50);
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-instagram {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold);
  padding: 8px 16px;
  border-radius: 30px;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-instagram:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.nav-instagram svg {
  color: inherit;
}

.nav-icon {
  color: var(--white);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon:hover {
  color: var(--gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  padding: 40px 28px;
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}


.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.7) 40%, rgba(8, 8, 8, 0.3) 100%);
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* HERO MARK - removed */
.hero-yy-mark {
  display: none;
}

.hero-headline {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--white-50);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* STATS — inline suffix */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 48px;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--white-30);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  margin-right: 48px;
  height: 44px;
  align-self: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}


/* =============================================
   PORTFOLIO SECTION
   ============================================= */
.section-portfolio {
  background: var(--black-2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.portfolio-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.portfolio-image {
  height: 280px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 32px;
  position: relative;
  z-index: 2;
  background: var(--black-3);
  border-top: 1px solid var(--border);
}

.portfolio-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--white-50);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   FAQ
   ============================================= */
.section-faq {
  background: var(--black-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}

.faq-card {
  background: linear-gradient(145deg, var(--black-3), var(--black-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.faq-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 168, 76, 0.05);
}

.faq-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.faq-q {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.4;
}

.faq-a {
  font-size: 0.875rem;
  color: var(--white-50);
  line-height: 1.78;
  margin: 0;
}

/* APPLICATION */
.section-apply {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.apply-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%), var(--black-2);
}

.apply-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 0%, transparent 70%);
}

.apply-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.apply-text h2 {
  margin-bottom: 20px;
}

.apply-text p {
  font-size: 1rem;
  color: var(--white-50);
  line-height: 1.8;
  margin-bottom: 36px;
}

.apply-assurances {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apply-assurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--white-50);
}

.assurance-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.apply-form-wrap {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-50);
}

.form-group input {
  background: var(--black-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input::placeholder {
  color: var(--white-30);
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.input-prefix-wrap {
  display: flex;
  align-items: center;
}

.input-prefix {
  background: var(--black-4);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 13px 12px;
  font-size: 0.92rem;
  color: var(--white-30);
  line-height: 1;
  flex-shrink: 0;
}

.input-prefix-wrap input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(29, 185, 84, 0.3);
  color: var(--green);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--white-50);
  margin: 0;
}

.form-error {
  padding: 16px;
  background: rgba(255, 60, 60, 0.06);
  border: 1px solid rgba(255, 60, 60, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.form-error p {
  font-size: 0.85rem;
  color: var(--white-50);
  margin: 0;
}

.form-error a {
  color: var(--gold);
}

@media (max-width: 900px) {
  .apply-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .apply-form-wrap {
    padding: 32px 24px;
  }
}

/* FOOTER */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-yy-icon {
  display: none;
}

.footer-logo {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0 !important;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--white-30);
  max-width: 260px;
  line-height: 1.7;
}

.footer-links-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-size: 0.86rem;
  color: var(--white-30);
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.76rem;
  color: var(--white-30);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.76rem;
  color: var(--white-30);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--white);
}

@media (max-width: 1024px) {
  .algo-visual-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-studies-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {

  .algo-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 0;
  }

  .algo-step-card.card-stagger-1,
  .algo-step-card.card-stagger-2 {
    margin-top: 0;
  }

  .algo-step-card:hover {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
    height: 72px;
  }

  .nav-logo-text {
    font-size: 1.05rem;
  }

  .mobile-menu {
    top: 72px;
    padding: 30px 20px;
  }

  .marquee-logo {
    padding: 0 32px;
    height: 50px;
  }

  .nav-links,
  .btn-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .method-step {
    padding: 28px 20px;
    gap: 16px;
    flex-direction: column;
  }

  .method-step-num {
    width: auto;
    font-size: 2.2rem;
  }

  .testimonial-card {
    flex: 0 0 86vw;
    padding: 24px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat-item {
    padding-right: 0;
    text-align: center;
    align-items: center;
  }

  .stat-number-row {
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .cta-assurances {
    flex-direction: column;
    gap: 8px;
  }

  .cta-dot {
    display: none;
  }

  .algo-visual-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .positioning-inner {
    padding-left: 20px;
  }

  .algo-metric {
    width: 120px;
    font-size: 0.7rem;
  }

  .hero-headline {
    font-size: 2.6rem;
  }

  .section-subheadline {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .testimonials-carousel-wrap::before {
    width: 40px;
  }

  .testimonials-carousel-wrap::after {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .container {
    padding: 0 16px;
  }

  .apply-form-wrap {
    padding: 24px 16px;
  }

  .testimonial-card {
    flex: 0 0 280px;
  }

  .testimonials-carousel {
    padding-left: 16px;
  }
}

/* SERVICE CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.service-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--white-50);
  line-height: 1.6;
  margin: 0;
}