/* ============================================================
   Cassandris — shared.css
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: -apple-system, 'Inter', Helvetica, sans-serif; background: #fff; color: #111; overflow-x: hidden; }
img { max-width: 100%; display: block; }
.frame { max-width: 1360px; margin: 0 auto; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ── Nav ── */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 80px; border-bottom: 1px solid #e0e0e0; background: #fff; position: relative; z-index: 200; flex-shrink: 0; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo-text { font-size: 20px; font-weight: 500; letter-spacing: -0.6px; color: #111; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #333; text-decoration: none; padding: 8px 14px; border: none; background: none; cursor: pointer; transition: color 0.2s; font-family: inherit; white-space: nowrap; }
.nav-link:hover { color: #3a72e8; }
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-wrap::after { content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 16px; }
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown { position: absolute; top: calc(100% + 14px); left: -8px; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 8px; min-width: 230px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease; z-index: 300; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13px; color: #333; text-decoration: none; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav-dropdown a:hover { background: #f0f4ff; color: #3a72e8; }
.nav-dropdown-icon { width: 30px; height: 30px; border-radius: 7px; background: #eef3fc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-dropdown-icon svg { width: 15px; height: 15px; stroke: #3a72e8; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-chevron { display: inline-block; margin-left: 5px; font-size: 13px; color: #666; transition: transform 0.2s; vertical-align: middle; }
.nav-dropdown-wrap:hover .nav-chevron { transform: rotate(180deg); }
.btn-nav-cta { background: #111; color: #fff; border: none; padding: 12px 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background 0.2s; margin-left: 10px; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.btn-nav-cta:hover { background: #3a72e8; }

/* Hamburger — hidden on desktop, shown at ≤900px via media query */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #111; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ── */
.site-footer { border-top: 1px solid #e0e0e0; background: #fff; flex-shrink: 0; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 40px 48px 36px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-text { font-size: 18px; font-weight: 500; letter-spacing: -0.5px; color: #111; }
.f-tagline { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; }
.offices-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office-region { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; margin-bottom: 4px; }
.office-addr { font-size: 12px; color: #999; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #555; text-decoration: none; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: #3a72e8; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; border-top: 1px solid #e0e0e0; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 13px; color: #999; }
.footer-email a { font-size: 13px; color: #777; text-decoration: none; transition: color 0.2s; }
.footer-email a:hover { color: #111; }

/* ── Content/legal pages ── */
.content-hero { background: #f2f1ee; border-bottom: 1px solid #e0e0e0; padding: 64px 80px 56px; flex-shrink: 0; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #999; margin-bottom: 20px; }
.content-hero h1 { font-size: 52px; font-weight: 500; letter-spacing: -1.8px; color: #111; font-family: Georgia, serif; line-height: 1.1; margin-bottom: 12px; }
.content-meta { font-size: 13px; color: #aaa; margin-top: 8px; }
.content-body { max-width: 720px; margin: 0 auto; padding: 64px 40px 100px; flex: 1; width: 100%; }
.content-body h2 { font-size: 18px; font-weight: 500; color: #111; margin: 48px 0 16px; }
.content-body p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 16px; }
.content-body ul { font-size: 15px; color: #444; line-height: 1.8; padding-left: 24px; margin-bottom: 16px; }
.content-body li { margin-bottom: 6px; }
.content-body a { color: #3a72e8; text-decoration: none; }
.content-body a:hover { text-decoration: underline; }

/* ── Product pages ── */
.product-hero { padding: 80px; border-bottom: 1px solid #e0e0e0; background: #fff; flex-shrink: 0; }
.product-hero .eyebrow { color: #3a72e8; }
.product-hero h1 { font-size: 52px; font-weight: 500; letter-spacing: -1.8px; color: #111; font-family: Georgia, serif; line-height: 1.1; max-width: 760px; margin-bottom: 24px; }
.product-hero p { font-size: 18px; color: #555; line-height: 1.7; max-width: 600px; margin-bottom: 40px; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-solid { background: #111; color: #fff; border: none; padding: 15px 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; font-family: inherit; }
.btn-solid:hover { background: #3a72e8; }
.btn-ghost { background: none; color: #111; border: 1px solid #ccc; padding: 14px 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; font-family: inherit; }
.btn-ghost:hover { border-color: #3a72e8; color: #3a72e8; }
.product-section { padding: 72px 80px; border-top: 1px solid #e0e0e0; }
.product-section.alt { background: #f2f1ee; }
.section-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #3a72e8; margin-bottom: 16px; }
.section-title { font-size: 38px; font-weight: 500; letter-spacing: -1px; color: #111; font-family: Georgia, serif; line-height: 1.15; margin-bottom: 20px; max-width: 640px; }
.section-body { font-size: 16px; color: #555; line-height: 1.75; max-width: 580px; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 32px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { border-color: #3a72e8; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(58,114,232,0.1); }
.feature-icon { width: 44px; height: 44px; background: #eef3fc; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.feature-icon svg { width: 22px; height: 22px; stroke: #3a72e8; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 17px; font-weight: 500; color: #111; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #555; line-height: 1.7; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 28px; }
.stat-num { font-size: 48px; font-weight: 600; letter-spacing: -2px; color: #111; line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 14px; color: #555; line-height: 1.5; }
.cta-band { background: #111; padding: 80px; text-align: center; }
.cta-band h2 { font-size: 42px; font-weight: 500; letter-spacing: -1.5px; color: #fff; font-family: Georgia, serif; margin-bottom: 20px; }
.cta-band p { font-size: 16px; color: #aaa; line-height: 1.6; max-width: 480px; margin: 0 auto 40px; }

/* Scroll fade */
.fi { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fi.vis { opacity: 1; transform: translateY(0); }
.fi-d1 { transition-delay: 0.1s; }
.fi-d2 { transition-delay: 0.2s; }
.fi-d3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — ≤900px (Tablet)
   ============================================================ */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; height: 68px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 28px; }

  /* Content */
  .content-hero { padding: 48px 32px 40px; }
  .content-hero h1 { font-size: 38px; letter-spacing: -1px; }
  .content-body { padding: 48px 28px 72px; }

  /* Product */
  .product-hero { padding: 48px 32px 44px; }
  .product-hero h1 { font-size: 38px; letter-spacing: -1px; }
  .product-hero p { font-size: 16px; }
  .product-section { padding: 52px 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 30px; }
  .cta-band { padding: 56px 32px; }
  .cta-band h2 { font-size: 32px; }
}

/* ============================================================
   RESPONSIVE — ≤600px (Mobile)
   ============================================================ */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .frame { border-left: none; border-right: none; overflow: hidden; }
  .site-nav { padding: 0 16px; height: 60px; }
  .nav-logo-text { font-size: 17px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px; }
  .offices-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }

  /* Content/legal */
  .content-hero { padding: 36px 16px 28px; }
  .content-hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .content-body { padding: 36px 16px 56px; }
  .content-body h2 { margin: 36px 0 12px; font-size: 16px; }
  .content-body p, .content-body ul { font-size: 14px; }

  /* Product pages */
  .product-hero { padding: 36px 16px 32px; }
  .product-hero h1 { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 16px; }
  .product-hero p { font-size: 15px; margin-bottom: 28px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-solid, .btn-ghost { justify-content: center; padding: 15px 20px; width: 100%; }
  .product-section { padding: 36px 16px; }
  .section-title { font-size: 24px; letter-spacing: -0.4px; }
  .section-body { font-size: 14px; margin-bottom: 28px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .feature-card { padding: 24px 20px; }
  .two-col { gap: 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 20px 16px; }
  .stat-num { font-size: 36px; }
  .cta-band { padding: 40px 16px; }
  .cta-band h2 { font-size: 26px; letter-spacing: -0.4px; }
  .cta-band p { font-size: 14px; margin-bottom: 28px; }
  .cta-band .btn-solid { width: auto; margin: 0 auto; }
}
