/* ============================================================
   MARKELLO GLOBAL LLC — Corporate Site
   Brand: white base, navy #0A2540 → blue #3B82F6 gradient, Inter
   ============================================================ */

:root {
  --navy: #0A2540;
  --blue-deep: #2563EB;
  --blue: #3B82F6;
  --ink: #0F172A;
  --gray: #64748B;
  --border: #E2E8F0;
  --ice: #F8FAFC;
  --white: #FFFFFF;
  --grad: linear-gradient(100deg, var(--navy) 0%, var(--blue-deep) 60%, var(--blue) 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 24px rgba(59, 130, 246, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --radius-card: 12px;
  --radius-btn: 8px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
.lede { color: var(--gray); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 14px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10, 37, 64, 0.3); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.12em; color: var(--navy); }
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.925rem; font-weight: 500; color: var(--gray); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

.mobile-menu {
  display: none; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
}
.mobile-menu a { display: block; padding: 12px 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ice); }
.mobile-menu .btn { width: 100%; margin-top: 14px; }
.mobile-menu.open { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(59, 130, 246, 0.13), transparent 65%),
    radial-gradient(480px 340px at 8% 96%, rgba(10, 37, 64, 0.07), transparent 65%);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual — flat analytics card cluster */
.hero-visual { position: relative; }
.metric-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 22px;
}
.metric-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.metric-panel-head strong { font-size: 0.9rem; }
.metric-pill { font-size: 0.72rem; color: var(--gray); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.metric-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.metric-card small { display: block; font-size: 0.72rem; color: var(--gray); margin-bottom: 4px; }
.metric-card b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.metric-card .up { font-size: 0.72rem; color: #10B981; font-weight: 600; margin-left: 6px; }
.spark { margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--ice); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 56px; }
.section-head .lede { margin-top: 14px; }

/* Trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  color: var(--gray); font-size: 0.9rem; font-weight: 500;
}
.trust-inner .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* Cards */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #dbeafe; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--gray); font-size: 0.95rem; }
.card.large { padding: 40px; }
.card.large p { font-size: 1rem; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #EFF6FF; color: var(--blue-deep);
}
.icon-badge svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Stats band */
.stats { background: var(--grad); color: #fff; }
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center;
}
.stat b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 0.925rem; opacity: 0.82; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.18); }

/* CTA band */
.cta-band {
  background: var(--grad); border-radius: 16px; padding: 64px 48px; text-align: center; color: #fff;
  box-shadow: 0 18px 44px rgba(10, 37, 64, 0.22);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { opacity: 0.85; max-width: 34rem; margin: 0 auto 30px; }

/* ---------- About page ---------- */
.page-head { padding: 88px 0 40px; text-align: center; }
.page-head .lede { max-width: 38rem; margin: 16px auto 0; }
.prose { max-width: 46rem; margin: 0 auto; }
.prose p { color: var(--gray); font-size: 1.05rem; line-height: 1.85; }
.prose p + p { margin-top: 22px; }

.founder-card {
  display: flex; gap: 28px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 40px; box-shadow: var(--shadow-sm); max-width: 46rem; margin: 0 auto;
}
.avatar {
  flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em;
}
.founder-card h3 { font-size: 1.25rem; }
.founder-card .role { color: var(--blue-deep); font-size: 0.9rem; font-weight: 600; margin: 4px 0 12px; }
.founder-card p { color: var(--gray); font-size: 0.975rem; }

.details-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); max-width: 46rem; margin: 0 auto; overflow: hidden;
}
.details-card dl { display: grid; grid-template-columns: 240px 1fr; }
.details-card dt, .details-card dd { padding: 18px 28px; border-bottom: 1px solid var(--ice); font-size: 0.95rem; }
.details-card dt { font-weight: 600; background: var(--ice); color: var(--ink); }
.details-card dd { color: var(--gray); }
.details-card dt:last-of-type, .details-card dd:last-of-type { border-bottom: none; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.form-card, .info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { display: none; color: #DC2626; font-size: 0.8rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #DC2626; }
.field.invalid .err { display: block; }
.form-success {
  display: none; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46;
  border-radius: var(--radius-btn); padding: 16px 18px; font-size: 0.925rem; font-weight: 500; margin-bottom: 20px;
}
.form-success.show { display: block; }

.info-card h3 { font-size: 1.15rem; margin-bottom: 22px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ice); }
.info-row:first-of-type { border-top: none; }
.info-row .icon-badge { width: 40px; height: 40px; flex: 0 0 40px; }
.info-row .icon-badge svg { width: 18px; height: 18px; }
.info-row b { display: block; font-size: 0.875rem; margin-bottom: 2px; }
.info-row p, .info-row a { color: var(--gray); font-size: 0.9rem; line-height: 1.55; }
.info-row a:hover { color: var(--blue-deep); }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 10px; }
.legal .updated { color: var(--gray); font-size: 0.9rem; margin-bottom: 44px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--gray); font-size: 0.975rem; line-height: 1.8; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--blue-deep); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #C7D2E1; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 0;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
}
.footer .logo { color: #fff; }
.footer .logo span { color: var(--blue); }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; line-height: 1.7; opacity: 0.8; }
.footer h4 { color: #fff; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li + li { margin-top: 12px; }
.footer ul a { font-size: 0.9rem; opacity: 0.8; transition: opacity 0.15s; }
.footer ul a:hover { opacity: 1; color: #fff; }
.footer address { font-style: normal; font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }
.footer address a { color: #C7D2E1; }
.footer address a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 56px;
  padding: 24px; text-align: center; font-size: 0.85rem; opacity: 0.65;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 72px 0 80px; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 72px 0; }
  .cards-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 26px; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 26px; }
  .cta-band { padding: 48px 24px; }
  .details-card dl { grid-template-columns: 1fr; }
  .details-card dt { border-bottom: none; padding-bottom: 4px; }
  .details-card dd { padding-top: 4px; }
  .founder-card { flex-direction: column; }
}

@media (max-width: 520px) {
  .cards-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
