/* ==========================================================================
   TradeGiant — Design System v2
   Near-black navy base, gold/amber accent, dashboard-style product UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Base */
  --bg: #0A0D12;
  --bg-raised: #10141B;
  --bg-raised-2: #161B24;
  --bg-sidebar: #0D1016;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  /* Text */
  --text: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-faint: #6B7280;

  /* Accent — gold */
  --gold-600: #D98D12;
  --gold-500: #F5A623;
  --gold-400: #FFC94D;
  --gold-50:  #FFF4DF;

  /* Status */
  --green: #34D399;
  --blue: #3B82F6;
  --blue-soft: #1D4ED8;

  /* Radii / shadow / motion */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.5);
  --transition: all .22s cubic-bezier(.4,0,.2,1);
  --nav-h: 72px;
  --container: 1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold-500); color: #1A1200;
  padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } .section--tight { padding: 40px 0; } }

/* Ambient glow background (used on hero / deep sections) */
.bg-glow { position: relative; overflow: hidden; }
.bg-glow::before {
  content: ''; position: absolute; inset: -10% -10% auto -10%; height: 70%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 75% 0%, rgba(120,160,220,.14), transparent 65%);
}
.bg-glow > * { position: relative; z-index: 1; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--text-muted); }
.gold { color: var(--gold-500); }
.lede { font-size: 1.1rem; line-height: 1.65; max-width: 560px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 16px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; transition: var(--transition); cursor: pointer; white-space: nowrap;
  min-height: 46px;
}
.btn-primary { background: var(--gold-500); color: #1A1200; }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(245,166,35,.3); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent; backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.navbar.is-scrolled {
  background: rgba(10,13,18,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; gap: 44px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.navbar-logo .mark { width: 34px; height: 34px; flex-shrink: 0; }
.navbar-logo .giant { color: var(--gold-500); }
.logo-lockup { height: 30px; width: auto; display: block; }
.footer .logo-lockup { height: 26px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--text-muted); transition: var(--transition); display: flex; align-items: center; gap: 4px; }
.nav-links .mobile-cta { display: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a svg { width: 13px; height: 13px; }

/* ── Nav dropdown (e.g. Product > Mobile App) ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  font-size: .92rem; font-weight: 500; color: var(--text-muted); transition: var(--transition);
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown-trigger svg { width: 13px; height: 13px; transition: var(--transition); }
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--text); }
.nav-dropdown.is-open .nav-dropdown-trigger { color: var(--text); }
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 14px; min-width: 190px;
  background: var(--bg-raised-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: var(--transition);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; padding: 10px 12px; border-radius: 7px; font-size: .9rem;
  color: var(--text-muted); font-weight: 500; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-dropdown-menu a.active { color: var(--gold-400); }
.navbar-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.navbar-actions .signin { font-size: .92rem; font-weight: 600; color: var(--text-muted); }
.navbar-actions .signin:hover { color: var(--text); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); position: relative; }
.nav-toggle svg { width: 24px; height: 24px; position: absolute; top: 10px; left: 10px; transition: opacity .18s ease, transform .18s ease; }
.nav-toggle .icon-close { opacity: 0; transform: rotate(-90deg) scale(.7); }
.nav-toggle[aria-expanded="true"] .icon-menu { opacity: 0; transform: rotate(90deg) scale(.7); }
.nav-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: rotate(0) scale(1); }
@media (max-width: 960px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg-raised);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .navbar-actions .signin { display: none; }
  .navbar-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .nav-dropdown-trigger { width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; margin: 0; border: none; box-shadow: none; background: transparent;
    padding: 0 0 0 16px; border-radius: 0;
  }
  .nav-links .mobile-cta { display: flex; margin-top: 20px; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: .98rem; }
}

/* ── Hero ── */
.hero-bg-wrap { background: url('../assets/images/hero-bg.png') center top / cover no-repeat, var(--bg); }
.hero { padding: 0 0 0; }
.hero-grid { display: grid; grid-template-columns: .82fr 1.42fr; gap: 20px; align-items: center; padding-bottom: 32px; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* True full-bleed: text aligns with the normal container gutter, image bleeds to the real viewport edge */
.hero-text-col { padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); padding-right: 24px; }
.hero-media-col { padding-right: 0; min-width: 0; }
.hero-mockup-mobile { display: none; }
@media (max-width: 1024px) {
  .hero-text-col { padding-left: 24px; padding-top: 48px; }
  .hero-media-col { display: none; }
  .hero-mockup-mobile { display: block; position: relative; margin: 36px 0; }
  .hero-mockup-mobile::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 85%; aspect-ratio: 1; border-radius: 50%; z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(245,166,35,.4) 0%, rgba(245,166,35,.14) 45%, transparent 72%);
    filter: blur(45px);
  }
  .hero-mockup-mobile .hero-mockup-img { position: relative; z-index: 1; }
}
.hero h1 { font-size: clamp(2.7rem, 4.8vw, 4.1rem); letter-spacing: -.03em; }
.hero h1 .nowrap-line { white-space: nowrap; display: inline-block; }
@media (max-width: 1024px) { .hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); } .hero h1 .nowrap-line { white-space: normal; } }

