/* Gllownite Remote -- marketing site (task #111). Plain CSS, no build
   step, no external dependencies -- matches how this is deployed
   (hosting_deployStaticWebsite, a raw file extract with no build). */

:root {
  --bg: #0b0f19;
  --bg-alt: #101625;
  --card: #151c2e;
  --border: #23304a;
  --text: #e8ecf6;
  --text-dim: #9aa5bd;
  --accent: #4f8cff;
  --accent-dim: #2d5bd1;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --header-bg: rgba(11, 15, 25, 0.92);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --btn-primary-text: #06101f;
  --radius: 10px;
  --max: 1120px;
}

/* Light theme -- toggled via data-theme="light" on <html>, set by
   assets/theme.js before first paint (reads localStorage, falls back
   to prefers-color-scheme) so there's no flash of the wrong theme. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --card: #ffffff;
  --border: #e1e6f0;
  --text: #10131f;
  --text-dim: #5b6478;
  --accent: #2d5bd1;
  --accent-dim: #1d3f99;
  --accent-soft: rgba(45, 91, 209, 0.08);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --btn-primary-text: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Logos are exported white-on-transparent for the dark theme; invert
   them for light backgrounds instead of shipping/loading a second
   set of image files. */
:root[data-theme="light"] img.wordmark {
  filter: invert(1);
}

/* Header -- clean & minimal: no shadow at rest, a soft shadow fades
   in once the page is scrolled (toggled by assets/theme.js adding
   .scrolled), so the sticky bar reads as "floating above content"
   rather than always having a hard edge. */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
header.site.scrolled { box-shadow: var(--header-shadow); }
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-soft);
}
.brand img.wordmark { height: 25px; width: auto; display: block; }
.brand .tech-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-left: 2px;
  white-space: nowrap;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.primary a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
nav.primary a:hover, nav.primary a.active { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Theme toggle -- iOS-style switch: a pill track that recolors and a
   thumb that slides right when light mode is active. No icon glyphs
   needed; the position/color of the thumb communicates the state. */
.theme-switch {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 999px;
}
.theme-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 0.2s ease;
}
:root[data-theme="light"] .theme-switch-track { background: var(--accent); }
.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
:root[data-theme="light"] .theme-switch-thumb { transform: translateX(18px); }
.theme-switch:focus { outline: none; }
.theme-switch:focus-visible .theme-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--btn-primary-text); }
.btn-primary:hover { background: #6fa2ff; }
:root[data-theme="light"] .btn-primary:hover { background: #4874d6; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -10%, var(--accent-soft), transparent);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero .accent { color: var(--accent); }
.hero p.lead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .cta-row .btn { padding: 13px 26px; font-size: 1rem; }

/* Sections */
section { padding: 72px 24px; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 { font-size: 2rem; margin: 10px 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); margin: 0; }

/* Grid / cards */
.grid { display: grid; gap: 22px; max-width: var(--max); margin: 0 auto; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  nav.primary { display: none; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.card .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 14px;
}

/* Steps */
.steps { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--btn-primary-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; }
.step p { color: var(--text-dim); margin: 0; }

/* Platform badges */
.platforms { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.pill.live { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* Tables / pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--max); margin: 0 auto; align-items: stretch; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .name { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.plan .tagline { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.plan .price { font-size: 1.9rem; font-weight: 700; margin-bottom: 4px; }
.plan .price small { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan ul li { padding: 7px 0; color: var(--text-dim); font-size: 0.92rem; border-top: 1px solid var(--border); }
.plan ul li:first-child { border-top: none; }
.plan ul li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.notice {
  max-width: var(--max);
  margin: 0 auto 48px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.92rem;
}

/* Forms */
form.contact { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
form.contact label { font-size: 0.88rem; color: var(--text-dim); display: block; margin-bottom: 6px; }
form.contact input, form.contact textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }

.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--max); margin: 0 auto 56px; }
@media (max-width: 860px) { .contact-methods { grid-template-columns: 1fr; } }

/* Blog */
.post-list { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.post .date { color: var(--accent); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.post h2 { margin: 8px 0 10px; font-size: 1.3rem; }
.post p { color: var(--text-dim); margin: 0; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Support */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-dim); margin: 12px 0 0; }

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-size: 1.9rem; margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); margin: 0 0 28px; }

/* Footer -- slim minimal: one row, everything centered as a single
   group (logo, inline links, copyright) with a fixed gap. Previously
   this used justify-content: space-between across the full 1120px
   row, which -- same mistake as the old multi-column footer -- shoved
   the three pieces toward the edges and left large dead gaps between
   them. Centering as one block removes the dead space entirely. */
footer.site {
  padding: 26px 24px;
  border-top: 1px solid var(--border);
}
footer.site .footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 14px;
  column-gap: 28px;
  text-align: center;
}
footer.site .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
footer.site .footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer.site .footer-links a:hover { color: var(--text); }
footer.site .footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
}
