Menu
Public repository / 0e63589daf324a79243fb3f782a526db9d2dd874
AkurAI-Platform / frontend/styles.css
Latest change 0e63589daf324a79243fb3f782a526db9d2dd874 - style: refactor platform landing page by Olafur Bui
:root {
--page: #f4f6f2;
--surface: #ffffff;
--surface-soft: #eef4f0;
--ink: #151713;
--muted: #5b655d;
--line: #dce4dd;
--line-strong: #bfcbc1;
--green: #1d7d4d;
--teal: #0a787d;
--blue: #2e56b8;
--amber: #aa6619;
--red: #b42318;
--shadow: 0 18px 45px rgba(21, 23, 19, 0.1);
}
* { 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 rgba(21, 23, 19, 0.1);
background: rgba(255, 255, 255, 0.9);
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: #edf2ed;
}
.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, rgba(244, 246, 242, 0.99) 0%, rgba(244, 246, 242, 0.95) 42%, rgba(244, 246, 242, 0.58) 61%, rgba(244, 246, 242, 0.04) 100%),
linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(244, 246, 242, 0.08) 55%, rgba(244, 246, 242, 0.78) 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: #3f463d;
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: rgba(255, 255, 255, 0.88); color: var(--ink); }
.health-pill {
display: inline-flex;
align-items: center;
gap: 9px;
min-height: 34px;
padding: 6px 12px;
border: 1px solid rgba(21, 23, 19, 0.13);
border-radius: 999px;
background: rgba(255, 255, 255, 0.86);
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: 0 12px 30px rgba(21, 23, 19, 0.06);
}
.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: #edf6ef;
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: #fbfcfa;
color: #37413a;
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: #e4ece5;
}
.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, rgba(244, 246, 242, 0.99) 0%, rgba(244, 246, 242, 0.96) 57%, rgba(244, 246, 242, 0.66) 78%, rgba(244, 246, 242, 0.9) 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;
}
}