.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: nowrap; }
@media (max-width: 480px) { .hero-ctas { flex-wrap: wrap; } }
.hero-perks { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-perk { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.hero-perk svg { width: 20px; height: 20px; color: var(--text); flex-shrink: 0; }

/* ── Hero dashboard screenshot (real asset) ── */
.hero-mockup-img { width: 100%; max-width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }

/* Real product-screenshot assets used inside detail rows */
.detail-mockup-img { width: 100%; height: auto; filter: drop-shadow(0 20px 48px rgba(0,0,0,.45)); }

/* Phone mockup, sized narrower since it's a tall portrait device */
.phone-mockup-img { width: 52%; max-width: 290px; height: auto; filter: drop-shadow(0 24px 56px rgba(0,0,0,.5)); margin: 0 auto; display: block; position: relative; z-index: 1; }
@media (max-width: 760px) { .phone-mockup-img { width: 46%; } }

.phone-glow { position: relative; display: flex; align-items: center; justify-content: center; }
.phone-glow::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 85%; aspect-ratio: 1; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(245,166,35,.4) 0%, rgba(245,166,35,.16) 45%, transparent 72%);
  filter: blur(50px);
}
.phone-glow::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%; z-index: 0; pointer-events: none;
  box-shadow:
    0 0 0 1.5px rgba(245,166,35,.35),
    0 0 0 64px rgba(245,166,35,.16),
    0 0 0 128px rgba(245,166,35,.08),
    0 0 0 192px rgba(245,166,35,.03);
}
.phone-glow .grid-texture {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 190%; height: 190%; z-index: 0; pointer-events: none; opacity: .9;
  background-image:
    linear-gradient(rgba(245,166,35,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.16) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle, black 0%, black 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, black 0%, black 40%, transparent 78%);
}

/* Dashboard kept whole, annotated with small callout boxes pointing at specific parts */
.dash-annotated { position: relative; margin-top: 56px; padding: 0 180px; }
.dash-glow-wrap { position: relative; }
.dash-glow-wrap::before {
  content: ''; position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
  width: 85%; max-width: 760px; aspect-ratio: 16 / 7; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse, rgba(245,166,35,.38) 0%, rgba(245,166,35,.14) 45%, transparent 72%);
  filter: blur(60px);
}
.dash-glow-wrap .grid-texture {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120%; height: 220%; z-index: 0; pointer-events: none; opacity: .9;
  background-image:
    linear-gradient(rgba(245,166,35,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.16) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse, black 0%, black 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse, black 0%, black 35%, transparent 72%);
}
.dash-hero-img { width: 100%; height: auto; display: block; position: relative; z-index: 1; filter: drop-shadow(0 30px 70px rgba(0,0,0,.5)); }

.dash-callout {
  position: absolute; width: 164px; display: flex; align-items: flex-start; gap: 8px; z-index: 2;
}
.dash-callout--left { left: 0; }
.dash-callout--right { right: 0; flex-direction: row-reverse; text-align: right; }
.dash-callout-text h4 { font-size: .82rem; }
.dash-callout-text p { font-size: .76rem; margin-top: 3px; line-height: 1.45; }
.dash-callout-arrow { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 1100px) {
  .dash-annotated { padding: 0; }
  .dash-callout { display: none; }
}

/* ── Dashboard mockup (device-frame screenshot card) ── */
.device-frame {
  background: var(--bg-raised-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash { display: grid; grid-template-columns: 170px 1fr 220px; min-height: 420px; }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; min-height: 0; } .dash-sidebar, .dash-right { display: none; } }
