/* ===========================================================
   Easy Sales Export — Design Tokens & Landing Page
   =========================================================== */

:root {
  --navy: #0b2545;
  --blue: #1857b8;
  --blue-light: #4f8ff0;
  --green: #178a4c;
  --green-light: #2fbf71;
  --grey-50: #f7f9fc;
  --grey-100: #eef1f6;
  --grey-300: #d7dee8;
  --grey-500: #7c8aa0;
  --grey-700: #3b4557;
  --ink: #14213d;
  --white: #ffffff;
  --danger: #d64545;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 24px 64px rgba(11, 37, 69, 0.18);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --grey-50: #0d1526;
  --grey-100: #101a2e;
  --grey-300: #223256;
  --grey-500: #8f9db8;
  --grey-700: #c4cede;
  --ink: #eef2fa;
  --white: #101a2e;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--ink); }

p { line-height: 1.65; color: var(--grey-700); }

a { color: var(--blue); text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--white) 82%, transparent);
  border-bottom: 1px solid var(--grey-300);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
[data-theme="dark"] .brand { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: contain;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--grey-700); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--grey-300); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }
/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--green) 16%, transparent), transparent 55%),
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 50%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.hero p.lead { font-size: 1.1rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy), var(--blue));
  aspect-ratio: 4/3.2;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; border-radius: 50%;
  background: color-mix(in srgb, var(--green-light) 55%, transparent);
  filter: blur(30px);
}
.hero-visual::before { width: 180px; height: 180px; top: -40px; right: -40px; }
.hero-visual::after { width: 140px; height: 140px; bottom: -30px; left: -20px; background: color-mix(in srgb, var(--blue-light) 55%, transparent); }
.hero-visual-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 28px; color: #fff; }
.hero-stat { display: flex; gap: 20px; margin-top: 10px; }
.hero-stat div strong { display: block; font-size: 1.5rem; font-family: var(--font-display); }
.hero-stat div span { font-size: 0.78rem; opacity: 0.8; }
.hero-logo {
  width: 150px;      /* adjust to taste */
  height: auto;
    margin-bottom: 12px;
  display: block;
}
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(24, 87, 184, 0.35); transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--green-light), var(--green)); color: #fff; box-shadow: 0 12px 28px rgba(23, 138, 76, 0.28); }
.btn-green:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--grey-300); }
[data-theme="dark"] .btn-outline { color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lock { background: var(--grey-700); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { display: inline-flex; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.about-card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-100);
}
.about-card .icon { font-size: 1.8rem; margin-bottom: 12px; }

/* Programme Cards */
.programmes { background: var(--grey-100); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prog-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: color-mix(in srgb, var(--white) 70%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--white) 40%, var(--grey-300));
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog-card .badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.prog-card.wave .badge { background: linear-gradient(135deg, var(--green-light), var(--green)); }
.prog-card.coop .badge { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.prog-card.coopb .badge { background: linear-gradient(135deg, #64748b, #334155); }
.prog-card h3 { font-size: 1.3rem; }
.prog-card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger);
}
.prog-card p { flex: 1; margin: 0; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.benefit {
  background: var(--white); border-radius: var(--radius-md); padding: 24px; text-align: center;
  border: 1px solid var(--grey-100); box-shadow: var(--shadow-sm);
}
.benefit .icon { font-size: 1.6rem; margin-bottom: 10px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); font-size: 1rem;
}
[data-theme="dark"] .faq-q { color: var(--ink); }
.faq-q .plus { transition: transform var(--transition); color: var(--blue); font-size: 1.3rem; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition), padding var(--transition); padding: 0 22px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.contact-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--grey-100); box-shadow: var(--shadow-sm); }
.contact-card .icon { font-size: 1.5rem; margin-bottom: 10px; color: var(--blue); }

/* Footer */
footer { background: var(--navy); color: #cfd9ec; padding: 56px 0 24px; }
[data-theme="dark"] footer { background: #060c18; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 0.95rem; }
footer a { color: #b7c4dd; display: block; margin-bottom: 8px; font-size: 0.9rem; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.82rem; color: #92a1bf; }

/* Password Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 37, 69, 0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px; width: min(420px, 100%);
  box-shadow: var(--shadow-lg); text-align: center; animation: pop 260ms cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box .lock-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grey-100); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.modal-box input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--grey-300);
  font-size: 1rem; margin: 16px 0 8px; background: var(--white); color: var(--ink);
}
.modal-box { position: relative; /* ...existing properties stay unchanged... */ }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--grey-500);
}
.modal-close:hover { color: var(--ink); }
.modal-error { color: var(--danger); font-size: 0.85rem; min-height: 18px; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Loading spinner */
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid, .card-grid, .contact-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column;
    padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--grey-300); transform: translateY(-120%); transition: transform var(--transition); }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}
