/* ============================================================
   ACL TRADINGS — landing page styles
   Mobile-first. Primary colour: purple.
   ============================================================ */

:root {
  /* Purple palette */
  --purple-50:  #f6f3ff;
  --purple-100: #ece5ff;
  --purple-200: #d9ccff;
  --purple-300: #bda6ff;
  --purple-400: #9d78f7;
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --purple-700: #5b21b6;
  --purple-800: #4c1d95;
  --purple-900: #2e1065;

  --ink:      #1c1633;
  --ink-soft: #574f70;
  --line:     #e7e2f5;
  --bg:       #ffffff;
  --bg-alt:   #faf8ff;

  --wa:       #25d366;
  --radius:   16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(46, 16, 101, .06), 0 4px 14px rgba(46, 16, 101, .06);
  --shadow-md: 0 10px 30px rgba(46, 16, 101, .12);
  --shadow-lg: 0 24px 60px rgba(46, 16, 101, .18);

  --container: 1160px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5rem; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .98rem;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  box-shadow: 0 8px 22px rgba(109, 40, 217, .32);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(109, 40, 217, .42); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--purple-700); border-color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--purple-300);
  color: var(--purple-700);
}
.btn-outline:hover { background: var(--purple-50); border-color: var(--purple-500); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(46, 16, 101, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  color: #fff; font-weight: 800; font-size: .84rem; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(109, 40, 217, .3);
}
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: .95rem; letter-spacing: .04em; }
.brand-text small { font-weight: 500; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-600); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem; border-radius: 999px;
  font-weight: 500; font-size: .94rem; color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--purple-700); background: var(--purple-50); }
.nav-cta {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700)) !important;
  color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(109, 40, 217, .3);
}
.nav-cta:hover { filter: brightness(1.07); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--purple-700); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(124, 58, 237, .28), transparent 62%),
    radial-gradient(900px 460px at 8% 4%, rgba(157, 120, 247, .22), transparent 60%),
    linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 48%, var(--purple-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(189, 166, 255, .5), transparent 68%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; }

.pill {
  display: inline-block;
  padding: .38rem .9rem; margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.05rem, 7.2vw, 3.6rem); font-weight: 800; max-width: 18ch; }
.hero h1 .grad {
  background: linear-gradient(100deg, #e9ddff 0%, #c4a8ff 45%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1rem, 2.6vw, 1.12rem); color: rgba(255, 255, 255, .86); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .5rem; list-style: none; margin: 2.4rem 0 0; padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(1.35rem, 5vw, 1.75rem); font-weight: 800; }
.hero-stats span { font-size: .78rem; color: rgba(255, 255, 255, .72); }

/* Hero quote card */
.hero-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  padding: 1.1rem 1.2rem 1.3rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; align-items: center; gap: .4rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.dot:nth-child(1) { background: #ff5f57; } .dot:nth-child(2) { background: #febc2e; } .dot:nth-child(3) { background: #28c840; }
.hero-card-title { margin-left: auto; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.quote-lines { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.quote-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.quote-lines span { color: rgba(255, 255, 255, .82); }
.quote-lines b { white-space: nowrap; }
.quote-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed rgba(255, 255, 255, .3);
  font-weight: 700;
}
.quote-total b { font-size: 1.25rem; color: #fff; }
.quote-note { margin: .8rem 0 0; font-size: .74rem; color: rgba(255, 255, 255, .6); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 2.6rem; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: .7rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-600);
}
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.35rem); font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid { display: grid; gap: 1.1rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---------- Products ---------- */
.products { grid-template-columns: 1fr; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.product .icon, .feature .icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: .95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-100), var(--purple-200));
  font-size: 1.5rem;
}
.product h3 { font-size: 1.08rem; }
.product p { color: var(--ink-soft); font-size: .93rem; margin-bottom: .9rem; }
.tag {
  display: inline-block; padding: .28rem .7rem;
  border-radius: 999px; background: var(--purple-50);
  color: var(--purple-700); font-size: .74rem; font-weight: 600;
}

/* ---------- Pricing table ---------- */
.price-table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-bottom: 2.4rem;
}
.price-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; }
.price-table th, .price-table td { padding: .9rem 1rem; text-align: left; white-space: nowrap; }
.price-table thead th {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #fff; font-weight: 600; font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.price-table tbody th { font-weight: 600; white-space: normal; }
.price-table tbody td:not(:first-child) { text-align: right; }
.price-table thead th:not(:first-child) { text-align: right; }
.price-table tbody tr:nth-child(even) { background: var(--purple-50); }
.price-table tbody tr:hover { background: var(--purple-100); }
.price-table tbody td:nth-child(3) { color: var(--ink); }
.price-table tbody td:nth-child(4) { color: var(--purple-700); font-weight: 700; }

/* ---------- Plans ---------- */
.plans { grid-template-columns: 1fr; align-items: start; }
.plan { display: flex; flex-direction: column; }
.plan.featured {
  border-color: var(--purple-400);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--purple-50), #fff 55%);
  position: relative;
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: .3rem .9rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; }
.plan-price { font-size: 1.55rem; font-weight: 800; color: var(--purple-700); display: flex; flex-direction: column; margin-bottom: 1rem; }
.plan-price small { font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.plan-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; flex: 1; }
.plan-list li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--purple-100); color: var(--purple-700);
  font-size: .7rem; font-weight: 800;
}