.dash-sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.dash-logo-row { display: flex; align-items: center; gap: 8px; padding: 0 6px 16px; }
.dash-logo-row .mark { width: 24px; height: 24px; }
.dash-logo-row span { font-weight: 800; font-size: .92rem; }
.dash-logo-row span .giant { color: var(--gold-500); }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: .82rem; color: var(--text-faint); }
.dash-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.dash-nav-item.active { background: rgba(245,166,35,.12); color: var(--gold-400); }
.dash-main { padding: 22px 24px; border-right: 1px solid var(--border); }
.dash-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dash-search { flex: 1; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: .78rem; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.dash-search svg { width: 14px; height: 14px; }
.dash-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-500); color: #1A1200; font-weight: 800; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.dash-bell { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-sidebar); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; }
.dash-bell svg { width: 14px; height: 14px; color: var(--text-faint); }
.dash-bell::after { content: ''; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #F87171; }
.dash-greeting h4 { font-size: 1rem; }
.dash-greeting p { font-size: .78rem; margin-top: 2px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 18px 0; }
.dash-stat { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.dash-stat .label { font-size: .68rem; color: var(--text-faint); }
.dash-stat .value { font-size: 1.05rem; font-weight: 800; margin-top: 4px; }
.dash-stat .delta { font-size: .68rem; color: var(--green); margin-top: 3px; }
.dash-table { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.dash-table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dash-table-head h4 { font-size: .85rem; }
.dash-table-head span { font-size: .7rem; color: var(--gold-500); }
.dash-row { display: grid; grid-template-columns: 50px 1fr 90px; gap: 8px; align-items: center; padding: 7px 0; font-size: .72rem; border-top: 1px solid var(--border); }
.dash-row:first-child { border-top: none; }
.dash-row .job-id { color: var(--text-faint); }
.dash-pill { padding: 2px 8px; border-radius: 999px; font-size: .64rem; font-weight: 700; display: inline-block; }
.dash-pill.blue { background: rgba(59,130,246,.18); color: #93C5FD; }
.dash-pill.gold { background: rgba(245,166,35,.18); color: var(--gold-400); }
.dash-pill.green { background: rgba(52,211,153,.18); color: var(--green); }
.dash-right { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.dash-map { height: 90px; border-radius: 8px; background: linear-gradient(135deg,#1a2230,#141a24); position: relative; overflow: hidden; border: 1px solid var(--border); }
.dash-map::before { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 16px 16px; }
.dash-map .pin { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 3px rgba(245,166,35,.25); }
.dash-side-head { display: flex; justify-content: space-between; font-size: .72rem; }
.dash-side-head span:last-child { color: var(--gold-500); }
.dash-schedule-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: .68rem; }
.dash-schedule-item .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.dash-schedule-item .t { color: var(--text-faint); width: 44px; flex-shrink: 0; }
.dash-schedule-item .d { color: var(--text); font-weight: 600; }
.dash-crew-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .68rem; }
.dash-crew-item .avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-sidebar); border: 1px solid var(--border); }
.dash-crew-item .status-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── Tab bar (in-page feature nav) ── */
.tab-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tab-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow-x: auto; }
.tab-list { display: flex; gap: 32px; }
.tab-item {
  padding: 18px 2px; font-size: .9rem; font-weight: 600; color: var(--text-faint);
  white-space: nowrap; border-bottom: 2px solid transparent; transition: var(--transition); cursor: pointer;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--gold-400); border-bottom-color: var(--gold-500); }
.tab-bar .btn { flex-shrink: 0; }

/* ── Feature cards (overview grid) ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.overview-grid { display: grid; grid-template-columns: .85fr 1.6fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; gap: 32px; } }

.feature-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; transition: var(--transition); display: flex; flex-direction: column; gap: 10px;
}
.feature-card:hover { border-color: var(--border-strong); background: var(--bg-raised-2); }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; }
.feature-card .icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(245,166,35,.12); color: var(--gold-500); display: flex; align-items: center; justify-content: center; }
.feature-card .icon svg { width: 18px; height: 18px; }
.feature-card .arrow { width: 16px; height: 16px; color: var(--text-faint); transition: var(--transition); }
.feature-card:hover .arrow { color: var(--gold-500); transform: translateX(2px); }
.feature-card h4 { font-size: .95rem; }
.feature-card p { font-size: .82rem; }

/* ── Alternating detail rows ── */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.detail-row + .detail-row { margin-top: 96px; }
.detail-row.reverse .detail-media { order: 2; }
.detail-row.reverse .detail-copy { order: 1; }
@media (max-width: 900px) {
  .detail-row, .detail-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .detail-row.reverse .detail-media, .detail-row.reverse .detail-copy { order: initial; }
  .detail-row + .detail-row { margin-top: 56px; }
}
.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .94rem; color: var(--text-muted); }
.check-list .tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(245,166,35,.15); color: var(--gold-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check-list .tick svg { width: 12px; height: 12px; }

/* ── Mini app-window (for detail sections: estimate builder, invoice, etc.) ── */
.mini-window { background: var(--bg-raised-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mini-window-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.mini-window-bar .title { font-size: .85rem; font-weight: 700; }
.mini-window-bar .actions { display: flex; gap: 8px; }
.mini-window-bar .actions .btn { padding: 7px 14px; font-size: .74rem; min-height: 0; }
.mini-window-body { padding: 22px; }
.mw-field { margin-bottom: 14px; }
.mw-field label { display: block; font-size: .68rem; color: var(--text-faint); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.mw-field .val { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: .82rem; }
.mw-table-head { display: grid; grid-template-columns: 1fr 70px 70px 70px; gap: 8px; font-size: .65rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .03em; padding: 0 2px 8px; border-bottom: 1px solid var(--border); }
.mw-table-row { display: grid; grid-template-columns: 1fr 70px 70px 70px; gap: 8px; font-size: .78rem; padding: 10px 2px; border-bottom: 1px solid var(--border); align-items: center; }
.mw-table-row:last-child { border-bottom: none; }

/* ── Testimonials / logos ── */
.testimonial-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.testimonial-card .quote-mark { color: var(--gold-500); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.testimonial-card p.quote { color: var(--text); font-size: .98rem; margin: 12px 0 22px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar-slot { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-raised-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.testimonial-person .name { font-weight: 700; font-size: .9rem; }
.testimonial-person .role { font-size: .8rem; color: var(--text-faint); }
.placeholder-tag { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); background: var(--bg-raised-2); padding: 3px 7px; border-radius: 4px; margin-left: 6px; }

.logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.logo-chip { height: 36px; padding: 0 16px; display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-weight: 700; font-size: .95rem; opacity: .7; transition: var(--transition); }
.logo-chip:hover { opacity: 1; color: var(--text-muted); }

/* ── CTA band ── */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: 64px 48px; text-align: center; background: var(--bg-raised); border: 1px solid var(--border); }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 65% 70% at 50% 0%, rgba(245,166,35,.14), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { max-width: 620px; margin: 0 auto 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 48px 24px; } }

/* ── Footer ── */
.footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4,1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: .88rem; color: var(--text-faint); transition: var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--text-faint); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-faint); transition: var(--transition); }
.social-row a:hover { border-color: var(--gold-500); color: var(--gold-500); }
.social-row svg { width: 15px; height: 15px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.form-control { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--bg-sidebar); color: var(--text); font-size: .92rem; transition: var(--transition); }
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus { border-color: var(--gold-500); outline: none; box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: 6px; }

/* ── Pricing ── */
.pricing-wrap { position: relative; padding: 48px 0 36px; }
.pricing-wrap::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 110%; max-width: 1200px; height: 100%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(245,166,35,.12), transparent 70%),
    linear-gradient(rgba(245,166,35,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.06) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.pricing-wrap > * { position: relative; z-index: 1; }

.pricing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

.price-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 20px; display: flex; flex-direction: column; text-align: center;
  transition: var(--transition); position: relative;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500), var(--shadow-lg); }
