/* ============================
   ACCOUNT MANAGEMENT PAGE
   ============================ */

/* HERO — Split layout */
#am-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #030510;
}

/* Left: photo side */
.am-hero-left {
  flex: 0 0 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,77,255,0.04), rgba(0,229,255,0.02));
  overflow: hidden;
  clip-path: inset(0);
}

.am-hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.am-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) saturate(0.8);
}

.am-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,5,16,0.3) 0%, rgba(3,5,16,0) 30%, rgba(3,5,16,0) 60%, rgba(3,5,16,0.8) 100%);
}

/* Floating cards on photo */
.am-hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(11,15,24,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 3;
  animation: amFloat 6s ease-in-out infinite;
}

.am-hc-1 { bottom: 15%; right: 15%; animation-delay: 0s; }
.am-hc-2 { top: 15%; left: 12%; animation-delay: -3s; }

@keyframes amFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.am-hc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(124,77,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.am-hc-info strong { font-size: 12px; display: block; color: #fff; }
.am-hc-info span { font-size: 10px; color: var(--text2); }

/* Right: content */
.am-hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 50px;
  position: relative;
  z-index: 2;
}

.am-hero-badge { display: inline-block; padding: 5px 14px; background: rgba(124,77,255,0.1); border: 1px solid rgba(124,77,255,0.25); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--purple); margin-bottom: 20px; width: fit-content; }

#am-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.am-accent-line {
  background: linear-gradient(135deg, var(--purple), var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.am-hero-sub { font-size: 15px; color: var(--text2); line-height: 1.7; max-width: 460px; margin-bottom: 28px; }
.am-hero-btns { display: flex; gap: 14px; margin-bottom: 32px; }

/* Trust mini */
.am-hero-trust { display: flex; align-items: center; gap: 12px; }
.am-ht-avatars { display: flex; }
.am-ht-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #000;
  margin-left: -8px;
  border: 2px solid #030510;
}
.am-ht-av:first-child { margin-left: 0; }
.am-ht-text { font-size: 12px; color: var(--text2); }

.am-accent { background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* TRUST BAR */
.am-trust-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 40px; position: relative; z-index: 2; }
.am-tb-grid { display: flex; justify-content: center; gap: 20px; }
.am-tb { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; min-width: 220px; }
.am-tb-icon { font-size: 22px; width: 42px; height: 42px; border-radius: 11px; background: rgba(124,77,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.am-tb-info strong { font-size: 13px; display: block; color: #fff; }
.am-tb-info span { font-size: 11px; color: var(--text2); }

/* HOW IT WORKS — Scroll timeline */
#how-am { height: 400vh; position: relative; background: var(--bg); z-index: 1; }
.am-how-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 40px 80px 0; gap: 60px; }
.am-how-text { flex: 0 0 340px; }
.am-how-text h2 { font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 14px; }
.am-how-text p { font-size: 14px; color: var(--text2); line-height: 1.6; }

.am-timeline { flex: 1; position: relative; padding-left: 40px; }
.am-tl-line { position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,0.04); border-radius: 2px; }
.am-tl-line-fill { width: 100%; height: 0%; background: linear-gradient(180deg, var(--purple), var(--cyan), var(--green)); border-radius: 2px; transition: height 0.3s; }

.am-tl-step { position: relative; margin-bottom: 14px; opacity: 0.3; transition: opacity 0.5s; }
.am-tl-step.active { opacity: 1; }

.am-tl-dot { position: absolute; left: -34px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.15); transition: all 0.4s; }
.am-tl-step.active .am-tl-dot { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 12px rgba(124,77,255,0.4); }

.am-tl-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color 0.4s; }
.am-tl-step.active .am-tl-card { border-color: rgba(124,77,255,0.2); }

.am-tl-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 800; color: var(--purple); opacity: 0.5; margin-bottom: 6px; }
.am-tl-step.active .am-tl-num { opacity: 1; }
.am-tl-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.am-tl-card p { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 8px; }
.am-tl-time { font-size: 10px; color: var(--text2); font-weight: 600; }

/* SECTIONS */
.am-section { padding: 120px 0; background: var(--bg); }
.am-dark { background: var(--bg2); }

/* SERVICES GRID */
.am-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }

.am-svc { padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; position: relative; overflow: hidden; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.4s; }
.am-svc:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.am-svc[data-color="cyan"]:hover { border-color: rgba(0,229,255,0.2); }
.am-svc[data-color="green"]:hover { border-color: rgba(0,230,118,0.2); }
.am-svc[data-color="orange"]:hover { border-color: rgba(255,109,0,0.2); }
.am-svc[data-color="purple"]:hover { border-color: rgba(124,77,255,0.2); }

.am-svc-glow { position: absolute; top: -25px; right: -25px; width: 90px; height: 90px; border-radius: 50%; filter: blur(40px); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.am-svc:hover .am-svc-glow { opacity: 1; }
.am-svc[data-color="cyan"] .am-svc-glow { background: var(--cyan); }
.am-svc[data-color="green"] .am-svc-glow { background: var(--green); }
.am-svc[data-color="orange"] .am-svc-glow { background: var(--orange); }
.am-svc[data-color="purple"] .am-svc-glow { background: var(--purple); }

.am-svc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; z-index: 1; }
.am-svc-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.am-svc-tag { margin-left: auto; padding: 3px 10px; border-radius: 8px; font-size: 9px; font-weight: 700; background: rgba(0,230,118,0.08); color: var(--green); border: 1px solid rgba(0,230,118,0.15); }

