/* =====================================================================
   YT FINANCE — Shared design system
   ===================================================================== */
:root {
  --blue: #1577EE; --blue-500: #2E8DFF; --blue-600: #0C65D6;
  --blue-700: #0952B8; --blue-800: #083F8F; --blue-900: #0B1C39;
  --blue-50: #EFF6FF; --blue-100: #D6E8FF; --blue-200: #A9CEFF; --blue-300: #7CB3FF;

  --accent-teal: #06B6D4; --accent-mint: #10B981; --accent-violet: #7C3AED;
  --accent-pink: #EC4899; --accent-amber: #F59E0B; --accent-coral: #F43F5E;

  --ink: #0B1C39; --ink-soft: #1E293B;
  --text: #334155; --muted: #64748B;
  --line: #E5EBF3; --line-soft: #F1F5F9;
  --bg: #FFFFFF; --bg-soft: #F8FAFC; --bg-cream: #FBFCFE;

  --shadow-xs: 0 1px 2px rgba(11,28,57,.05);
  --shadow-sm: 0 2px 8px rgba(11,28,57,.06);
  --shadow-md: 0 8px 24px rgba(11,28,57,.08);
  --shadow-lg: 0 20px 48px rgba(11,28,57,.12);
  --shadow-xl: 0 32px 80px rgba(11,28,57,.16);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --r-full: 999px;

  --t-fast: .18s cubic-bezier(.4,0,.2,1);
  --t-base: .32s cubic-bezier(.4,0,.2,1);
  --t-spring: .5s cubic-bezier(.34,1.56,.64,1);

  --font-sans: 'Inter','Noto Sans SC',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Segoe UI',Roboto,sans-serif;
  --font-display: 'Archivo Black','Inter Black','Inter','Noto Sans SC',-apple-system,sans-serif;
  --font-mono: 'JetBrains Mono','SF Mono',Menlo,monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--text);
  background: var(--bg); line-height: 1.65; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
::selection { background: var(--blue-100); color: var(--blue-900); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; height: 72px; gap: 56px;
}
/* Logo — full SVG logo, displayed at full size */
.brand { display: flex; align-items: center; gap: 0; text-decoration: none; }
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  background-image: url('yt-logo.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 18px rgba(21,119,238,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(21,119,238,.45);
}
.brand-mark.lg { width: 56px; height: 56px; border-radius: 13px; }
/* Hide text labels next to logo — logo stands alone */
.brand-name, .brand-mark-text, .brand-text { display: none !important; }

.nav-links { display: flex; gap: 36px; justify-content: flex-end; padding-right: 36px; font-size: 15px; font-weight: 500; }
.nav-links a {
  color: var(--ink-soft); padding: 6px 0; position: relative;
  transition: color .2s ease;
}
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0; right:0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease; border-radius: 2px;
}
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--bg-soft); border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700;
}
.lang-toggle button {
  padding: 5px 11px; border-radius: var(--r-full);
  color: var(--muted); letter-spacing: .04em;
  transition: all .2s ease; line-height: 1;
}
.lang-toggle button.active {
  background: white; color: var(--ink);
  box-shadow: 0 1px 2px rgba(11,28,57,.08);
}

/* Contact Us — sits inside .nav-cta, next to language toggle */
.nav-contact {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 10px;
  transition: all .2s ease;
  white-space: nowrap;
}
.nav-contact:hover { color: var(--blue); background: var(--blue-50); }
@media (max-width: 860px) {
  .nav-contact { display: none; }
}


