/* ============================================================
   AdFlex Network — Landing (cactus theme)
   ============================================================ */

:root {
  --bg: #141210;
  --card: #241e14;
  --card-2: #2a2318;
  --card-3: #31281a;
  --line: #3d3320;
  --line-gold: rgba(245, 185, 66, .18);

  --gold: #f5b942;
  --gold-2: #ffc845;
  --gold-grad: linear-gradient(180deg, #ffd34d 0%, #f0a020 100%);
  --purple-grad: linear-gradient(180deg, #e040b0 0%, #8a2be2 100%);
  --orange-grad: linear-gradient(180deg, #e85d2f 0%, #b03320 100%);

  --green: #3dc86e;
  --red: #e04850;

  --text: #ffffff;
  --text-2: #9a8f80;
  --muted: #6b6255;

  --r-lg: 24px;
  --r-md: 16px;

  --shadow-gold: 0 8px 24px rgba(245, 185, 66, .32);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 46% at 50% -10%, rgba(90, 70, 28, .55) 0%, rgba(43, 36, 22, .22) 46%, transparent 74%),
    radial-gradient(ellipse 55% 34% at 92% 30%, rgba(70, 40, 16, .22) 0%, transparent 70%),
    radial-gradient(ellipse 55% 34% at 6% 62%, rgba(60, 36, 40, .18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .header, .footer { position: relative; z-index: 1; }
main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(245, 185, 66, .35); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }

/* ---------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 18, 16, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 51, 32, .55);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; letter-spacing: -.2px; }
.logo-img {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1.5px solid var(--line-gold);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.logo-accent { color: var(--gold); }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: color .18s; }
.nav a:hover { color: var(--gold-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  width: 40px; height: 40px; border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--gold-2);
  font-size: 13px; font-weight: 900;
  transition: .18s;
}
.lang-toggle:hover { border-color: var(--gold); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px;
  font-weight: 800; letter-spacing: .2px;
  transition: transform .16s, box-shadow .22s, filter .2s;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--gold-grad);
  color: #4d3204;
  box-shadow: var(--shadow-gold), inset 0 1.5px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(245, 185, 66, .45), inset 0 1.5px 0 rgba(255, 255, 255, .45); }
.btn-ghost {
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-glow { box-shadow: 0 10px 34px rgba(245, 185, 66, .5), inset 0 1.5px 0 rgba(255, 255, 255, .45); }

/* ---------------------------------------------------------- hero */
.hero { padding: 74px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card);
  border: 1px solid var(--line-gold);
  color: #f5d9a3;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title { font-size: clamp(38px, 6vw, 60px); font-weight: 900; line-height: 1.06; letter-spacing: -1.4px; }
.gradient-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 26px rgba(245, 185, 66, .3));
}
.hero-subtitle { font-size: 17px; color: var(--text-2); margin: 18px 0 28px; max-width: 540px; }
.hero-buttons { display: flex; gap: 13px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.stat-value { font-size: 27px; font-weight: 900; color: var(--gold-2); letter-spacing: -.5px; }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-top: 2px; }

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  border-radius: 30px;
  border: 2px solid var(--line-gold);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(245, 185, 66, .08);
  transform: rotate(1.6deg);
}

/* ---------------------------------------------------------- ticker */
.ticker {
  overflow: hidden;
  background: var(--gold-grad);
  padding: 11px 0;
  box-shadow: var(--shadow-gold);
}
.ticker-inner {
  display: inline-flex; white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 14px; font-weight: 800; color: #4d3204;
}
.ticker-inner span { padding: 0 22px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, rgba(42, 35, 24, .5), rgba(42, 35, 24, 0)); }
.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 900; text-align: center; letter-spacing: -.8px; }
.section-subtitle { text-align: center; color: var(--text-2); font-size: 16px; margin: 12px auto 46px; max-width: 560px; }

/* features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: linear-gradient(180deg, var(--card-3) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(245, 185, 66, .45); }
.feature-img {
  width: 100%; height: 170px; object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line-gold);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); }

/* steps */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 18px; }
.step {
  flex: 1; max-width: 320px;
  background: linear-gradient(180deg, var(--card-3) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.step-number {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #4d3204;
  font-size: 23px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
}
.step h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); }
.step-arrow {
  align-self: center;
  font-size: 26px; font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(245, 185, 66, .5);
}
.how-cta { text-align: center; margin-top: 44px; }

/* faq */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(245, 185, 66, .45); }
.faq-q {
  padding: 18px 22px;
  font-size: 16px; font-weight: 800;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--gold); font-weight: 900; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  font-size: 14.5px; color: var(--text-2);
}
.faq-item.open .faq-a { max-height: 260px; }
.faq-a-inner, .faq-a { padding: 0 22px; }
.faq-a { padding-bottom: 0; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { padding-bottom: 18px; }

/* cta */
.cta { padding: 40px 0 90px; }
.cta-inner {
  display: flex; align-items: center; gap: 40px;
  background:
    radial-gradient(ellipse 70% 120% at 88% -10%, rgba(245, 185, 66, .2) 0%, transparent 55%),
    linear-gradient(180deg, var(--card-3) 0%, var(--card) 100%);
  border: 1px solid var(--line-gold);
  border-radius: 30px;
  padding: 44px 46px;
  box-shadow: var(--shadow-card);
}
.cta-art {
  width: 190px; height: 190px; flex: 0 0 auto;
  object-fit: cover; border-radius: 30px;
  border: 2px solid var(--line-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transform: rotate(-2deg);
}
.cta-copy { flex: 1; }
.cta-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.6px; margin-bottom: 24px; line-height: 1.15; }

/* ---------------------------------------------------------- footer */
.footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(61, 51, 32, .55);
  background: rgba(18, 16, 13, .9);
  margin-top: auto;
  padding: 26px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.logo-footer { font-size: 16.5px; }
.footer-left p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.footer-right { display: flex; gap: 22px; }
.footer-right a { font-size: 14px; font-weight: 700; color: var(--text-2); transition: color .18s; }
.footer-right a:hover { color: var(--gold-2); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 560px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; padding: 36px 26px; }
  .cta-copy h2 { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .hero-stats { gap: 22px; }
  .stat-value { font-size: 22px; }
  .btn-lg { padding: 15px 24px; font-size: 15px; }
  .header-inner { padding: 11px 16px; }
  .container { padding: 0 16px; }
}
@media (max-width: 400px) {
  .hero-stats { gap: 14px; }
  .stat-label { font-size: 10.5px; letter-spacing: .4px; }
  .hero-subtitle { overflow-wrap: break-word; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}
