/* GLX Studio corp site — extends design-system/colors_and_type.css */

:root {
  /* Extend the system with a corp-marketing CTA lime sampled from the mockups.
     The product (in-app) keeps using --surface-action teal (#6FFFE9). The
     marketing site uses lime for the primary CTA and green-accent inline emphasis. */
  --cta-lime:        #D2FA5E;
  --cta-lime-hover:  #C2EA40;
  --cta-lime-press:  #A8CC2E;

  /* The "convert" green-accent in the mockup headline reads slightly darker
     than the CTA — closer to a vivid grass green. */
  --accent-text:     #B6E84A;

  /* Light section (process steps) is true white, not grey */
  --surface-light:   #FFFFFF;
  --surface-light-alt:#F5F7F4;
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; }
body { background: var(--surface-primary); color: var(--text-standard); font-family: var(--font-sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Reuse glx icon pattern from kit.css */
.ic {
  display: inline-block;
  width: 24px; height: 24px;
  background: var(--u) center/contain no-repeat;
  flex: none;
  filter: invert(93%) sepia(6%) saturate(200%) hue-rotate(180deg);
}
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 32px; height: 32px; }
.ic--xl { width: 40px; height: 40px; }
.ic--muted { filter: invert(59%) sepia(6%) saturate(80%) hue-rotate(180deg) brightness(95%); }
.ic--inverse { filter: none; }
.ic--lime   { filter: invert(95%) sepia(40%) saturate(640%) hue-rotate(15deg) brightness(105%); }

/* ============= Layout primitives ============= */

.page { min-height: 100vh; background: var(--surface-primary); }
.page--light { background: var(--surface-light); color: var(--text-l1-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--light { background: var(--surface-light); color: var(--text-l1-light); }
.section--accent { background: var(--accent-primary); color: #fff; }
.section--card { background: var(--surface-secondary); }

/* ============= Top nav (corp-site) ============= */

.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.topnav-logo { display: inline-flex; align-items: center; gap: 8px; }
.topnav-logo img { height: 22px; }
.topnav-links { display: flex; align-items: center; gap: 28px; }
.topnav-link {
  font-size: 14px; font-weight: 500; color: var(--text-standard);
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; padding: 6px 0;
  transition: color 160ms ease;
}
.topnav-link:hover { color: var(--accent-text); }
.topnav-link .caret { width: 10px; height: 10px; opacity: 0.7; }
.topnav-actions { display: flex; align-items: center; gap: 16px; }
.topnav-signin {
  font-size: 14px; font-weight: 500; color: var(--text-standard);
  cursor: pointer; background: none; border: none;
}
.topnav-signin:hover { color: var(--accent-text); }

/* CTA buttons (marketing — lime) */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: var(--cta-lime); color: #0A1A00;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.btn-cta:hover { background: var(--cta-lime-hover); }
.btn-cta:active { background: var(--cta-lime-press); }
.btn-cta--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-cta--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-cta .arr {
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(0,0,0,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0A1A00; font-size: 14px; font-weight: 700;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: transparent; color: var(--text-standard);
  border: 1px solid var(--surface-tertiary);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.btn-ghost:hover { border-color: var(--cta-lime); color: var(--cta-lime); }
.btn-ghost--light {
  color: var(--text-l1-light); border-color: rgba(0,0,0,0.15);
}
.btn-ghost--light:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.btn-watch {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px 0 18px;
  background: transparent; color: var(--text-standard);
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.btn-watch:hover { color: var(--cta-lime); }
.btn-watch .play-circle {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1.5px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-watch .play-circle::before {
  content: ''; width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

/* ============= Hero ============= */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center;
  padding: 56px 32px 80px;
  max-width: 1200px; margin: 0 auto;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}
.hero-h1 {
  font-size: 64px; font-weight: 900; line-height: 1.05;
  color: var(--text-standard);
  letter-spacing: -0.02em;
}
.hero-h1 em { font-style: normal; color: var(--accent-text); }
.hero-sub { font-size: 18px; line-height: 1.45; color: var(--text-secondary); max-width: 480px; font-weight: 400; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

.hero-stats {
  display: flex; gap: 36px; margin-top: 28px;
  border-top: 1px solid var(--surface-tertiary);
  padding-top: 24px;
}
.hero-stat { display: flex; align-items: flex-start; gap: 10px; }
.hero-stat-ic {
  width: 18px; height: 18px;
  color: var(--accent-text);
  flex: none; margin-top: 2px;
}
.hero-stat-num { font-size: 18px; font-weight: 700; color: var(--text-standard); line-height: 1.2; }
.hero-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.3; }

/* Product preview (right side of hero) */
.hero-product {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-tertiary);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  display: grid; grid-template-columns: 200px 1fr;
  min-height: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* ============= "From static content to video" process ============= */

.process {
  background: var(--surface-light);
  color: var(--text-l1-light);
  padding: 64px 32px;
}
.process-inner { max-width: 1000px; margin: 0 auto; }
.process-title {
  font-size: 28px; font-weight: 700; text-align: center;
  color: var(--text-l1-light); margin-bottom: 48px;
  letter-spacing: -0.01em;
}
.process-steps {
  display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: start; gap: 16px;
}
.process-step { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.process-step-ic {
  width: 56px; height: 56px; border-radius: 12px;
  background: #F0F2F0;
  display: inline-flex; align-items: center; justify-content: center;
}
.process-step-ic .ic { filter: none; }
.process-step-num {
  font-size: 16px; font-weight: 700; color: var(--text-l1-light);
  margin-top: 8px;
}
.process-step-num em { color: var(--green-600); font-style: normal; margin-right: 4px; }
.process-step-body { font-size: 14px; color: #555; line-height: 1.4; max-width: 180px; }
.process-arrow {
  height: 56px; display: flex; align-items: center; justify-content: center;
  color: #C9CDC8;
  letter-spacing: 0.4em;
  font-size: 18px;
  font-weight: 300;
}

/* ============= "Built for teams" features grid ============= */

.features {
  padding: 64px 32px 72px;
  background: var(--surface-primary);
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-title {
  font-size: 26px; font-weight: 700; text-align: center;
  color: var(--text-standard); margin-bottom: 44px;
  letter-spacing: -0.01em;
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px;
  padding: 12px;
}
.feature-ic {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--surface-tertiary);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-ic .ic { filter: invert(95%) sepia(40%) saturate(640%) hue-rotate(15deg) brightness(105%); }
.feature-title { font-size: 14px; font-weight: 700; color: var(--text-standard); }
.feature-body { font-size: 13px; color: var(--text-secondary); line-height: 1.4; max-width: 200px; }

/* ============= "See GLX in action" panel ============= */

.action-panel {
  margin: 0 32px 64px;
  max-width: 1136px;
  margin-left: auto; margin-right: auto;
  background: var(--surface-secondary);
  border: 1px solid var(--surface-tertiary);
  border-radius: var(--radius-md);
  display: grid; grid-template-columns: 280px 1fr;
  overflow: hidden;
}
.action-side { padding: 40px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.action-h { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--text-standard); letter-spacing: -0.01em; }
.action-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-top: 12px; }
.action-cta { color: var(--cta-lime); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.action-cta::after { content: '→'; }

.action-product { padding: 16px; min-height: 380px; }

/* ============= Results that matter ============= */

.results {
  padding: 56px 32px 72px;
  max-width: 1136px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 36px; align-items: center;
}
.results-left h3 { font-size: 18px; font-weight: 700; color: var(--text-standard); margin-bottom: 8px; }
.results-left p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; max-width: 220px; }
.results-link {
  margin-top: 16px;
  color: var(--cta-lime); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.results-link::after { content: '→'; }

.results-compare {
  display: grid; grid-template-columns: 1fr 24px 1fr;
  align-items: center; gap: 8px;
  background: var(--surface-secondary);
  border: 1px solid var(--surface-tertiary);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.results-cell { text-align: center; }
.results-cell-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 8px;
}
.results-cell-num { font-size: 36px; font-weight: 700; color: var(--text-standard); line-height: 1; }
.results-cell-num--win { color: var(--cta-lime); }
.results-cell-unit { font-size: 11px; color: var(--text-secondary); margin-top: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.results-vs {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--surface-tertiary); color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
}

.results-trust { text-align: center; }
.results-trust-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 16px;
}
.results-trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px 24px; align-items: center;
  color: var(--text-secondary);
}
.results-trust-grid .logo {
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-secondary);
  height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.results-trust-foot {
  margin-top: 18px;
  font-size: 11px; color: var(--text-secondary);
  display: flex; gap: 8px; justify-content: center;
}
.results-trust-foot span::before { content: '·'; margin-right: 8px; color: var(--surface-tertiary); }
.results-trust-foot span:first-child::before { content: ''; margin: 0; }

/* ============= Bottom CTA bar ============= */

.bottom-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 28px 40px;
  max-width: 1136px; margin: 0 auto 0;
  background: var(--surface-secondary);
  border-top: 1px solid var(--surface-tertiary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.bottom-cta-h { font-size: 22px; font-weight: 700; color: var(--text-standard); line-height: 1.2; max-width: 380px; letter-spacing: -0.01em; }
.bottom-cta-actions { display: flex; gap: 12px; }

/* ============= Footer (full) ============= */

.footer {
  background: var(--surface-primary);
  border-top: 1px solid var(--surface-tertiary);
  padding: 56px 32px 32px;
  margin-top: 56px;
}
.footer-inner { max-width: 1136px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--surface-tertiary);
}
.footer-brand-blurb { font-size: 13px; color: var(--text-secondary); line-height: 1.5; max-width: 280px; margin-top: 14px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13px; color: var(--text-standard); padding: 4px 0; }
.footer-col a:hover { color: var(--cta-lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12px; color: var(--text-secondary);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--cta-lime); }

/* ============= Avatar / mini chips reused ============= */

.avatar { width: 24px; height: 24px; border-radius: 999px; background: var(--accent-primary); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tag-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag-lime { background: var(--cta-lime); color: #0A1A00; }
.tag-teal { background: var(--green-400); color: var(--text-inverse); }
.tag-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--surface-tertiary); }

/* ============= Section header ============= */

.section-h {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 48px;
}
.section-h .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.section-h h2 { font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--text-standard); letter-spacing: -0.01em; max-width: 720px; }
.section-h p { font-size: 16px; color: var(--text-secondary); max-width: 600px; line-height: 1.5; }
.section--light .section-h h2 { color: var(--text-l1-light); }
.section--light .section-h p { color: #555; }

/* ============= Mini-product preview shared ============= */

.mp {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-tertiary);
  border-radius: var(--radius-sm);
  display: grid; grid-template-columns: 200px 1fr;
  overflow: hidden;
}
.mp-nav { padding: 16px 12px; background: var(--surface-secondary); border-right: 1px solid var(--surface-tertiary); display: flex; flex-direction: column; gap: 4px; }
.mp-nav-org { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.mp-nav-org-av { width: 28px; height: 28px; border-radius: 6px; background: var(--accent-primary); flex: none; overflow: hidden; }
.mp-nav-org-av img { width: 100%; height: 100%; object-fit: cover; }
.mp-nav-org-name { font-size: 12px; font-weight: 700; color: var(--text-standard); }
.mp-nav-org-role { font-size: 10px; color: var(--text-secondary); }
.mp-nav-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  font-size: 12px; color: var(--text-secondary);
  cursor: default;
}
.mp-nav-pill .ic, .mp-nav-pill .dot { width: 14px; height: 14px; }
.mp-nav-pill.is-active { background: var(--surface-tertiary); color: var(--icon-active); font-weight: 700; }
.mp-nav-divider { height: 1px; background: var(--surface-tertiary); margin: 8px 4px; }
.mp-nav-foot { margin-top: auto; padding: 8px 6px; font-size: 11px; font-weight: 900; letter-spacing: -0.02em; color: var(--cta-lime); }
.mp-nav-foot em { color: var(--text-standard); font-style: normal; font-weight: 700; }
.mp-nav-org-caret {
  margin-left: auto; width: 18px; height: 18px;
  border: 1px solid var(--surface-tertiary); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-secondary);
}

.mp-grid {
  padding: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  align-content: start;
}
.mp-tile { background: var(--surface-tertiary); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.mp-tile-thumb { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
.mp-tile-meta { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.mp-tile-meta-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-secondary); }
.mp-tile-meta-row .avatar { width: 16px; height: 16px; font-size: 8px; }
.mp-tile-name { font-size: 11px; font-weight: 600; color: var(--text-standard); line-height: 1.3; min-height: 28px; }
.mp-tile-vids { font-size: 9px; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }

/* Editor preview (used in "See GLX in action") */
.ep {
  background: var(--surface-light);
  color: var(--text-l1-light);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 360px;
}
.ep-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #E4E4E4;
  font-size: 11px;
}
.ep-topbar .glx-mark { font-size: 10px; font-weight: 900; color: var(--text-l1-light); }
.ep-topbar .glx-mark em { color: var(--cta-lime-press); font-style: normal; }
.ep-topbar-title { color: #444; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-topbar-actions { display: flex; gap: 8px; align-items: center; }
.ep-tag-add { font-size: 10px; color: #888; }
.ep-tag-saved { background: #D4FACF; color: #0E5A1F; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.ep-body { flex: 1; display: grid; grid-template-columns: 200px 1fr 220px; min-height: 0; }
.ep-left { padding: 8px; overflow: hidden; border-right: 1px solid #E4E4E4; background: #FAFAFA; }
.ep-tl-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px;
  font-size: 9px; color: #444;
  border-bottom: 1px solid #EEE;
}
.ep-tl-row .av { width: 14px; height: 14px; border-radius: 3px; background: #2D2A55; flex: none; }
.ep-tl-time { font-size: 8px; color: #888; min-width: 70px; }
.ep-tl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-tl-row.is-active { background: #1A1A1A; color: #E4EAF1; border-radius: 4px; border-bottom: none; padding: 6px; }

.ep-stage {
  background: #0A0A0A;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 240px;
}
.ep-stage-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ep-controls {
  position: absolute; left: 12px; right: 12px; bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: #fff;
}
.ep-progress { flex: 1; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; position: relative; }
.ep-progress::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--cta-lime); border-radius: 2px; }

.ep-right { padding: 12px; background: #FFF; border-left: 1px solid #E4E4E4; font-size: 10px; }
.ep-tabs { display: flex; gap: 8px; border-bottom: 1px solid #E4E4E4; padding-bottom: 6px; margin-bottom: 10px; font-size: 10px; }
.ep-tabs span { color: #888; }
.ep-tabs .is-active { color: var(--text-l1-light); font-weight: 700; position: relative; }
.ep-tabs .is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--text-l1-light); }
.ep-field-label { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.ep-field { padding: 6px 8px; border: 1px solid #E4E4E4; border-radius: 4px; font-size: 10px; color: var(--text-l1-light); margin-bottom: 10px; }
.ep-prompt { font-size: 10px; color: #444; line-height: 1.4; }
