/* =====================================================
   GoApus · InstaAgent Pro — Landing Page
   Theme: Dark + Gold · Premium Aesthetic
   ===================================================== */

/* --- Custom Properties --- */
:root {
  --gold:         #c9a84c;
  --gold-light:   #e8c96a;
  --gold-dim:     rgba(201, 168, 76, 0.12);
  --gold-border:  rgba(201, 168, 76, 0.28);
  --black:        #080808;
  --surface-1:    #101010;
  --surface-2:    #171717;
  --surface-3:    #1e1e1e;
  --text-1:       #f0f0f0;
  --text-2:       #969696;
  --text-3:       #505050;
  --border:       rgba(255, 255, 255, 0.07);
  --radius:       14px;
  --radius-sm:    9px;
  --nav-h:        68px;
  --container:    1160px;
  --section-py:   104px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Color utility --- */
.text-gold { color: var(--gold-light); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.btn--gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.28);
}
.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: 0 0 44px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.btn--outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.btn--lg { padding: 16px 40px; font-size: 1rem; }
.btn--full { width: 100%; text-align: center; }

/* --- Sections --- */
.section { padding: var(--section-py) 0; }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 68px;
}
.section-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title { margin-bottom: 18px; }
.section-sub { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* =====================================================
   NAVBAR
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav__bird { width: 42px; height: 26px; }
.nav__wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-1); }
.nav__cta { margin-left: 4px; padding: 10px 22px; font-size: 0.88rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 28px;
  background: rgba(8, 8, 8, 0.98);
  border-top: 1px solid var(--border);
}
.nav__mobile a {
  padding: 14px 0;
  color: var(--text-2);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav__mobile a:last-child { border-bottom: none; padding-top: 20px; }
.nav__mobile a:hover { color: var(--text-1); }
.nav__mobile.open { display: flex; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 700px; height: 500px;
  background: rgba(201, 168, 76, 0.07);
  top: 5%; left: 50%;
  transform: translateX(-50%);
}
.hero__glow--2 {
  width: 360px; height: 280px;
  background: rgba(201, 168, 76, 0.05);
  bottom: 12%; right: 8%;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.hero__headline { margin-bottom: 26px; font-weight: 800; }
.hero__sub {
  color: var(--text-2);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: 36px;
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero__proof-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.hero__proof-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hero__proof-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}
.hero__bird-wrap {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 500px;
  opacity: 0.16;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.hero__bird { width: 100%; }
@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 14px)) translateX(-10px); }
}

/* =====================================================
   PROBLEM
   ===================================================== */
.problem { background: var(--surface-1); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.problem__card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.25s ease;
}
.problem__card:hover { border-color: var(--gold-border); }
.problem__icon {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: 20px;
}
.problem__icon svg { width: 100%; height: 100%; }
.problem__card h3 { margin-bottom: 10px; }
.problem__card p { color: var(--text-2); font-size: 0.94rem; line-height: 1.72; }

/* =====================================================
   FEATURES
   ===================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 50px; height: 50px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
  transition: background 0.25s ease;
}
.feature-card:hover .feature-card__icon { background: rgba(201, 168, 76, 0.2); }
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 0.94rem; line-height: 1.72; }

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works { background: var(--surface-1); }
.steps {
  display: flex;
  align-items: flex-start;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
}
.step__number {
  font-family: 'Syne', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  text-stroke: 1.5px var(--gold);
  line-height: 1;
  margin-bottom: 22px;
}
.step__content h3 { margin-bottom: 12px; }
.step__content p { color: var(--text-2); font-size: 0.94rem; line-height: 1.72; }
.step__connector {
  flex-shrink: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-border), transparent);
  margin-top: 26px;
  position: relative;
}

/* =====================================================
   PRICING
   ===================================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 840px;
  margin: 0 auto 36px;
}
.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 38px;
  position: relative;
  transition: transform 0.25s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--featured {
  border-color: var(--gold-border);
  background: linear-gradient(160deg, var(--surface-2) 0%, rgba(201, 168, 76, 0.06) 100%);
  box-shadow: 0 0 48px rgba(201, 168, 76, 0.1), inset 0 1px 0 rgba(201, 168, 76, 0.18);
}
.pricing-card__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card__header { margin-bottom: 36px; }
.pricing-card__tier {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.pricing-card__amount {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}
.pricing-card__period {
  color: var(--text-3);
  font-size: 0.88rem;
}
.pricing-card__desc {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
.pricing-card__features {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.check { color: var(--gold); font-weight: 700; flex-shrink: 0; }
.muted { color: var(--text-3); flex-shrink: 0; }
.pricing__note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
}
.pricing__note a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
  transition: border-color 0.2s ease;
}
.pricing__note a:hover { border-color: var(--gold); }

/* =====================================================
   FAQ
   ===================================================== */
.faq { background: var(--surface-1); }
.faq__container { max-width: 780px; }
.faq__list { display: flex; flex-direction: column; gap: 6px; }
.faq__item { border-radius: var(--radius-sm); }
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface-2);
  color: var(--text-1);
  font-size: 0.96rem;
  font-weight: 500;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.faq__question:hover { background: var(--surface-3); }
.faq__question[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  background: var(--surface-3);
  color: var(--gold-light);
}
.faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--text-3);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.faq__icon::before {
  width: 9px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 1.5px; height: 9px;
  transform: translate(-50%, -50%);
}
.faq__question[aria-expanded="true"] .faq__icon {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq__question[aria-expanded="true"] .faq__icon::before { background: var(--gold); }
.faq__answer {
  padding: 20px 24px 26px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.faq__answer[hidden] { display: none; }
.faq__answer p { color: var(--text-2); font-size: 0.94rem; line-height: 1.78; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: #070700;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cta-banner__bird {
  width: 480px;
  opacity: 0.6;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-banner__inner .section-eyebrow { margin-bottom: 16px; }
.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
}
.cta-banner p {
  color: var(--text-2);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 52px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer__bird { width: 36px; height: 22px; }
.footer__logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-1);
}
.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: var(--text-3);
  font-size: 0.86rem;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  color: var(--text-3);
  font-size: 0.82rem;
}
.footer__tagline {
  color: var(--text-3);
  font-size: 0.76rem;
  font-style: italic;
  opacity: 0.55;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 72px;
    --nav-h: 60px;
  }

  .hero__bird-wrap { display: none; }

  .hero__proof {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero__proof-num { font-size: 1.3rem; }

  .steps {
    flex-direction: column;
    gap: 40px;
  }
  .step {
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }
  .step__number { font-size: 2.4rem; margin-bottom: 14px; }
  .step__connector { display: none; }

  .features__grid { grid-template-columns: 1fr; }
  .problem__grid  { grid-template-columns: 1fr; }
  .pricing__grid  { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; }
  .hero__proof { flex-direction: column; gap: 18px; }
  .hero__proof-divider { width: 48px; height: 1px; }
}

/* =====================================================
   Focus styles for accessibility
   ===================================================== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