.price-disclaimer {
  margin: 2rem auto 0; max-width: 720px; text-align: center;
  font-size: .85rem; color: var(--ink-soft);
  background: #fff; border: 1px dashed var(--purple-300);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
}

/* ---------- Features ---------- */
.features { grid-template-columns: 1fr; }
.feature { text-align: left; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; gap: 2rem; }
.contact-copy h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; }
.contact-copy > p { color: var(--ink-soft); }
.contact-info { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-info li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-info li > span {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--purple-100); font-size: 1.1rem;
}
.contact-info strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-600); }
.contact-info a { color: var(--ink); font-weight: 500; }
.contact-info a:hover { color: var(--purple-700); text-decoration: underline; }

.contact-form h3 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--purple-50);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .13);
}
.field input.invalid, .field textarea.invalid { border-color: #e5484d; background: #fff5f5; }
.form-hint { margin: .8rem 0 0; font-size: .78rem; color: var(--ink-soft); text-align: center; }
.form-hint.error { color: #c62a2f; font-weight: 600; }
.form-hint.success { color: var(--purple-700); font-weight: 600; }
.wa-icon { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: rgba(255, 255, 255, .82); padding: 2.6rem 0; }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand strong { color: #fff; letter-spacing: .05em; }
.footer-brand p { margin: .25rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .68); max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-nav a { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { margin: 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (min-width: 640px) {
  .container { padding-inline: 28px; }
  .products  { grid-template-columns: repeat(2, 1fr); }
  .features  { grid-template-columns: repeat(2, 1fr); }
  .plans     { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { grid-column: span 2; }
  .hero-stats { gap: 1rem; }
  .section { padding: 88px 0; }
}

/* ============================================================
   Responsive — desktop
   ============================================================ */
@media (min-width: 960px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .features .feature { text-align: center; }
  .features .icon { margin-inline: auto; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan.featured { grid-column: auto; transform: translateY(-10px); }

  .hero { padding: calc(var(--header-h) + 84px) 0 104px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3.5rem; }
  .hero-stats { margin-top: 2.8rem; }

  .contact-wrap { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 3rem; }

  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .copyright { grid-column: 1 / -1; }
  .wa-float { right: 28px; bottom: 28px; }
}

/* ============================================================
   Mobile navigation (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 20px 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), visibility .3s;
    visibility: hidden;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: .9rem 1rem; border-radius: 12px; font-size: 1rem; }
  .nav-cta { margin-top: .5rem; text-align: center; justify-content: center; display: flex; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.85rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .brand-text small { display: none; }
  .quote-lines li { font-size: .82rem; }
}