.download-wrap { position: relative; }
.nav-cta-primary {
  padding: 11px 22px 11px 18px;
  font-size: 14.5px; font-weight: 700;
  border-radius: var(--r-full);
  position: relative; color: white;
  background: linear-gradient(135deg, #2E8DFF 0%, #1577EE 45%, #0952B8 100%);
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow:
    0 6px 18px rgba(21,119,238,.38),
    0 2px 4px rgba(21,119,238,.25),
    inset 0 1px 0 rgba(255,255,255,.26);
  cursor: pointer; transition: transform .22s, box-shadow .22s;
  border: 0; overflow: hidden;
}
.nav-cta-primary::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, transparent 28%, rgba(255,255,255,.38) 50%, transparent 72%);
  transform: translateX(-120%); transition: transform .75s;
}
.nav-cta-primary:hover::before { transform: translateX(120%); }
.nav-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(21,119,238,.5), 0 4px 10px rgba(21,119,238,.3), inset 0 1px 0 rgba(255,255,255,.3);
}
.nav-cta-primary > svg:first-of-type { width: 16px; height: 16px; stroke-width: 2.4; }
.nav-cta-primary .chev {
  width: 14px; height: 14px; opacity: .85;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-cta-primary.open .chev { transform: rotate(180deg); opacity: 1; }

.download-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 320px; background: white;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 10px;
  box-shadow: 0 28px 56px rgba(11,28,57,.16), 0 6px 16px rgba(11,28,57,.08);
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s, transform .22s cubic-bezier(.16,1,.3,1), visibility .22s;
  z-index: 110;
}
.download-wrap.open .download-dropdown {
  opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0);
}
.download-dropdown::before {
  content: ''; position: absolute; top: -6px; right: 38px;
  width: 12px; height: 12px; background: white;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-dd-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  transition: background .2s; text-decoration: none;
}
.nav-dd-link:hover { background: var(--bg-soft); }
.nav-dd-ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.nav-dd-ic svg { width: 22px; height: 22px; }
.nav-dd-text { flex: 1; }
.nav-dd-t1 { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.nav-dd-t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink); place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-full);
  font-weight: 600; font-size: 14.5px;
  transition: all var(--t-base);
  white-space: nowrap; position: relative; overflow: hidden;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg,var(--blue-500),var(--blue) 50%,var(--blue-700));
  box-shadow: 0 8px 20px rgba(21,119,238,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(21,119,238,.45); }
.btn-outline { color: var(--ink); border: 1.5px solid var(--line); background: white; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }

/* ============ Section framing ============ */
.sec { padding: 100px 0; position: relative; }
.sec.compact { padding: 70px 0; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: var(--r-full);
  background: var(--blue-50); color: var(--blue-700);
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 18px;
  border: 1px solid var(--blue-100);
}
.sec-eyebrow.teal { background: rgba(6,182,212,.08); color: #0E7490; border-color: rgba(6,182,212,.2); }
.sec-eyebrow.violet { background: rgba(124,58,237,.08); color: #5B21B6; border-color: rgba(124,58,237,.2); }
.sec-eyebrow.amber { background: rgba(245,158,11,.08); color: #92400E; border-color: rgba(245,158,11,.2); }
.sec-eyebrow.mint { background: rgba(16,185,129,.08); color: #047857; border-color: rgba(16,185,129,.2); }
.sec-eyebrow.pink { background: rgba(236,72,153,.08); color: #BE185D; border-color: rgba(236,72,153,.2); }
.sec-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sec-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.sec-head.left { text-align: left; margin: 0 0 50px; }
.sec-title {
  font-size: clamp(30px,3.8vw,48px); font-weight: 800;
  color: var(--ink); letter-spacing: -.028em;
  line-height: 1.14; margin: 0 0 16px;
}
.sec-sub {
  font-size: 17.5px; color: var(--muted);
  max-width: 620px; margin: 0 auto; line-height: 1.65;
}
.sec-head.left .sec-sub { margin: 0; }

/* ============ Pillars, Cards ============ */
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pillar-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  position: relative; overflow: hidden;
}
.pillar-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--accent, var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 12%, white);
  color: var(--accent, var(--blue));
  display: grid; place-items: center; margin-bottom: 20px;
  transition: all var(--t-spring);
}
.pillar-ic svg { width: 28px; height: 28px; }
.pillar-card:hover .pillar-ic {
  background: var(--accent, var(--blue)); color: white;
  transform: scale(1.08) rotate(-4deg);
}
.pillar-card h3 {
  font-size: 20px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; margin: 0 0 10px;
}
.pillar-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ============ Footer ============ */
footer.site-footer {
  background: var(--blue-900); color: rgba(255,255,255,.68);
  padding: 72px 0 32px;
}
footer.site-footer .brand-name { color: white; }
footer.site-footer .f-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
footer.site-footer p.tagline {
  color: rgba(255,255,255,.55); font-size: 14px; margin-top: 14px; max-width: 320px; line-height: 1.7;
}
footer.site-footer h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: white; margin: 0 0 16px; font-weight: 700;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: 12px; font-size: 14px; }
footer.site-footer ul li a { transition: color var(--t-fast); }
footer.site-footer ul li a:hover { color: white; }
footer.site-footer .f-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px;
}

