/* ============================================================
   AmraniAds — styles.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design tokens ── */
:root {
  --bg-primary:    #0D1B2A;
  --bg-card:       #111e2e;
  --bg-input:      #0a1520;
  --border:        #1e3048;
  --accent:        #E87722;
  --accent-hover:  #cf6a1e;
  --text-primary:  #ffffff;
  --text-secondary:#8aa8c4;
  --text-muted:    #5a7a99;
  --success:       #4ade80;
  --wa-green:      #25D366;
  --wa-green-hover:#1fb855;

  --s-xs:  0.5rem;
  --s-sm:  1rem;
  --s-md:  1.5rem;
  --s-lg:  2.5rem;
  --s-xl:  4rem;
  --s-xxl: 7rem;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.35);
  --shadow-glow: 0 0 40px rgba(232,119,34,.12);
  --shadow-btn:  0 4px 16px rgba(232,119,34,.3);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

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

/* ── Typography helpers ── */
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; color: var(--text-primary); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem);  font-weight: 600; line-height: 1.3; color: var(--text-primary); }

.label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

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

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-md);
}

.section { padding: var(--s-xxl) 0; }

.text-center { text-align: center; }

/* ── Badge / pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge-accent  { border: 1.5px solid var(--accent); color: var(--accent); }
.badge-success { background: rgba(74,222,128,.15); color: var(--success); font-size: .65rem; padding: .2rem .55rem; }
.badge-popular {
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  padding: .2rem .6rem;
  position: absolute;
  top: -1px;
  right: 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-wa:hover { background: var(--wa-green-hover); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(30,48,72,.5); color: var(--text-primary); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ── ===================== NAVIGATION ===================== ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(13,27,42,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}
.nav-links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.nav-signin {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-signin:hover { color: var(--text-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile overlay */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-lg);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .3s, transform .3s;
}
#mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
#mobile-nav a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color .2s;
}
#mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
}

/* ── ======================== HERO ======================== ── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(64px + var(--s-xl)) var(--s-md) var(--s-xl);
  position: relative;
  overflow: hidden;
}

/* Mesh gradient background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(232,119,34,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14,60,110,.25) 0%, transparent 60%);
  pointer-events: none;
}

/* Noise overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: .4;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
  max-width: 780px;
}

.hero-badge { margin-bottom: var(--s-xs); }

.hero-sub {
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-proof {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-proof span { display: inline-flex; align-items: center; gap: .3rem; }
.proof-sep { color: var(--border); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
  transition: opacity .4s;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* Hero entry animations */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-content > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ===================== AUDIT FORM ==================== ── */
#audit {
  background: var(--bg-primary);
  padding: var(--s-xxl) 0;
}

.audit-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  padding: var(--s-xl) var(--s-lg);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.audit-card h2 { margin: var(--s-sm) 0 var(--s-xs); }

.audit-sub {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: var(--s-md);
}

.audit-trust {
  display: flex;
  justify-content: center;
  gap: var(--s-md);
  flex-wrap: wrap;
  margin-bottom: var(--s-md);
  font-size: .78rem;
  color: var(--text-muted);
}
.audit-trust span { display: flex; align-items: center; gap: .3rem; }
.audit-trust .check { color: var(--success); }

.audit-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.form-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 15px;
  padding: 11px 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,119,34,.12);
}

#audit-submit {
  margin-top: .25rem;
  transition: background .2s, color .2s;
}
#audit-submit.sent { background: transparent; color: var(--success); border: 1.5px solid var(--success); }

/* ── ====================== PRICING ====================== ── */
#pricing { background: var(--bg-primary); }

.pricing-header { text-align: center; margin-bottom: var(--s-lg); }
.pricing-header p { margin-top: var(--s-xs); max-width: 500px; margin-left: auto; margin-right: auto; }