.am-svc h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }
.am-svc > p { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; position: relative; z-index: 1; }

.am-svc-demo { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.04); border-radius: 10px; padding: 10px; position: relative; z-index: 1; }
.am-svc-d-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 11px; color: var(--text2); border-bottom: 1px solid rgba(255,255,255,0.03); }
.am-svc-d-row:last-child { border-bottom: none; }
.am-svc-d-row span:first-child { font-size: 13px; }

/* COMPARISON — Ribbon Cards */
.am-ribbon-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.am-ribbon {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  border-radius: 0;
  position: relative;
  width: 75%;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
  background: var(--rib-color);
}

/* Positioning: left, right, center bottom */
.am-rib-left { align-self: flex-start; }
.am-rib-right { align-self: flex-end; }
.am-rib-center { align-self: center; width: 80%; }

/* Number */
.am-rib-num {
  font-size: 36px;
  font-weight: 900;
  color: rgba(0,0,0,0.25);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  min-width: 50px;
}

/* Content */
.am-rib-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.am-rib-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* Roll-in animation */
.am-rib-anim {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.am-rib-left.am-rib-anim {
  transform: translateX(-120px) rotate(-8deg);
}

.am-rib-right.am-rib-anim {
  transform: translateX(120px) rotate(8deg);
}

.am-rib-center.am-rib-anim {
  transform: translateY(60px) rotate(-3deg);
}

.am-rib-anim.rib-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) rotate(0deg);
}

/* Exit animations — fly out in opposite direction */
.am-rib-left.rib-exit {
  opacity: calc(1 - var(--exit));
  transform: translateX(calc(var(--exit) * 150px)) rotate(calc(var(--exit) * 10deg)) scale(calc(1 - var(--exit) * 0.1));
}

.am-rib-right.rib-exit {
  opacity: calc(1 - var(--exit));
  transform: translateX(calc(var(--exit) * -150px)) rotate(calc(var(--exit) * -10deg)) scale(calc(1 - var(--exit) * 0.1));
}

.am-rib-center.rib-exit {
  opacity: calc(1 - var(--exit));
  transform: translateY(calc(var(--exit) * -80px)) rotate(calc(var(--exit) * 5deg)) scale(calc(1 - var(--exit) * 0.15));
}

/* Hover */
.am-ribbon:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* RESULTS */
.am-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.am-result { padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; text-align: center; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s; }
.am-result:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.3); }
.am-res-num { font-size: 42px; font-weight: 900; font-family: 'JetBrains Mono', monospace; letter-spacing: -2px; background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.am-res-label { font-size: 12px; color: var(--text2); line-height: 1.4; margin-bottom: 14px; }
.am-res-bar { height: 4px; background: rgba(255,255,255,0.04); border-radius: 2px; overflow: hidden; }
.am-res-fill { height: 100%; width: 0%; border-radius: 2px; background: var(--c); transition: width 1.5s cubic-bezier(0.16,1,0.3,1); }
.am-result.visible .am-res-fill { width: var(--w); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .am-hero-right { padding: 60px 40px; }
  .am-how-sticky { padding: 30px 40px; }
  .am-services-grid { gap: 16px; }
  .am-results-grid { grid-template-columns: repeat(2, 1fr); }
  .am-section { padding: 80px 0; }
}

@media (max-width: 768px) {
  /* Hero */
  #am-hero { flex-direction: column !important; min-height: auto; }
  .am-hero-left {
    flex: none !important;
    width: 100% !important;
    height: 280px !important;
  }
  .am-hero-card { display: none !important; }
  .am-hero-right {
    padding: 40px 20px !important;
    text-align: center;
  }
  .am-hero-sub { max-width: 100%; }
  .am-hero-btns { justify-content: center; flex-wrap: wrap; }
  .am-hero-trust { justify-content: center; }

  /* Trust bar */
  .am-trust-bar { padding: 20px 16px; }
  .am-tb-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .am-tb { min-width: 0; padding: 12px 14px; }
  .am-tb-info strong { font-size: 12px; }
  .am-tb-info span { font-size: 10px; }
  .am-tb-icon { width: 36px; height: 36px; font-size: 18px; }

  /* How it works */
  #how-am { height: auto !important; }
  .am-how-sticky {
    position: relative !important;
    height: auto !important;
    flex-direction: column !important;
    padding: 60px 20px !important;
    gap: 24px;
  }
  .am-how-text { flex: none; width: 100%; text-align: center; }
  .am-how-text h2 { font-size: 28px; }
  .am-timeline { width: 100%; padding-left: 40px; }

  /* Sections */
  .am-section { padding: 60px 0; }

  /* Services */
  .am-services-grid { grid-template-columns: 1fr !important; }

  /* Ribbons */
  .am-ribbon {
    width: 100% !important;
    clip-path: none !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
  }
  .am-rib-num { font-size: 28px; }
  .am-rib-content h4 { font-size: 14px; }
  .am-rib-content p { font-size: 12px; }

  /* Results */
  .am-results-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .am-result { padding: 20px; }
  .am-res-num { font-size: 32px; }
}

@media (max-width: 480px) {
  .am-hero-left { height: 200px !important; }
  .am-hero-right { padding: 30px 16px !important; }
  #am-hero h1 { font-size: 26px !important; letter-spacing: -1px; }
  .am-tb-grid { grid-template-columns: 1fr !important; }
  .am-results-grid { grid-template-columns: 1fr !important; }
  .am-how-text h2 { font-size: 24px; }
}
