fluxer-website/styles.css

589 lines
14 KiB
CSS

:root {
--bg: #09090d;
--bg-2: #0f0f16;
--surface: #14141d;
--surface-2: #1c1c28;
--border: rgba(255, 255, 255, 0.07);
--text: #ecebf5;
--muted: #9a9ab0;
--accent: #8b7cff;
--accent-2: #5eead4;
--accent-3: #f472b6;
--radius: 16px;
--max: 1120px;
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #b4a9ff; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
outline: 2px solid var(--accent-2);
outline-offset: 3px;
border-radius: 6px;
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
background: var(--surface-2);
padding: 0.1em 0.4em;
border-radius: 6px;
font-size: 0.92em;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.gradient-text {
background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
background-size: 200% auto;
animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
to { background-position: 200% center; }
}
/* ambient background */
.ambient {
position: fixed;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.orb {
position: absolute;
border-radius: 50%;
filter: blur(90px);
opacity: 0.35;
animation: drift 22s ease-in-out infinite alternate;
}
.orb-a { width: 46vw; height: 46vw; background: #4c3fd6; top: -14vw; left: -10vw; }
.orb-b { width: 40vw; height: 40vw; background: #0f766e; bottom: -12vw; right: -8vw; animation-duration: 28s; }
.orb-c { width: 30vw; height: 30vw; background: #9d174d; top: 40%; left: 45%; opacity: 0.18; animation-duration: 34s; }
@keyframes drift {
from { transform: translate(0, 0) scale(1); }
to { transform: translate(6vw, 4vw) scale(1.12); }
}
/* header */
.site-header {
position: sticky;
top: 0;
z-index: 10;
display: flex;
align-items: center;
gap: 1.5rem;
padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
background: rgba(9, 9, 13, 0.7);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border);
}
.brand {
display: inline-flex;
align-items: center;
gap: 0.6rem;
color: var(--text);
font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand-mark {
display: grid;
place-items: center;
width: 32px;
height: 32px;
border-radius: 10px;
background: linear-gradient(135deg, var(--accent), var(--accent-3));
color: #fff;
font-weight: 800;
}
.brand-text span { color: var(--muted); font-weight: 500; }
.site-nav {
display: flex;
gap: 1.25rem;
margin-left: auto;
}
.site-nav a {
color: var(--muted);
font-size: 0.95rem;
transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
/* buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.85rem 1.4rem;
border-radius: 12px;
font-weight: 650;
font-size: 1rem;
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
background: linear-gradient(135deg, var(--accent), #6d5cf0);
color: #fff;
box-shadow: 0 10px 30px -10px rgba(139, 124, 255, 0.7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 40px -10px rgba(139, 124, 255, 0.9); }
.btn-ghost {
background: rgba(255, 255, 255, 0.03);
border-color: var(--border);
color: var(--text);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.92rem; border-radius: 10px; }
.btn-small.btn-primary { box-shadow: none; }
.site-header .btn-small { background: var(--text); color: var(--bg); }
.site-header .btn-small:hover { color: var(--bg); }
/* layout */
main {
width: min(var(--max), 100% - 2.5rem);
margin: 0 auto;
}
.section {
padding: clamp(4rem, 9vw, 7rem) 0 0;
}
.section-head {
max-width: 680px;
margin-bottom: 2.5rem;
}
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
display: inline-block;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-2);
margin-bottom: 1rem;
}
.lead {
font-size: clamp(1.05rem, 1.6vw, 1.2rem);
color: var(--muted);
max-width: 580px;
}
/* hero */
.hero {
display: grid;
grid-template-columns: 1.05fr 1fr;
gap: clamp(2rem, 5vw, 4rem);
align-items: center;
padding: clamp(3.5rem, 9vw, 7rem) 0 1rem;
min-height: 80vh;
}
.cta-row {
display: flex;
flex-wrap: wrap;
gap: 0.85rem;
margin: 2rem 0;
}
.cta-center { justify-content: center; }
.badges {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
list-style: none;
padding: 0;
margin: 0;
}
.badges li {
font-size: 0.85rem;
color: var(--muted);
padding: 0.35rem 0.8rem;
border: 1px solid var(--border);
border-radius: 999px;
background: rgba(255, 255, 255, 0.02);
}
/* app mockup */
.mock {
position: relative;
border-radius: 18px;
background: var(--bg-2);
border: 1px solid var(--border);
box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 124, 255, 0.08);
overflow: hidden;
animation: float 7s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.mock-bar {
display: flex;
gap: 6px;
padding: 0.7rem 0.9rem;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.mock-bar span {
width: 10px;
height: 10px;
border-radius: 50%;
background: #3a3a4a;
}
.mock-body {
display: grid;
grid-template-columns: 56px 170px 1fr;
height: 360px;
}
.mock-servers {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.6rem;
padding: 0.9rem 0;
background: #0b0b11;
border-right: 1px solid var(--border);
}
.srv {
display: grid;
place-items: center;
width: 36px;
height: 36px;
border-radius: 12px;
background: var(--surface-2);
font-size: 0.85rem;
font-weight: 700;
color: var(--text);
transition: border-radius 0.3s var(--ease), background 0.3s;
}
.srv:hover { border-radius: 10px; }
.srv-1 { background: linear-gradient(135deg, var(--accent), #6d5cf0); }
.srv-2 { background: linear-gradient(135deg, var(--accent-2), #0f766e); }
.srv-3 { background: linear-gradient(135deg, var(--accent-3), #9d174d); }
.srv-add { color: var(--accent-2); border: 1px dashed rgba(94, 234, 212, 0.4); background: transparent; }
.mock-channels {
padding: 0.9rem 0.7rem;
background: var(--surface);
border-right: 1px solid var(--border);
}
.mock-title { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 0.7rem; }
.chan {
margin: 0;
padding: 0.35rem 0.5rem;
border-radius: 8px;
font-size: 0.85rem;
color: var(--muted);
}
.chan.active { background: rgba(139, 124, 255, 0.15); color: var(--text); }
.chan.voice::before { content: "\266A "; color: var(--accent-2); }
.mock-chat {
position: relative;
display: flex;
flex-direction: column;
gap: 0.9rem;
padding: 1rem;
}
.msg {
display: flex;
gap: 0.6rem;
opacity: 0;
transform: translateY(8px);
animation: msg-in 0.5s var(--ease) forwards;
}
.msg b { font-size: 0.85rem; }
.msg p { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.msg-1 { animation-delay: 0.4s; }
.msg-2 { animation-delay: 1.4s; }
.msg-3 { animation-delay: 2.4s; }
@keyframes msg-in {
to { opacity: 1; transform: translateY(0); }
}
.av {
flex: 0 0 32px;
height: 32px;
border-radius: 50%;
}
.av-a { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-b { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.av-c { background: linear-gradient(135deg, var(--accent-3), var(--accent)); }
.typing {
display: flex;
gap: 4px;
margin-top: auto;
padding: 0.4rem 0.6rem;
width: fit-content;
border-radius: 999px;
background: var(--surface-2);
opacity: 0;
animation: fade-in 0.4s 3.4s forwards;
}
.typing span {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--muted);
animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes fade-in { to { opacity: 1; } }
/* cards */
.cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
position: relative;
padding: 1.6rem;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--surface), var(--bg-2));
border: 1px solid var(--border);
transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
overflow: hidden;
}
.card::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 124, 255, 0.12), transparent 60%);
opacity: 0;
transition: opacity 0.4s;
pointer-events: none;
}
.card:hover {
transform: translateY(-4px);
border-color: rgba(139, 124, 255, 0.35);
box-shadow: 0 20px 40px -24px rgba(139, 124, 255, 0.5);
}
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card h3 { position: relative; }
.icon {
display: inline-grid;
place-items: center;
width: 42px;
height: 42px;
margin-bottom: 1rem;
border-radius: 12px;
background: rgba(139, 124, 255, 0.12);
color: var(--accent);
font-size: 1.2rem;
}
.app-card { display: flex; flex-direction: column; }
.app-card p { flex: 1; margin-bottom: 1.2rem; }
.text-link {
font-weight: 650;
color: var(--accent-2);
}
.text-link:hover { color: #99f6e4; }
.fine {
margin-top: 1.25rem;
color: var(--muted);
font-size: 0.92rem;
}
/* faq */
.faq {
max-width: 760px;
display: grid;
gap: 0.6rem;
}
details {
border: 1px solid var(--border);
border-radius: 14px;
background: var(--surface);
padding: 0 1.25rem;
transition: border-color 0.25s, background 0.25s;
}
details[open] {
border-color: rgba(139, 124, 255, 0.35);
background: var(--surface-2);
}
summary {
cursor: pointer;
list-style: none;
padding: 1.1rem 0;
font-weight: 650;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
content: "+";
font-size: 1.4rem;
color: var(--accent);
transition: transform 0.3s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p {
margin: 0 0 1.2rem;
color: var(--muted);
animation: fade-in 0.35s var(--ease);
}
/* final CTA */
.final {
margin-top: clamp(4rem, 9vw, 7rem);
padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
text-align: center;
border-radius: 24px;
border: 1px solid var(--border);
background:
radial-gradient(600px circle at 50% 0%, rgba(139, 124, 255, 0.25), transparent 70%),
var(--surface);
}
.final h2 { margin-bottom: 0.4rem; }
.final p { color: var(--muted); }
/* footer */
.site-footer {
width: min(var(--max), 100% - 2.5rem);
margin: 4rem auto 0;
padding: 2rem 0 3rem;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 0.9rem;
text-align: center;
}
.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.first-wave { display: inline-block; margin-left: 0.4rem; vertical-align: middle; opacity: 0.25; transition: opacity 0.4s var(--ease); }
.first-wave:hover { opacity: 1; }
.first-wave img { display: block; width: 20px; height: 20px; }
/* scroll reveal */
.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
opacity: 1;
transform: none;
}
/* about page */
.page-hero {
padding: clamp(3.5rem, 8vw, 6rem) 0 1rem;
max-width: 760px;
}
.page-hero .lead { max-width: 680px; }
.about-section {
display: grid;
gap: 1rem;
padding-top: 2.5rem;
}
.about-card {
padding: 1.75rem;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--surface), var(--bg-2));
border: 1px solid var(--border);
}
.about-card h2 {
font-size: clamp(1.35rem, 2.4vw, 1.8rem);
margin-bottom: 0.75rem;
}
.about-card p {
color: var(--muted);
margin: 0 0 0.9rem;
}
.about-card p:last-child { margin-bottom: 0; }
.about-card a { color: var(--accent-2); }
.about-card a:hover { color: #99f6e4; }
.site-nav a[aria-current="page"] { color: var(--text); }
/* responsive */
@media (max-width: 960px) {
.hero { grid-template-columns: 1fr; min-height: auto; }
.hero-visual { order: -1; }
.cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
.site-nav { display: none; }
.cards, .cards-3, .cards-2 { grid-template-columns: 1fr; }
.mock-body { grid-template-columns: 44px 1fr; height: auto; }
.mock-channels { display: none; }
.site-header .btn-small { margin-left: auto; }
}
/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
.reveal { opacity: 1; transform: none; }
}