/* Toggle */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-lg);
}
.toggle-track {
  display: inline-flex;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
}
.toggle-btn {
  padding: .45rem 1.2rem;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: .88rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.toggle-btn.active { background: var(--accent); color: #fff; }

/* Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-md);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pricing-card:hover { transform: translateY(-3px); }

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.pricing-card.popular:hover { box-shadow: 0 0 60px rgba(232,119,34,.2), var(--shadow-card); }

.pricing-card .card-category {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: var(--s-sm);
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  margin: var(--s-xs) 0;
}
.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: opacity .2s;
}
.price-amount.fade { opacity: 0; }
.price-period { font-size: .85rem; color: var(--text-muted); }

.pricing-card .tier-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: var(--s-md);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: var(--s-lg);
}
.feature-list li {
  font-size: .88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.feature-list li .check { color: var(--success); flex-shrink: 0; margin-top: .1rem; }

/* ── ================ CERTIFICATIONS ==================== ── */
#certified { background: var(--bg-primary); }

.section-header { text-align: center; margin-bottom: var(--s-lg); }
.section-header .label { margin-bottom: var(--s-xs); display: block; }
.section-header p { margin-top: var(--s-xs); max-width: 520px; margin-left: auto; margin-right: auto; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-sm);
  margin-bottom: var(--s-lg);
}

.cert-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-sm);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: border-color .2s, transform .2s;
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.cert-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cert-icon.google   { background: linear-gradient(135deg, #4285F4, #34A853); }
.cert-icon.anthropic{ background: linear-gradient(135deg, #E87722, #c45f00); }
.cert-icon.ga       { background: linear-gradient(135deg, #F9AB00, #E37400); }

.cert-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.cert-issuer { font-size: 11px; color: var(--text-muted); }
.cert-year   { font-size: 11px; color: var(--text-muted); }

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.certs-cta { text-align: center; }

/* ── ============= PROFESSIONAL PROFILES ================ ── */
#profiles {
  background: var(--bg-primary);
  padding: var(--s-xl) 0;
}

#profiles h3 {
  text-align: center;
  margin-bottom: var(--s-lg);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-sm);
}

.profile-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-md);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.profile-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.profile-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-icon svg { width: 22px; height: 22px; }
.icon-linkedin { background: #0077B5; }
.icon-upwork   { background: #14A800; }
.icon-github   { background: #24292e; }
.icon-discord  { background: #5865F2; }

.profile-info { flex: 1; }
.profile-name { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.profile-url  { font-size: .75rem; color: var(--text-muted); }

.profile-arrow { color: var(--text-muted); font-size: .9rem; margin-left: auto; }

/* ── ======================= FAQ ========================= ── */
#faq { background: var(--bg-primary); }

.faq-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s-lg);
  flex-wrap: wrap;
  gap: var(--s-sm);
}
.faq-top .text-block p { max-width: 440px; margin-top: var(--s-xs); }
.faq-wa-link {
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: .35rem;
  transition: color .2s;
}
.faq-wa-link:hover { color: var(--accent-hover); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(232,119,34,.4); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--s-sm) var(--s-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-size: .92rem;
  font-weight: 600;
  font-family: inherit;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: transform .3s, border-color .2s, color .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-answer-inner {
  padding: 0 var(--s-md) var(--s-sm);
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── ==================== FINAL CTA ===================== ── */
#final-cta {
  padding: var(--s-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,119,34,.08) 0%, transparent 70%);
  pointer-events: none;
}
#final-cta .container { position: relative; z-index: 1; }
#final-cta h2 { margin-bottom: var(--s-md); }

/* ── ====================== FOOTER ======================= ── */
footer {
  background: var(--bg-card);
  border-top: 1.5px solid var(--border);
  padding: var(--s-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-xl);
  padding-bottom: var(--s-xl);
}

.footer-brand .nav-logo { margin-bottom: var(--s-sm); }
.footer-brand p { font-size: .88rem; margin-bottom: var(--s-xs); }
.footer-brand a { font-size: .85rem; color: var(--accent); }
.footer-brand a:hover { text-decoration: underline; }

.footer-col h4 {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: var(--s-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a {
  font-size: .88rem;
  color: var(--text-secondary);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1.5px solid var(--border);
  padding: var(--s-sm) 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── ================ SCROLL ANIMATIONS ================ ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helper — add via JS style attr */
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .1s; }
.stagger-3 { transition-delay: .15s; }
.stagger-4 { transition-delay: .2s; }

/* ── ============== RESPONSIVE BREAKPOINTS ============== ── */
@media (max-width: 1024px) {
  .certs-grid      { grid-template-columns: repeat(3, 1fr); }
  .profiles-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-ctas .btn { min-width: 140px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* Certs */
  .certs-grid { grid-template-columns: repeat(2, 1fr); }

  /* Profiles */
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: auto;
    padding-bottom: var(--s-xs);
  }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-lg); }

  /* Audit card */
  .audit-card { padding: var(--s-lg) var(--s-md); }
  .audit-trust { flex-direction: column; align-items: center; }

  /* CTA */
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }

  /* FAQ top */
  .faq-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .certs-grid { grid-template-columns: 1fr 1fr; }
}
