xai_voice_agent / style.css
ledercap's picture
0.6.2: landing page layout — compact two-column hero
5805581 verified
Raw
History Blame Contribute Delete
4.44 kB
/* xAI Voice Agent — HF Space landing page, matching the control panel's look:
near-black, orange accent, mono details, quiet cards. */
:root {
--bg: #0a0a0b;
--card: #161618;
--line: #29292e;
--text: #ececee;
--muted: #8b8b93;
--accent: #f7941d;
--accent-dim: rgba(247, 148, 29, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
}
main { max-width: 860px; margin: 0 auto; padding: 48px 20px 32px; }
.hero {
display: grid;
grid-template-columns: 1fr 280px;
gap: 40px;
align-items: center;
padding-bottom: 40px;
}
.hero-media video {
display: block;
width: 100%;
border: 1px solid var(--line);
border-radius: 18px;
background: var(--card);
}
.hero-media figcaption {
margin-top: 8px;
font-size: 11.5px;
text-align: center;
color: var(--muted);
letter-spacing: .04em;
}
.highlights {
list-style: none;
display: grid;
gap: 7px;
margin-bottom: 18px;
font-size: 14px;
color: var(--muted);
}
.highlights li { padding-left: 18px; position: relative; }
.highlights li::before {
content: "";
position: absolute;
left: 0;
top: .52em;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--accent-dim);
border: 1.5px solid var(--accent);
}
@media (max-width: 640px) {
.hero { grid-template-columns: 1fr; gap: 28px; text-align: center; }
.hero-media { max-width: 260px; margin: 0 auto; width: 100%; }
.highlights { justify-items: center; }
.highlights li { padding-left: 0; }
.highlights li::before { display: none; }
}
.mark {
width: 56px;
height: 56px;
stroke: var(--accent);
fill: none;
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 0 14px rgba(247, 148, 29, .35));
margin-bottom: 14px;
}
h1 { font-size: 34px; letter-spacing: -.01em; margin-bottom: 10px; }
.tagline { max-width: 560px; margin: 0 0 16px; color: var(--text); font-size: 16px; }
@media (max-width: 640px) { .tagline { margin: 0 auto 16px; } }
.tagline strong { color: var(--accent); }
.disclaimer {
display: inline-block;
font-size: 12px;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 999px;
padding: 4px 14px;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 36px;
}
@media (max-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }
.card {
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
padding: 16px;
}
.card h2 {
font-size: 12px;
text-transform: uppercase;
letter-spacing: .08em;
color: var(--accent);
margin-bottom: 8px;
}
.card p { font-size: 13.5px; color: var(--muted); }
.setup { margin-bottom: 36px; }
.setup-grid {
display: grid;
grid-template-columns: 1fr 240px;
gap: 16px;
align-items: start;
}
.panel-shot img {
display: block;
width: 100%;
border: 1px solid var(--line);
border-radius: 14px;
background: var(--card);
}
.panel-shot figcaption {
margin-top: 8px;
font-size: 11.5px;
text-align: center;
color: var(--muted);
letter-spacing: .04em;
}
@media (max-width: 640px) {
.setup-grid { grid-template-columns: 1fr; }
.panel-shot { max-width: 260px; margin: 0 auto; width: 100%; }
}
.sec {
font-size: 12px;
text-transform: uppercase;
letter-spacing: .08em;
color: var(--muted);
margin-bottom: 12px;
}
.setup ol {
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
padding: 18px 18px 18px 38px;
display: grid;
gap: 10px;
font-size: 14.5px;
}
.setup li::marker { color: var(--accent); font-weight: 700; }
.note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.mono {
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: .92em;
color: var(--accent);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
footer {
text-align: center;
font-size: 11.5px;
color: var(--muted);
letter-spacing: .05em;
border-top: 1px solid var(--line);
padding-top: 18px;
}