/* =========================================================
   TallyCapital @ Datacrown — v1 local mockup
   Palette: black + Tally orange + soft violet accent
========================================================= */

:root {
  --ink: #0e0e10;
  --ink-2: #1c1c22;
  --muted: #5b5b66;
  --line: #e8e6e1;
  --paper: #ffffff;
  --sand: #fbf8f3;         /* section alt background */
  --orange: #f26522;       /* Tally orange (from logo) */
  --orange-2: #ff8547;
  --violet: #7b4bd6;       /* accent from illustrations */
  --violet-soft: #efe7ff;
  --radius: 14px;
  --shadow-1: 0 4px 12px rgba(14, 14, 16, 0.06);
  --shadow-2: 0 12px 32px rgba(14, 14, 16, 0.09);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 24px;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Section anchor offset — matches sticky header height so headings aren't cut off. */
section[id] {
  scroll-margin-top: 24px;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.2rem; }

p  { margin: 0 0 12px; color: var(--ink-2); }
.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 12px;
}
.accent { color: var(--orange); display: block; margin-top: 4px; font-size: 0.7em; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--orange); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; padding: 14px 22px; margin-top: 6px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.1rem;
}
.brand-datacrown { color: var(--ink); }
.brand-x { color: var(--muted); font-weight: 500; font-size: 1.1rem; }
.brand-logo { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { color: var(--orange); }
.nav-whatsapp {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}
.nav-whatsapp svg { flex-shrink: 0; }
.nav-cta {
  padding: 8px 16px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--orange); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(1200px 500px at -10% -10%, var(--violet-soft) 0%, transparent 60%),
    radial-gradient(900px 400px at 110% 0%, #fff3ea 0%, transparent 60%),
    var(--paper);
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 24px;
}
.hero-usps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.hero-usps li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.hero-usps li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.18);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img {
  border-radius: var(--radius);
}
.hero-logo-art {
  display: grid;
  place-items: center;
  padding: 40px 20px;
  min-height: 320px;
}
.hero-logo-art img {
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 8px 24px rgba(242, 101, 34, 0.15));
}

/* ===== USP BAND ===== */
.usp-band {
  padding: 30px 0 60px;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.usp-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.usp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.usp-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 14px;
}
.usp-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.usp-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ===== SPLIT SECTIONS ===== */
.split-section {
  padding: 80px 0;
}
.split-section.alt { background: var(--sand); }
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.split-section.reverse .split-inner {
  /* reverse only visual columns; but simpler: use order */
}
.split-section.reverse .split-art { order: 2; }
.split-section.reverse .split-copy { order: 1; }
.split-copy p { color: var(--muted); font-size: 1rem; max-width: 52ch; }
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px;
  color: white; background: var(--violet);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
}

/* ===== PROCESS ===== */
.process-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.process-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.process-art { text-align: center; }
.process-art img { max-width: 640px; margin: 0 auto; }

/* ===== TWO UP CARDS ===== */
.two-up { padding: 60px 0; }
.two-up-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.three-up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.feature-card img { max-height: 240px; margin: 0 auto 16px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 6px 8px; }
.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--orange-2);
  letter-spacing: -0.01em;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #cfcfd6;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ===== FUNDING SOLUTIONS ===== */
