/*
  Chartiin — GoodData-inspired landing site
  - Modern, clean, high-contrast UI
  - Subtle glassmorphism and gradient accents
  - Responsive, accessible, prefers-reduced-motion respected
*/

:root {
  /* Forced light theme (dark mode removed) */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --panel: #ffffff;
  --text: #0b1020;
  --muted: #5b6280;
  --border: #e7eaf3;
  --brand-500: #7c5cff; /* primary accent */
  --brand-600: #6a4df3;
  --teal-500: #14b8a6; /* secondary accent */
  --pink-500: #ff4ecd;
  --success: #17c964;
  --danger: #f31260;
  --shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: var(--panel); border: 1px solid var(--border); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; color: var(--text); background: transparent; cursor: pointer; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--brand-500), var(--teal-500)); color: white; box-shadow: var(--shadow); }
.btn.secondary { background: transparent; border: 1px solid var(--border); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn.sm { padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.btn.lg { padding: 14px 18px; border-radius: 14px; font-size: 16px; }
.back-link { margin-bottom: 12px; display: inline-flex; }

.eyebrow { color: var(--teal-500); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(140%) blur(8px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 18px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { display: inline-flex; align-items: center; }
.brand img,
.about img { display: block; height: 48px; width: auto; }
.desktop-nav { display: none; gap: 24px; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a.active, .desktop-nav a[aria-current="page"] { color: var(--text); position: relative; }
.desktop-nav a.active::after, .desktop-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: linear-gradient(90deg, var(--brand-500), var(--teal-500)); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* (dropdown styles removed) */

.hamburger { display: inline-flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); background: transparent; }
.hamburger span { width: 18px; height: 2px; background: var(--text); display: block; }

.mobile-menu { display: grid; gap: 10px; padding: 12px 20px 16px; border-bottom: 1px solid var(--border); background: var(--panel); }
.mobile-menu a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.mobile-menu a.active, .mobile-menu a[aria-current="page"] { border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border)); }

@media (min-width: 960px) {
  .desktop-nav { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* Hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; margin: 8px 0 16px; font-weight: 800; letter-spacing: -0.02em; }
.hero .sub { font-size: 18px; color: var(--muted); }
.cta-row { display: flex; gap: 12px; margin: 20px 0 10px; flex-wrap: wrap; }

.stats { display: flex; gap: 24px; list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); }
.stats .num { display: block; font-weight: 800; color: var(--text); font-size: 18px; }

.hero-art { position: relative; min-height: 420px; }
.orb { position: absolute; border-radius: 999px; filter: blur(16px); opacity: .9; animation: float 10s ease-in-out infinite; mix-blend-mode: screen; }
.orb-1 { width: 260px; height: 260px; right: 0; top: 10%; background: radial-gradient(circle at 30% 30%, #9c8aff, transparent 60%), #6a4df3; }
.orb-2 { width: 220px; height: 220px; left: 8%; bottom: 6%; background: radial-gradient(circle at 30% 30%, #57f7e3, transparent 60%), #14b8a6; animation-delay: -3s; }

.glass-card { position: absolute; inset: auto 40px 20px 40px; border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(10px) saturate(120%); }
.mini-kpi { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--border); }
.kpi-label { margin: 0; color: var(--muted); font-size: 12px; }
.kpi-value { margin: 4px 0 0; font-weight: 700; font-size: 20px; }
.sparks { width: 100%; height: 40px; stroke: var(--teal-500); stroke-width: 2; fill: none; opacity: .9; }

.mini-chart { margin-top: 12px; border-radius: 12px; border: 1px solid var(--border); padding: 10px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 4px; }
.legend .a { background: var(--brand-500); }
.legend .b { background: var(--teal-500); }
.lines { width: 100%; height: 140px; }
.lines .a { stroke: var(--brand-500); stroke-width: 2; fill: none; opacity: .9; }
.lines .b { stroke: var(--teal-500); stroke-width: 2; fill: none; opacity: .8; }

.bg-grid { pointer-events: none; position: absolute; inset: 0; background-image: linear-gradient(to right, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0)); opacity: .4; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* Logos */
.logos { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.logo-row { display: grid; place-items: center; opacity: .85; }

/* Partners marquee */
.partners-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.partners-track { display: flex; align-items: stretch; gap: 18px; padding: 8px 0; animation: logos-scroll 17.8s linear infinite; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner { width: 140px; min-width: 140px; height: 120px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--panel) 85%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.partner .logo { width: 62px; height: 62px; object-fit: contain; display: block; }
.partner small { font-weight: 600; color: var(--muted); text-align: center; }

@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: color-mix(in srgb, var(--panel) 45%, transparent); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.section h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 16px; }
.card { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 85%, transparent), color-mix(in srgb, var(--panel) 30%, transparent)); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.card h3 { margin: 8px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--brand-500); background: color-mix(in srgb, var(--brand-500) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brand-500) 30%, var(--border)); }
.icon svg { width: 22px; height: 22px; }

/* Make cards clickable */
a.card { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-500) 35%, var(--border)); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
a.card:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-500) 50%, #fff); outline-offset: 2px; }

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Careers roles grid: 2 rows x 3 columns (6 items) */
.roles-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 16px; }
@media (min-width: 720px) { .roles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .roles-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Careers benefits grid: 2 rows x 3 columns */
.benefits-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 16px; }
@media (min-width: 720px) { .benefits-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Solutions */
.solutions { display: grid; gap: 16px; grid-template-columns: repeat(1, minmax(0,1fr)); }
.sol { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 85%, transparent), color-mix(in srgb, var(--panel) 25%, transparent)); }
.sol h3 { margin: 0 0 4px; }
.sol p { margin: 0 0 8px; color: var(--muted); }
.sol ul { margin: 0; padding-left: 18px; color: var(--muted); }

