/* ===== VARIABLES ===== */
:root {
  --black: #000000;
  --black-soft: #0A0A0A;
  --black-card: #111111;
  --green: #00FF7F;
  --green-dim: #00CC66;
  --green-glow: rgba(0, 255, 127, 0.3);
  --green-border: rgba(0, 255, 127, 0.15);
  --white: #FFFFFF;
  --gray: #CCCCCC;
  --gray-dim: #888888;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font: 'Inter', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

.font-display { font-family: var(--font-display); }
.font-display-italic { font-family: var(--font-display); font-style: italic; }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { /* Lenis handles smooth scroll; native scroll-behavior removed to avoid conflict */ }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.btn--green {
  background: var(--green);
  color: var(--black);
}
.btn--green:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--green-glow);
}
.btn--outline {
  border: 2px solid var(--green);
  color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--black);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, border-bottom 0.4s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--green-border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar__logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
}
.navbar__logo-dot { color: var(--green); }
.navbar__links {
  display: flex;
  gap: 36px;
}
.navbar__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--white); }
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__links a:focus,
.navbar__burger:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 16px 24px 24px;
  background: rgba(0,0,0,0.96);
  border-top: 1px solid var(--green-border);
}
.navbar__mobile a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar__mobile a:hover { color: var(--green); }
.navbar__mobile .btn--green { margin-top: 16px; text-align: center; justify-content: center; width: 100%; }
.navbar__mobile.open { display: flex; }

@media (max-width: 768px) {
  .navbar__links, .navbar__cta { display: none; }
  .navbar__burger { display: flex; }
}

/* ===== ACTS (natural flow, no pin) ===== */
.act {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
}
.act--1 { overflow: hidden; }
.act--3 { overflow: hidden; }
.act--1 { background: var(--black); }
.act--2 {
  background: linear-gradient(180deg, var(--black), #050807);
  min-height: 220vh;
  align-items: flex-start;
  padding: 0;
}
.act--2 .act__inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 120px 0 60px;
  justify-content: center;
}
.act--3 { background: var(--black); }

.act--1 #particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.act__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Headlines */
.act__headline {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 900;
  margin-bottom: 32px;
  text-align: left;
}
.act__headline--center { text-align: center; }
.headline-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: -1px;
}
.headline-bold {
  font-family: var(--font);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -3px;
}
.act--3 .headline-bold { color: var(--green); }

.act__sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.act__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Act 1 === */
.act--1 .act__inner {
  flex-direction: row;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.act--1 .act__text { flex: 1 1 480px; max-width: 600px; }
.act--1 .act__visual {
  flex: 1 1 360px;
  max-width: 480px;
  position: relative;
}
.act__illustration {
  width: 100%;
  height: auto;
  display: block;
}
.act__illustration--agency { max-width: 280px; }
.act__illustration--celebrate { max-width: 380px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,255,127,0.08);
  border: 1px solid rgba(0,255,127,0.25);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Profile mock card */
.profile-mock {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--black-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.profile-mock__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  margin-bottom: 12px;
}
.profile-mock__handle {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.profile-mock__stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-mock__stat {
  font-size: 12px;
  color: var(--gray-dim);
}
.profile-mock__stat--low {
  color: #FF6B6B;
}

/* === iPhone 15 Dynamic Island mockup === */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  margin: 0 auto;
}
.phone-mockup__frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 48px;
  border: 8px solid #1a1a1a;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 40px 80px rgba(0,0,0,0.7),
    0 0 100px rgba(0,255,127,0.15);
  overflow: hidden;
}
.phone-mockup__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}
.phone-mockup__screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0a0a0a;
}
.platform-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.platform-screen--active { opacity: 1; }
.phone-mockup__home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(255,255,255,0.85);
  border-radius: 3px;
  z-index: 3;
}
.phone-mockup__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(0,255,127,0.25), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* === iOS 17 status bar (faithful) === */
.phone-mockup__statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px 0;
  z-index: 4;
  font-family: var(--font);
  pointer-events: none;
}
.phone-status__time {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.phone-status__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.status-icon { display: block; }
.status-icon--signal { width: 17px; height: 11px; }
.status-icon--wifi { width: 16px; height: 11px; }
.status-icon--battery {
  position: relative;
  width: 27px;
  height: 12px;
}
.status-icon__battery-shell {
  position: absolute;
  inset: 0;
  border: 1.2px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  box-sizing: border-box;
}
.status-icon__battery-fill {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  width: 19px;
  background: white;
  border-radius: 1.5px;
}
.status-icon__battery-tip {
  position: absolute;
  right: -2.5px;
  top: 3.5px;
  width: 1.5px;
  height: 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 0 1.5px 1.5px 0;
}

/* === Act 2 === */
.act--2 .act__inner {
  flex-direction: column;
  align-items: center;
}
.phone-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.act--2 .act__illustration--agency {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  z-index: 2;
}

/* Orbit icons — positioned to the LEFT of the phone, outside the frame */
.phone-orbit {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100px;
  width: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
  z-index: 5;
}
.phone-orbit__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  align-self: center;
}
.phone-orbit__icon.is-active {
  transform: scale(1.2);
  box-shadow: 0 0 32px var(--green-glow);
  border-color: var(--green);
}