/* ============ Page Hero (for subpages) ============ */
.page-hero {
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.page-hero .blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,20px) scale(.95); }
}
.page-hero-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.08;
  margin: 16px 0 20px;
  animation: fadeUp 1s cubic-bezier(.16,1,.3,1) .1s both;
}
.page-hero h1 .accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-1, var(--blue-500)), var(--accent-2, var(--accent-violet)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p.lead {
  font-size: 19px; color: var(--muted);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.6;
  animation: fadeUp 1s cubic-bezier(.16,1,.3,1) .25s both;
}
.page-hero .ph-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--r-full);
  background: white; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-xs);
  animation: fadeUp .8s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  animation: fadeUp .7s both;
}
.breadcrumbs a { color: var(--muted); transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ============ Final CTA ============ */
.cta-final {
  padding: 120px 0;
  background:
    radial-gradient(600px 400px at 80% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(6,182,212,.14), transparent 60%),
    linear-gradient(180deg, #FBFDFF 0%, #F1F7FF 100%);
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(32px,4vw,52px);
  font-weight: 900; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.12;
  margin: 0 0 18px; max-width: 780px;
  margin-left: auto; margin-right: auto;
}
.cta-final h2 .accent {
  background: linear-gradient(135deg,var(--blue-500),var(--blue),var(--accent-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-final p {
  font-size: 17px; color: var(--muted);
  max-width: 560px; margin: 0 auto 32px;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-inner { gap: 24px; }
  .nav-links { gap: 24px; font-size: 14.5px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .lang-toggle { display: none; }
  .nav-toggle { display: grid; }
  .nav-inner { height: 66px; gap: 12px; }
  .nav-cta-primary { padding: 10px 14px; font-size: 13px; gap: 6px; }
  .nav-cta-primary > svg:first-of-type { width: 14px; height: 14px; }
  .page-hero { padding: 90px 0 60px; }
  .page-hero h1 { font-size: clamp(30px, 7vw, 44px); }
  .page-hero p.lead { font-size: 16px; }
  .sec { padding: 70px 0; }
  .sec-title { font-size: clamp(26px, 6vw, 36px); }
  .sec-sub { font-size: 15px; }
  .sec-head { margin-bottom: 40px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 26px 22px; }
  .pillar-card h3 { font-size: 18px; }
  footer.site-footer .f-grid { grid-template-columns: 1fr; gap: 32px; }
  footer.site-footer { padding: 56px 0 28px; }
  .cta-final { padding: 70px 0; }
  .cta-final h2 { font-size: clamp(28px, 7vw, 42px); }
  .cta-btns { flex-direction: column; width: 100%; align-items: stretch; }
  .cta-btns .btn { width: 100%; }
  .container, .container-wide { padding: 0 18px; }
}
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 14px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 10px; }
  .breadcrumbs { font-size: 12px; }
  .ph-pill { font-size: 11.5px; padding: 6px 12px; }
  .page-hero { padding: 70px 0 40px; }
  .page-hero h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
  .sec { padding: 56px 0; }
  .pillar-card { padding: 22px 18px; }
  .pillar-card .pillar-ic { width: 46px; height: 46px; }
  .pillar-card .pillar-ic svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
