/* ═══════════════════════════════════════════════════════════
   APPFORGE — style.css
   Aesthetic: Dark SaaS premium — deep navy + electric indigo
   Fonts: Fraunces (editorial serif display) + DM Sans (clean)
═══════════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ─── Design tokens ─── */
:root {
  /* Palette */
  --bg:          #080c14;
  --bg2:         #0c1220;
  --surface:     #101726;
  --card:        #131b2e;
  --card-border: rgba(255,255,255,0.07);
  --card-hover:  rgba(255,255,255,0.10);

  --indigo:      #6366f1;
  --indigo-light:#818cf8;
  --indigo-glow: rgba(99,102,241,0.18);
  --indigo-dim:  rgba(99,102,241,0.08);
  --cyan:        #22d3ee;
  --green:       #4ade80;
  --red:         #f87171;
  --amber:       #fbbf24;

  --text:        #f1f5f9;
  --text2:       #94a3b8;
  --text3:       #475569;
  --line:        rgba(255,255,255,0.06);
  --line2:       rgba(255,255,255,0.10);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4), 0 12px 40px rgba(0,0,0,0.25);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5), 0 24px 60px rgba(0,0,0,0.35);
  --glow-indigo: 0 0 40px rgba(99,102,241,0.25);

  /* Typography */
  --ff-head: 'Fraunces', serif;
  --ff-body: 'DM Sans', sans-serif;

  /* Layout */
  --radius:    10px;
  --radius-lg: 18px;
  --max-w:     1100px;
}

body.light {
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --surface: #ffffff;
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.12);
  --card-hover: rgba(15, 23, 42, 0.2);
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line2: rgba(15, 23, 42, 0.15);
}

/* ─── Base ─── */
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

a { text-decoration: none; color: inherit; }

em {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 300;
  color: var(--indigo-light);
}

/* ─── Shared button styles ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--indigo);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--indigo-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-arrow { display: inline-block; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text2);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 400;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--line2); color: var(--text); background: rgba(255,255,255,0.04); }


/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--indigo-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--text2);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }

.nav-admin-btn {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--indigo-light);
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
}
.nav-admin-btn:hover { background: var(--indigo-glow); border-color: var(--indigo); }

.theme-toggle {
  font-size: 0.9rem;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--card-border);
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--indigo);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--line);
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.95rem;
  color: var(--text2);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-admin-btn-mobile {
  margin-top: 1rem;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--indigo-light);
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}


/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  overflow: hidden;
}

/* Dot grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--indigo);
  top: -120px; left: -100px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 350px; height: 350px;
  background: var(--cyan);
  bottom: 0; right: -80px;
  opacity: 0.18;
  animation: drift2 15s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes drift2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-40px, -30px); }
}

.hero .container { position: relative; z-index: 1; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line2);
  padding: 0.38rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Title */
.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(3.4rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.6rem;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-title-em {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 300;
  color: var(--indigo-light);
  background: linear-gradient(90deg, var(--indigo-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desc */
.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 460px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.2rem;
  animation: fadeUp 0.6s 0.35s ease both;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s 0.45s ease both;
}

/* Proof strip */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.6s 0.55s ease both;
}
.proof-item strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.15rem;
  letter-spacing: -0.03em;
}
.proof-item span {
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proof-sep {
  width: 1px; height: 40px;
  background: var(--line2);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-bar {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--text2), transparent);
  animation: scrollFade 2s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.7; }
}

/* Shared hero animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════
   SECTIONS — shared
═══════════════════════════════════════════════════════════ */
.section { padding: 8rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 1rem;
  padding: 0.32rem 0.9rem;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 99px;
  background: var(--indigo-dim);
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--d, 0s) ease,
              transform 0.55s var(--d, 0s) ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.section-services { background: var(--bg2); }

.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 4.5rem;
}