.price-card.enterprise { background: var(--bg-raised-2); }
.price-index {
  position: absolute; top: 18px; right: 20px;
  font-family: Georgia, serif; font-style: italic; font-size: .85rem;
  color: var(--text-faint); opacity: .5;
}
.price-badge { align-self: center; background: rgba(245,166,35,.15); color: var(--gold-400); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.price-range { font-size: .78rem; color: var(--text-faint); margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 14px 0 2px; }
.price-amount .num { font-size: 2.1rem; font-weight: 800; }
.price-amount .period { font-size: .8rem; color: var(--text-faint); }
.price-card .btn { margin-top: 18px; }
.price-card .check-list { margin-top: 20px; margin-bottom: 26px; flex-grow: 1; }

/* ── FAQ accordion ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 2px; text-align: left; font-weight: 600; font-size: .98rem; gap: 16px; }
.faq-question .chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-500); transition: var(--transition); }
.faq-item.is-open .faq-question .chev { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 2px 20px; font-size: .92rem; color: var(--text-muted); max-width: 740px; }
.faq-item.is-open .faq-answer { max-height: 320px; }

/* ── Page hero (inner pages) ── */
.page-hero { padding: 72px 0 64px; }
.page-hero .eyebrow { justify-content: center; }
.page-hero p.lede { margin: 16px auto 0; }

/* ── Stat bar ── */
.stat-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-bar .stat { padding: 0 26px; border-left: 1px solid var(--border); }
.stat-bar .stat:first-child { border-left: none; }
.stat-num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; display: flex; align-items: baseline; gap: 2px; }
.stat-num .unit { font-size: 1.3rem; color: var(--gold-500); }
.stat-label { margin-top: 8px; font-size: .88rem; color: var(--text-faint); }
@media (max-width: 768px) { .stat-bar { grid-template-columns: repeat(2,1fr); gap: 28px 0; } .stat-bar .stat:nth-child(odd) { border-left: none; } }