@media (min-width: 960px) { .solutions { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Force stacked layout for job detail sections (1 per row) */
.solutions.stacked { grid-template-columns: 1fr !important; }

/* Clickable solutions */
a.sol { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
a.sol:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-500) 35%, var(--border)); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
a.sol:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-500) 50%, #fff); outline-offset: 2px; }

/* Policy pages */
.policy-content { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; font-size: 17px; line-height: 1.7; color: var(--text); }
.policy-content h2 { margin-top: 24px; font-size: 24px; }
.policy-content ul { padding-left: 20px; margin: 0; }
.policy-content li { margin: 6px 0; }
.policy-content p { margin: 0; }

/* Showcase dashboard */
.dash { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 90%, transparent), color-mix(in srgb, var(--panel) 30%, transparent)); box-shadow: var(--shadow); overflow: hidden; }
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.filters, .actions { display: flex; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; }
.chip.ghost { color: var(--muted); }
.chip.active { border-color: color-mix(in srgb, var(--brand-500) 50%, var(--border)); background: color-mix(in srgb, var(--brand-500) 10%, #fff); }
.chip:hover,
.chip:focus-visible { border-color: color-mix(in srgb, var(--brand-500) 60%, var(--border)); background: color-mix(in srgb, var(--brand-500) 12%, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.08); outline: none; color: var(--text); }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; padding: 12px; }
.kpi { grid-column: span 4; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.kpi-delta { margin: 6px 0 0; font-weight: 600; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }
.chart { grid-column: span 12; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.chart .chart-head { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.chart.area svg { width: 100%; height: 240px; }
.chart.area .line { stroke: var(--brand-600); stroke-width: 2; fill: none; }
.chart.bars .bars-wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; align-items: end; height: 220px; }
.chart.bars .bar { --c: color-mix(in srgb, var(--teal-500) 60%, var(--brand-500)); background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 45%, transparent)); height: var(--v); border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; color: #fff; font-weight: 600; }
.chart.table .tbl { display: grid; grid-template-columns: 1fr; padding: 8px 12px; }
.chart.table .row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.chart.table .row:last-child { border-bottom: 0; }
.chart.table .row.head { color: var(--muted); font-weight: 600; }

@media (max-width: 720px) {
  .dash-grid { grid-template-columns: repeat(6, 1fr); }
  .kpi { grid-column: span 6; }
}

/* Resources */
.resource-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, minmax(0,1fr)); }
.res { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 85%, transparent), color-mix(in srgb, var(--panel) 25%, transparent)); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; display: block; }
.res:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-500) 35%, var(--border)); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.res:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-500) 50%, #fff); outline-offset: 2px; }
.res h3 { margin: 0 0 6px; }
.res p { margin: 0; color: var(--muted); }
@media (min-width: 960px) { .resource-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* CTA */
.cta { padding: 64px 0; }
.cta-inner { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; border: 1px solid var(--border); border-radius: 18px; padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--panel) 75%, transparent), color-mix(in srgb, var(--panel) 30%, transparent)); box-shadow: var(--shadow); }
.cta-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cta-form label { display: grid; gap: 6px; font-weight: 600; }
.cta-form input, .cta-form textarea { width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--text); }
.cta-actions { display: flex; align-items: center; justify-content: center; }
.cta-actions .btn { width: 100%; justify-content: center; text-align: center; }

@media (min-width: 960px) { .cta-inner { grid-template-columns: 1fr 1fr; padding: 22px; } }

/* Center a single-column form neatly inside the block */
.cta-inner.centered { grid-template-columns: 1fr; }
.cta-inner.centered .cta-form { max-width: 640px; justify-self: center; width: 100%; }
.form-status { font-size: 14px; margin-top: 4px; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.foot { display: grid; grid-template-columns: 1fr; gap: 24px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.col h4 { margin: 0 0 10px; }
.col a { color: var(--muted); text-decoration: none; display: block; margin: 6px 0; }
.col a:hover { color: var(--text); }
@media (min-width: 960px) { .foot { grid-template-columns: 2fr 3fr; } }

/* Dark mode removed: no theme classes */

/* Utilities */
.hidden { display: none !important; }

/* Responsive hero layout */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .glass-card { inset: auto 0 0 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Breadcrumbs */
.breadcrumbs { padding: 10px 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 20%, transparent); }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: '/'; color: var(--border); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