.step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.step:hover {
  border-color: var(--card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.steps-connector {
  align-self: center;
  color: var(--text3);
  font-size: 1.2rem;
  padding: 0 0.75rem;
  flex-shrink: 0;
}

.step-index {
  font-family: var(--ff-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text3);
  margin-bottom: 1rem;
}
.step-icon { font-size: 1.7rem; margin-bottom: 0.8rem; }

.step h3 {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.86rem;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 300;
}

/* What I build tags */
.what-i-build { text-align: center; }
.wib-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}
.wib-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.wib-tags span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  padding: 0.38rem 1rem;
  transition: all 0.18s;
  cursor: default;
}
.wib-tags span:hover {
  background: var(--indigo-dim);
  border-color: rgba(99,102,241,0.3);
  color: var(--indigo-light);
}


/* ═══════════════════════════════════════════════════════════
   PACKS / PRICING
═══════════════════════════════════════════════════════════ */
.section-packs { background: var(--bg); }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

.pack {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pack:hover {
  border-color: var(--card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pack.selected {
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), var(--glow-indigo);
}

/* Pro featured */
.pack-pro {
  background: var(--surface);
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), var(--glow-indigo);
}
.pack-pro:hover {
  box-shadow: 0 0 0 1px var(--indigo-light), var(--glow-indigo), var(--shadow-md);
}

.pack-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--indigo), var(--indigo-light));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.26rem 0.9rem;
  border-radius: 99px;
  white-space: nowrap;
}

.pack-top { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

.pack-name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.9rem;
}
.pack-pro .pack-name { color: var(--indigo-light); }

.pack-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}
.pack-price {
  font-family: var(--ff-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.pack-currency {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text3);
}

.pack-tagline {
  font-size: 0.84rem;
  color: var(--text2);
  font-weight: 300;
}

.pack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  margin-bottom: 2rem;
}
.pack-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.45;
}
.pack-list li::before {
  flex-shrink: 0;
  font-size: 0.72rem;
  margin-top: 2px;
  font-weight: 700;
}
.pack-list li.ok { color: var(--text2); }
.pack-list li.ok::before { content: '✓'; color: var(--green); }
.pack-list li.no { color: var(--text3); }
.pack-list li.no::before { content: '✗'; color: var(--text3); }

.pack-btn {
  display: block;
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--text2);
  transition: all 0.2s;
  margin-top: auto;
  cursor: pointer;
}
.pack-btn:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pack-pro .pack-btn {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.pack-pro .pack-btn:hover { background: var(--indigo-light); border-color: var(--indigo-light); }

.packs-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text3);
  font-weight: 300;
}


/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.section-contact { background: var(--bg2); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-pitch { padding-top: 0.5rem; }

.contact-sub {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.75;
  margin: 1.5rem 0 2.5rem;
  font-weight: 300;
}

.contact-reassurance {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.reassure-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text2);
  font-weight: 300;
}
.reassure-icon { font-size: 0.95rem; }