/* ── Value / team cards ── */
.value-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.value-num { color: var(--text-faint); font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.team-card .avatar-circle { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-faint); margin-bottom: 14px; }
.team-card .avatar-circle svg { width: 32px; height: 32px; }
.team-card .name { font-weight: 700; font-size: .98rem; }
.team-card .role { font-size: .82rem; color: var(--gold-500); font-weight: 600; margin-top: 2px; }

/* ── Resources / blog cards ── */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--bg-raised); transition: var(--transition); }
.post-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-thumb { height: 150px; background: linear-gradient(135deg, var(--bg-raised-2), var(--bg-sidebar)); display: flex; align-items: center; justify-content: center; color: var(--text-faint); border-bottom: 1px solid var(--border); }
.post-thumb svg { width: 30px; height: 30px; }
.post-card .post-body { padding: 22px; }
.post-tag { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-500); }
.post-card h3 { margin: 9px 0 9px; font-size: 1.08rem; }
.post-card p { font-size: .88rem; }
.post-meta { margin-top: 14px; font-size: .78rem; color: var(--text-faint); }

/* ── Photo placeholder (real photography goes here later) ── */
.photo-slot {
  position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(245,166,35,.06) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, var(--bg-raised-2), var(--bg-sidebar));
  border: 1px dashed var(--border-strong);
}
.photo-slot-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px; color: var(--text-faint); }
.photo-slot-inner svg { width: 30px; height: 30px; opacity: .6; }
.photo-slot-inner .label { font-size: .76rem; font-weight: 600; max-width: 200px; }
.photo-slot-inner .sub { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

/* ── Industry cards ── */
.industry-card { display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--bg-raised); transition: var(--transition); }
.industry-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.industry-card .photo-slot { aspect-ratio: 4 / 3; border-left: none; border-right: none; border-top: none; }
.industry-card-body { padding: 24px; }
.industry-card .icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(245,166,35,.12); color: var(--gold-500); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.industry-card .icon svg { width: 18px; height: 18px; }
.industry-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.industry-card p { font-size: .88rem; }

/* ── Utility ── */
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Gentle float ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-anim { animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .float-anim { animation: none; } }

/* ── Floating stat badge (kept component) ── */
.mockup-badge {
  position: absolute; bottom: -16px; right: -16px; z-index: 3;
  background: var(--gold-500); color: #1A1200; border-radius: 10px;
  padding: 11px 16px; box-shadow: 0 8px 24px rgba(245,166,35,.35);
  display: flex; align-items: center; gap: 9px;
  animation: badgeFloat 4s ease-in-out infinite; animation-delay: .5s;
}
.badge-icon { width: 30px; height: 30px; background: rgba(0,0,0,.15); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge-icon svg { width: 16px; height: 16px; }
.badge-text-top { font-size: .62rem; opacity: .75; }
.badge-text-bot { font-size: .8rem; font-weight: 800; }
@keyframes badgeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mockup-badge { animation: none; } }

/* ── Browser chrome mockup (kept component, available if needed) ── */
.browser-frame-3d { position: relative; perspective: 1200px; transform-style: preserve-3d; }
.browser-frame { background: #1e1e1e; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.browser-bar { background: #2a2a2a; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-dots { display: flex; gap: 6px; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red { background: #ff5f57; } .browser-dot.yel { background: #febc2e; } .browser-dot.grn { background: #28c840; }
.browser-url { flex: 1; background: #1a1a1a; border-radius: 4px; padding: 5px 12px; font-size: .7rem; color: rgba(255,255,255,.35); }
.browser-screen { background: var(--bg-raised-2); overflow: hidden; }

/* ── Toast (e.g. "under construction" notice) ── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-raised-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 13px 18px; box-shadow: var(--shadow-lg);
  font-size: .9rem; font-weight: 600; color: var(--text);
  opacity: 0; visibility: hidden; transition: var(--transition);
  z-index: 200; max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; }