.solutions-section {
  padding: 80px 0;
  background: var(--sand);
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.solution-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.solution-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 14px;
}
.solution-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.solution-amount {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.solution-amount strong { color: var(--orange); font-size: 1.05rem; }
.solution-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ===== VIDEO GRID ===== */
.video-grid-head {
  max-width: 620px;
  margin: 60px auto 24px;
  text-align: center;
}
.video-grid-head h3 { font-size: 1.35rem; margin-bottom: 6px; }
.video-grid-head p { color: var(--muted); margin: 0; }
.video-carousel {
  position: relative;
}
.video-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--orange) var(--line);
  scrollbar-width: thin;
}
.video-scroller::-webkit-scrollbar {
  height: 8px;
}
.video-scroller::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 4px;
}
.video-scroller::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}
.video-tile {
  flex: 0 0 340px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.video-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.video-tile iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.video-caption {
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0;
}

/* Prev/next arrows */
.video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.video-nav:hover:not(:disabled) {
  background: var(--orange);
  color: white;
  transform: translateY(-50%) scale(1.05);
}
.video-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.video-nav-prev { left: -10px; }
.video-nav-next { right: -10px; }
@media (max-width: 700px) {
  .video-nav { display: none; }
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.faq-item[open] {
  border-color: var(--orange);
  box-shadow: var(--shadow-1);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 0 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ===== PHONE ROW + CONSENT ===== */
.phone-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.country-code {
  width: 100px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.country-code:focus {
  outline: none;
  border-color: var(--orange);
  background: white;
}
.phone-row input[type=tel] {
  margin-top: 0 !important;
  flex: 1;
}
.consent-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem !important;
  color: var(--muted) !important;
  line-height: 1.45;
  margin: 4px 0 8px !important;
}
.consent-row input[type=checkbox] {
  width: auto !important;
  margin-top: 3px;
  accent-color: var(--orange);
}
.consent-row a { color: var(--orange); text-decoration: underline; }

/* ===== FOOTER EXTRAS ===== */
.footer-h4-second { margin-top: 22px; }

.footer-address {
  color: #b1b1bb;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
  font-style: normal;
}

.footer-contact-list,
.footer-hours-list,
.footer-team {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  color: #b1b1bb;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-contact-list li,
.footer-hours-list li {
  padding: 3px 0;
}
.footer-contact-list a {
  color: #b1b1bb;
  display: inline;
  padding: 0;
}
.footer-contact-list a:hover { color: var(--orange); }
.footer-team li {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}
.footer-team li strong {
  color: #d9d9df;
  font-weight: 600;
  font-size: 0.93rem;
}
.footer-team li span {
  color: #8b8b95;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.footer-social {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #b1b1bb;
  border: 1px solid #2a2a32;
  border-radius: 50%;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.footer-social .social-icon:hover {
  color: white;
  background: #1877F2;
  border-color: #1877F2;
  transform: translateY(-2px);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab svg { flex-shrink: 0; }
@media (max-width: 560px) {
  .whatsapp-fab span { display: none; }
  .whatsapp-fab {
    padding: 14px;
    border-radius: 50%;
  }
}

/* ===== VIDEO ===== */
.video-section {
  padding: 80px 0;
  background: var(--sand);
}
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: #000;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== CONTACT ===== */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--violet-soft) 200%);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-copy p { color: var(--muted); max-width: 44ch; }
.contact-meta {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}
.contact-meta li { padding: 4px 0; }
.lead-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-2);
}
.lead-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.lead-form input,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: white;
}
.form-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--violet);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: #d9d9df;
  padding: 60px 0 0;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  height: 64px; width: auto;
  background: white;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.footer-brand p { color: #b1b1bb; font-size: 0.95rem; max-width: 40ch; }
.footer-links h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: #b1b1bb;
  padding: 5px 0;
  font-size: 0.94rem;
}
.footer-links a:hover { color: var(--orange); }
.footer-legal {
  border-top: 1px solid #2a2a32;
  padding: 20px 0;
  font-size: 0.83rem;
  color: #8b8b95;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 14px;
  }
  .nav-toggle { display: flex; }
  .hero { padding: 50px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: -1; }
  .hero-usps { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .split-inner { grid-template-columns: 1fr; gap: 30px; }
  .split-section.reverse .split-art { order: -1; }
  .split-section.reverse .split-copy { order: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .two-up-grid { grid-template-columns: 1fr; }
  .three-up-grid { grid-template-columns: 1fr; }
  .video-tile { flex-basis: 300px; }
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .split-section, .video-section, .process-section, .contact-section, .faq-section, .solutions-section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .usp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .video-tile { flex-basis: 82vw; }
  .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .brand-logo { height: 48px; }
}