.payment-gate {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: none;
}
.payment-gate h3 {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.payment-gate p {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* Form card */
.cform {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cform-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cform-group label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.05em;
}

/* Inputs */
.cform-group input,
.cform-group select,
.cform-group textarea {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.cform-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.cform-group select option { background: var(--card); color: var(--text); }
.cform-group input::placeholder,
.cform-group textarea::placeholder { color: var(--text3); }
.cform-group input:focus,
.cform-group select:focus,
.cform-group textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.cform-group input.err,
.cform-group select.err,
.cform-group textarea.err {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.12);
}
.cform-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 0.95rem;
  font-size: 0.92rem;
  border-radius: var(--radius);
  margin-top: 0.2rem;
}

.payment-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px dashed var(--line2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.payment-title {
  font-size: 0.8rem;
  color: var(--text2);
}
.payment-btn {
  padding: 0.6rem 1rem;
}

/* Success */
.cform-success {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.success-check {
  width: 54px; height: 54px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.5rem;
}
.cform-success h3 {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.cform-success p {
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 300;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav a {
  font-size: 0.84rem;
  color: var(--text3);
  transition: color 0.18s;
}
.footer-nav a:hover { color: var(--text); }
.footer-right { text-align: right; }
.footer-right p { font-size: 0.78rem; color: var(--text3); }
.footer-tech { margin-top: 0.3rem; font-size: 0.7rem !important; opacity: 0.5; }


/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL (slide-over)
═══════════════════════════════════════════════════════════ */
.admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.admin-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.admin-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 700px;
  background: var(--surface);
  border-left: 1px solid var(--card-border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.admin-panel.open {
  transform: translateX(0);
}

/* Top bar */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
}
.admin-logo {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.admin-caption {
  font-size: 0.76rem;
  color: var(--text3);
  margin-top: 0.15rem;
  font-weight: 300;
}
.admin-close {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.admin-close:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* KPIs */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.kpi {
  padding: 1.1rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.kpi:last-child { border-right: none; }
.kpi strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
  letter-spacing: -0.03em;
}
.kpi span {
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Controls bar */
.admin-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--card);
}
.admin-count {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.btn-del-all {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--red);
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-del-all:hover { background: rgba(248,113,113,0.12); }

/* List */
.admin-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}

/* Demande card */
.demande {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.18s;
  animation: cardSlide 0.3s ease;
}
.demande:hover { border-color: var(--card-hover); }

@keyframes cardSlide {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.demande-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.demande-nom {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.demande-pack {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  background: var(--indigo-dim);
  color: var(--indigo-light);
  border: 1px solid rgba(99,102,241,0.25);
}
.demande-email {
  font-size: 0.76rem;
  color: var(--text3);
  margin-bottom: 0.4rem;
}
.demande-type {
  font-size: 0.8rem;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.demande-desc {
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.55;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.demande-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.demande-date {
  font-size: 0.7rem;
  color: var(--text3);
}
.demande-budget {
  font-size: 0.7rem;
  color: var(--amber);
}

.btn-del {
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text3);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}
.btn-del:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.35); color: var(--red); }

/* Empty state */
.admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text3);
}
.admin-empty-icon { font-size: 2.2rem; opacity: 0.35; margin-bottom: 0.8rem; }
.admin-empty p { font-size: 0.86rem; font-weight: 300; line-height: 1.65; }


/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 12, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.loader-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--indigo);
  animation: pulse 1s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.65; }
  50% { transform: scale(1.15); opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .steps { flex-direction: column; }
  .steps-connector { display: none; }
  .step { max-width: 520px; width: 100%; margin: 0 auto; }
  .packs-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .theme-toggle { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 5rem 0; }
  .hero { padding: 95px 0 60px; min-height: auto; }
  .hero-title { font-size: clamp(2.05rem, 11vw, 3rem); line-height: 1.02; }
  .hero-desc { font-size: 0.95rem; max-width: 100%; }
  .cform-row { grid-template-columns: 1fr; }
  .hero-proof {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 1.4rem;
  }
  .proof-sep { display: none; }
  .proof-item strong { font-size: 1.35rem; }
  .proof-item span { letter-spacing: 0.04em; }
  .section-title { font-size: clamp(1.8rem, 9.2vw, 2.4rem); }
  .section-head { margin-bottom: 2.8rem; }
  .pack-price { font-size: 2.5rem; }
  .payment-mock { flex-direction: column; align-items: stretch; }
  .payment-btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-right { text-align: left; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .cform { padding: 1.75rem; }
  .hero-scroll { display: none; }
  .toast {
    max-width: calc(100vw - 1.25rem);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1.25rem; }
  .hero-badge { font-size: 0.72rem; letter-spacing: 0.03em; }
  .step { padding: 1.4rem 1.2rem; }
  .pack { padding: 1.5rem 1.2rem; }
  .cform { padding: 1.2rem; }
  .payment-gate { padding: 1.2rem; }
  .admin-panel { max-width: 100%; }
  .admin-list { padding: 1rem; }
}