/* Action cards (pop in during Act 2) */
.action-cards {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}
.action-card {
  background: var(--black-card);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateX(20px);
}

/* === Act 3 === */
.act--3 .act__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin-bottom: 40px;
}
.result-card {
  background: var(--black-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
}
.result-card__label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.result-card__value {
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result-card__delta {
  font-size: 13px;
  color: var(--gray);
}
.results-chart {
  width: 100%;
  max-width: 800px;
  height: 200px;
  margin-bottom: 32px;
}
.results-chart__line {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
}
.act__cta-final {
  margin-top: 16px;
}
.btn--xl {
  padding: 18px 44px;
  font-size: 16px;
}
.act--3 .act__illustration--celebrate {
  position: absolute;
  left: 5%;
  bottom: 8%;
  width: 220px;
  opacity: 0.85;
  z-index: 0;
}

/* === Mobile responsive (no pin needed since architecture is natural flow) === */
@media (max-width: 768px) {
  .act { padding: 80px 0 60px; min-height: auto; }
  .act--1 .act__inner {
    flex-direction: column;
    gap: 40px;
  }
  .act--1 .act__visual {
    width: 100%;
    max-width: 320px;
  }
  .profile-mock {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 20px auto 0;
  }
  .act__headline { font-size: clamp(36px, 9vw, 60px); text-align: center; }
  .act--1 .act__headline { text-align: left; }
  .phone-stage {
    flex-direction: column;
    gap: 30px;
  }
  .phone-orbit {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  .phone-orbit__icon { width: 44px; height: 44px; }
  .action-cards {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-top: 30px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .act--2 .act__illustration--agency {
    position: relative;
    right: auto;
    bottom: auto;
    width: 180px;
    margin: 30px auto 0;
  }
  .act--3 .act__illustration--celebrate {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 30px auto 0;
  }
  .results-grid { grid-template-columns: 1fr; }
}

/* === Reveal targets (CSS-driven, set via IntersectionObserver in main.js) === */
.reveal-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-target.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === Reduced motion fallback === */
@media (prefers-reduced-motion: reduce) {
  .results-chart__line { stroke-dashoffset: 0 !important; }
  .hero__badge-dot { animation: none !important; }
  .platform-screen[data-network="instagram"] { opacity: 1 !important; }
  .reveal-target { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--black);
}
.services__header {
  text-align: center;
  margin-bottom: 64px;
}
.services__header .section-sub { margin: 0 auto; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--green-border);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,255,127,0.1);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 56px; height: 56px;
  background: rgba(0,255,127,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0,255,127,0.15);
}
.service-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.service-card__desc {
  font-size: 13px;
  color: var(--gray-dim);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq {
  padding: 120px 0;
  background: var(--black-soft);
}
.faq__header {
  text-align: center;
  margin-bottom: 64px;
}
.faq__header .section-sub { margin: 0 auto; }
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open {
  border-color: var(--green-border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--green); }
.faq-item.open .faq-item__question { color: var(--green); }
.faq-item__arrow {
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.faq-item.open .faq-item__arrow {
  transform: rotate(180deg);
}
.faq-item__answer {
  height: 0;
  overflow: hidden;
}
.faq-item__answer p {
  padding: 0 28px 24px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}
.faq-item__answer strong { color: var(--green); }

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  padding-top: 0;
}
.footer__top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer__logo {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--gray-dim);
  margin-bottom: 24px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--transition);
}
.footer__social a:hover {
  color: var(--green);
  border-color: var(--green-border);
  box-shadow: 0 0 12px var(--green-glow);
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 14px;
  color: var(--gray-dim);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--white); }
.footer__contact { gap: 16px !important; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-dim);
  line-height: 1.6;
}
.footer__contact svg { margin-top: 2px; flex-shrink: 0; }
.footer__contact a { color: var(--gray-dim); transition: color var(--transition); }
.footer__contact a:hover { color: var(--green); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-dim);
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}
/* ===== GLOBAL POLISH ===== */
::selection { background: rgba(0,255,127,0.25); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(0,255,127,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 768px) {
  .phone-section, .services, .faq { padding: 80px 0; }
  .phone-section__header, .services__header, .faq__header { margin-bottom: 48px; }
}
