Files

294 lines
8.1 KiB
CSS

@import "tailwindcss";
/* ─── Hivegrid Design Tokens ──────────────────────────────────────────── */
:root {
/* Colors — Brand */
--accent-yellow: #F1B729;
--accent-yellow-dark: #3E2C0A;
--accent-yellow-light: #FFE082;
--accent-teal: #0D6E6E;
--accent-teal-hover: #0A5A5A;
--accent-teal-light: #E8F4F4;
--accent-orange: #E07B54;
--brand-primary: #5856D6;
/* Colors — Surface */
--surface: #FFFFFF;
--bg-primary: #FAFAFA;
--bg-muted: #F5F5F5;
--bg-white: #FFFFFF;
--container-bg: #F6F8FA;
--dark-bg: #30313D; /* fixed to the "Live" variant (dev A/B switch removed) */
--bg-dark: #0F1A2E;
--bg-dark-card: #1A2740;
/* Colors — Text */
--text-primary: #1A1A1A;
--text-secondary: #555555;
--text-tertiary: #888888;
--text-muted: #AAAAAA;
--text-disabled: #A3ACBA;
--text-on-dark: #C8D0DC;
--text-white: #FFFFFF;
/* Colors — Border */
--border-primary: #E5E5E5;
--border-neutral: #D5DBE1;
--border-light: #F0F0F0;
/* Colors — Badge */
--badge-bg: #F3EDFD;
/* Radius */
--radius-badge: 6px;
--radius-button: 6px;
--radius-small: 6px;
--radius-main: 8px;
--radius-medium: 12px;
--radius-large: 16px;
/* Spacing — Design scale */
--spacing-small: 16px;
--gap-s: 16px;
--gap-m: 24px;
--gap-l: 40px;
--spacing-element: 32px;
--spacing-content: 80px;
--spacing-section: 120px;
/* Layout */
--page-width: 1440px;
--content-width: 1200px;
--side-padding: 56px;
--side-padding-mobile: 20px;
--section-padding: 80px;
--section-padding-mobile: 48px;
--section-padding-large: 120px;
--hero-top-padding: 128px;
--hero-top-padding-mobile: 40px;
}
/* Responsive hero spacing — all pages get tighter spacing on mobile */
@media (max-width: 767px) {
:root {
--hero-top-padding: 40px;
}
}
/* ─── Tailwind v4 Theme Extension ─────────────────────────────────────── */
@theme inline {
/* Map CSS vars → Tailwind color tokens */
--color-accent-yellow: var(--accent-yellow);
--color-accent-yellow-dark: var(--accent-yellow-dark);
--color-accent-yellow-light: var(--accent-yellow-light);
--color-accent-teal: var(--accent-teal);
--color-accent-teal-hover: var(--accent-teal-hover);
--color-accent-teal-light: var(--accent-teal-light);
--color-accent-orange: var(--accent-orange);
--color-brand-primary: var(--brand-primary);
--color-surface: var(--surface);
--color-bg-primary: var(--bg-primary);
--color-bg-muted: var(--bg-muted);
--color-container-bg: var(--container-bg);
--color-dark-bg: var(--dark-bg);
--color-bg-dark: var(--bg-dark);
--color-text-primary: var(--text-primary);
--color-text-secondary: var(--text-secondary);
--color-text-tertiary: var(--text-tertiary);
--color-text-muted: var(--text-muted);
--color-text-on-dark: var(--text-on-dark);
--color-text-white: var(--text-white);
--color-border-primary: var(--border-primary);
--color-border-neutral: var(--border-neutral);
--color-badge-bg: var(--badge-bg);
/* Radius */
--radius-badge: var(--radius-badge);
--radius-button: var(--radius-button);
--radius-sm: var(--radius-small);
--radius-md: var(--radius-medium);
--radius-lg: var(--radius-large);
/* Font */
--font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
/* ─── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
box-sizing: border-box;
}
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}
body {
background: var(--surface);
color: var(--text-primary);
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.6;
}
/* Prevent long German words from overflowing on mobile.
Use overflow-wrap as safety net but NO auto-hyphens —
they produce ugly breaks like "Orga-nisiert".
Add ­ manually where breaks are acceptable. */
h1, h2, h3, h4 {
overflow-wrap: break-word;
word-break: break-word;
-webkit-hyphens: none;
hyphens: none;
}
/* ─── Utility Classes ──────────────────────────────────────────────────── */
.container-site {
width: 100%;
max-width: var(--content-width);
margin-inline: auto;
padding-inline: var(--side-padding-mobile);
}
@media (min-width: 1024px) {
.container-site {
padding-inline: var(--side-padding);
}
}
.section-pad {
padding-block: var(--section-padding-mobile);
}
@media (min-width: 1024px) {
.section-pad {
padding-block: var(--section-padding);
}
}
/* Section with full bleed but content contained */
.section-full {
width: 100%;
padding-inline: var(--side-padding-mobile);
}
.hero-ambient-bg {
background-repeat: no-repeat;
background-size: 152% 152%, 152% 152%, 138% 138%, 100% 100%;
background-position: 0% 0%, 100% 18%, 50% 26%, 0% 0%;
animation: hero-ambient-flow 14s ease-in-out infinite alternate;
}
@keyframes hero-ambient-flow {
0% {
background-position: 0% 0%, 100% 18%, 50% 26%, 0% 0%;
}
50% {
background-position: 7% 6%, 93% 33%, 48% 39%, 0% 0%;
}
100% {
background-position: 12% 10%, 88% 44%, 45% 54%, 0% 0%;
}
}
@keyframes accordion-progress-fill {
from {
transform: scaleX(0);
}
to {
transform: scaleX(1);
}
}
/* Chamfered (cut) corners for eyebrow badges — so they share the honeycomb-angled
corner language of the cards. Smaller cut than the cards (which use a 16px inline
clip-path) because badges are short. Buttons deliberately stay rounded. */
.chamfer-badge {
clip-path: polygon(
5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px),
calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px
);
}
/* Solution scroller — clickable screenshot frame. Single hover affordance: the
screenshot zooms in subtly + a yellow ring appears. The frame is chamfered, so
the ring can't be a box-shadow (clip-path clips box-shadows). Instead the frame
itself is the ring: it has a 2px padding and its background fades to yellow on
hover, while the inner chamfered layer (its own bg) covers the centre — so the
2px reveal traces the cut corners. Plain background swap (no inline var / no
@property) so it works in every engine, Safari included. */
.screenshot-frame {
background: var(--container-bg);
transition: background-color 0.3s ease;
}
.screenshot-frame:hover {
background: var(--accent-yellow);
}
.screenshot-frame img {
transition: opacity 0.5s ease, transform 0.55s ease;
}
.screenshot-frame:hover img {
transform: scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.screenshot-frame,
.screenshot-frame img,
.screenshot-frame:hover img {
transition: none;
transform: none;
}
.screenshot-frame:hover {
background: var(--accent-yellow);
}
}
@media (prefers-reduced-motion: reduce) {
.hero-ambient-bg {
animation: none;
}
}
@media (min-width: 1024px) {
.section-full {
padding-inline: var(--side-padding);
}
}
.footer-container {
width: 100%;
padding-inline: var(--side-padding-mobile);
}
.footer-inner {
padding: 40px 24px;
}
@media (min-width: 640px) {
.footer-inner {
padding: 56px;
}
}
@media (min-width: 1024px) {
.footer-container {
padding-inline: var(--side-padding);
}
}
.chat-scroll-hidden {
-ms-overflow-style: none;
scrollbar-width: none;
}
.chat-scroll-hidden::-webkit-scrollbar {
display: none;
}