AkurAI Build
Menu

Public repository / ed1696afdb6cc3eba686f123e0b4674d3a81081b

AkurAI-Platform / frontend/styles.css

Latest change ed1696afdb6cc3eba686f123e0b4674d3a81081b - feat: adopt framework v0.8.0 theme system (17 themes, picker, token aliasing) by Olafur Bui

:root {
  --page: var(--bg);
  --surface: var(--panel);
  --surface-soft: var(--panel-2);
  --ink: var(--fg);
  --muted: var(--muted);
  --line: var(--border);
  --line-strong: var(--border-2);
  --green: var(--accent);
  --teal: var(--accent-2);
  --blue: var(--accent);
  --amber: var(--warn);
  --red: var(--danger);
  /* --shadow removed; active theme provides it */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 820;
}

.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 99%, transparent) 0%, color-mix(in srgb, var(--bg) 95%, transparent) 42%, color-mix(in srgb, var(--bg) 58%, transparent) 61%, color-mix(in srgb, var(--bg) 4%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 24%, transparent) 0%, color-mix(in srgb, var(--bg) 8%, transparent) 55%, color-mix(in srgb, var(--bg) 78%, transparent) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 860;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: 76px;
  line-height: 0.99;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.button:hover { text-decoration: none; }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.secondary { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); }

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.health-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.health-pill[data-state="ok"] { color: var(--green); }
.health-pill[data-state="fail"] { color: var(--red); }

.metric-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: -42px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 108px;
  padding: 23px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }
.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-head h2,
.memory-copy h2,
.sources-section h2,
.source-callout h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-head p:last-child,
.memory-copy p:last-of-type,
.sources-section p,
.source-callout p:last-of-type {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.source-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 42px;
}

.source-callout > div { max-width: 760px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-card,
.comparison-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 20px;
}

.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-card-head p,
.comparison-card > p {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 820;
}

.app-card-head strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  color: var(--green);
  font-size: 12px;
  font-weight: 830;
  white-space: nowrap;
}

.app-card h3 {
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.app-description {
  margin: 13px 0 20px;
  color: var(--muted);
}

.app-actions {
  margin-top: auto;
}

.live-link,
.no-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.live-link:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.live-link[href=""] { display: none; }
.no-link { display: none; color: var(--muted); }
.live-link[href=""] + .no-link { display: inline-flex; }

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.repo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.repo-links a:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.memory-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.memory-copy {
  position: sticky;
  top: 96px;
}

.updated {
  display: inline-flex;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.memory-ledger {
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(140px, 210px) minmax(140px, 1fr) minmax(96px, auto);
  gap: 14px;
  align-items: center;
  min-height: 44px;
}

.ledger-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 780;
}

.ledger-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.ledger-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.ledger-track strong {
  display: block;
  width: max(3%, var(--bar));
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--blue));
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
}

.comparison-card h3 {
  margin: 14px 0 18px;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

.comparison-line {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.comparison-line span {
  color: var(--muted);
  font-size: 13px;
}

.comparison-line strong {
  color: var(--ink);
  font-size: 18px;
}

.comparison-difference {
  margin: 14px 0;
  color: var(--amber);
  font-weight: 850;
}

.comparison-card a {
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
}

.sources-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 780;
}

.source-list a:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px 36px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.site-footer p { margin: 4px 0; }
.muted { color: var(--muted); }

@media (max-width: 1080px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-section,
  .sources-section,
  .source-callout { grid-template-columns: 1fr; }
  .memory-copy { position: static; }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px;
  }

  .brand { width: 100%; }
  .nav-links { justify-content: flex-start; gap: 13px; }
  .hero { min-height: 600px; }
  .hero-image { object-position: 72% center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 99%, transparent) 0%, color-mix(in srgb, var(--bg) 96%, transparent) 57%, color-mix(in srgb, var(--bg) 66%, transparent) 78%, color-mix(in srgb, var(--bg) 90%, transparent) 100%);
  }

  .hero-content,
  .metric-strip,
  .section { width: min(100% - 28px, 1180px); }

  .hero-content { padding: 54px 0 88px; }
  .hero h1 { font-size: 48px; }
  .lede { font-size: 18px; }

  .metric-strip,
  .app-grid,
  .comparison-grid { grid-template-columns: 1fr; }

  .metric {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child { border-bottom: 0; }
  .section { padding: 56px 0; }

  .section-head h2,
  .memory-copy h2,
  .sources-section h2,
  .source-callout h2 { font-size: 32px; }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-bottom: 6px;
  }

  .ledger-row em { text-align: left; }
}

@media (max-width: 420px) {
  .hero { min-height: 570px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .app-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Theme picker (header) — token-driven so it re-themes with everything else. */
.theme-picker { display: inline-flex; align-items: center; }
.theme-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 11px;
  cursor: pointer;
  line-height: 1.2;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) center, calc(100% - 10px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color .15s ease, background-color .15s ease;
}
.theme-select:hover { border-color: var(--border-2); }
.theme-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-select optgroup { color: var(--fg); background: var(--panel); font-weight: 700; }
.theme-select option { color: var(--fg); background: var(--panel); font-weight: 500; }