redactai / styles.css
Flamki's picture
Upload folder using huggingface_hub
4c1fb5d verified
Raw
History Blame Contribute Delete
19.3 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');
:root {
--bg-primary: #000000;
--bg-secondary: #0a0a0a;
--bg-card: rgba(10, 10, 10, 0.7);
--bg-card-hover: rgba(20, 20, 20, 0.8);
--glass: rgba(255,255,255,0.02);
--glass-border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.15);
--text-primary: #ffffff;
--text-secondary: #a0a0a0;
--text-muted: #555555;
--accent: #ffffff;
--accent-light: #e0e0e0;
--accent-glow: transparent;
--danger: #ff4545;
--danger-bg: rgba(255,69,69,0.1);
--success: #32d74b;
--success-bg: rgba(50,215,75,0.1);
--warning: #ffd60a;
--warning-bg: rgba(255,214,10,0.1);
--info: #0a84ff;
--info-bg: rgba(10,132,255,0.1);
--radius: 12px;
--radius-sm: 8px;
--radius-xs: 4px;
--shadow-premium: 0 0 0 1px var(--glass-border), 0 4px 24px -8px rgba(0,0,0,0.8);
--shadow-hover: 0 0 0 1px var(--border-strong), 0 8px 32px -8px rgba(0,0,0,1);
--transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.2);
}
body.theme-light ::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.15);
}
body.theme-light ::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.25);
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.03em; }
/* ===== ICONS ===== */
.lucide {
width: 1em; height: 1em;
stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
display: inline-block; vertical-align: middle;
}
/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background-image:
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: 60px 60px;
}
.bg-noise {
position: fixed; inset: 0; z-index: 1; pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E");
opacity: 0.6;
mix-blend-mode: overlay;
}
.bg-glow {
position: fixed; z-index: 0; pointer-events: none;
width: 800px; height: 800px; border-radius: 50%;
filter: blur(140px); opacity: 0.12;
animation: bg-drift 20s infinite alternate ease-in-out;
}
@keyframes bg-drift {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(5vw, 10vh) scale(1.1); }
}
.bg-glow--purple {
top: -20vh; right: -10vw;
background: radial-gradient(circle, #7e22ce, transparent 60%);
}
.bg-glow--cyan {
bottom: -20vh; left: -10vw;
background: radial-gradient(circle, #0ea5e9, transparent 60%);
animation-duration: 25s;
animation-direction: alternate-reverse;
}
/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
/* ===== NAVBAR ===== */
.navbar {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
padding: 16px 0;
background: rgba(10,10,15,0.8);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--glass-border);
transition: var(--transition);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar__logo-icon {
width: 36px; height: 36px; border-radius: var(--radius-xs);
background: linear-gradient(135deg, var(--accent), var(--cyan));
display: flex; align-items: center; justify-content: center;
font-size: 18px; font-weight: 800; color: white;
}
.navbar__logo-text { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.navbar__logo-text span { color: var(--accent-light); }
.navbar__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar__links a {
color: var(--text-secondary); text-decoration: none; font-size: 14px;
font-weight: 500; transition: var(--transition);
}
.navbar__links a:hover { color: var(--text-primary); }
/* ===== MEGA DROPDOWN MENU ===== */
.navbar__links li.has-dropdown {
height: 100%;
display: flex;
align-items: center;
padding: 24px 0;
margin: -24px 0;
}
.navbar__links li.has-dropdown > a {
display: flex;
align-items: center;
gap: 4px;
height: 100%;
}
.navbar__links li.has-dropdown > a i {
width: 14px;
height: 14px;
transition: transform 0.2s;
}
.navbar__links li.has-dropdown:hover > a i {
transform: rotate(180deg);
}
.dropdown-menu {
position: absolute;
top: calc(100% + 16px);
left: 50%;
transform: translateX(-50%) translateY(10px);
background: #141419;
border: 1px solid var(--glass-border);
border-top: none;
border-radius: 0 0 24px 24px;
padding: 32px 40px;
box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
opacity: 0;
visibility: hidden;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 100;
width: max-content;
pointer-events: none;
}
/* Invisible bridge to prevent hover loss when moving mouse down */
.dropdown-menu::before {
content: "";
position: absolute;
top: -24px;
left: 0;
right: 0;
height: 24px;
background: transparent;
}
.navbar__links li.has-dropdown:hover .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
pointer-events: auto;
}
.dropdown-grid {
display: flex;
gap: 48px;
}
.dropdown-col {
display: flex;
flex-direction: column;
gap: 16px;
min-width: 200px;
}
.dropdown-title {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
font-weight: 600;
margin-bottom: 4px;
padding-left: 8px;
}
.dropdown-link {
display: flex !important;
align-items: flex-start !important;
gap: 12px !important;
padding: 8px !important;
border-radius: 8px !important;
transition: background 0.2s !important;
text-decoration: none !important;
}
.dropdown-link:hover {
background: var(--glass) !important;
}
.dropdown-icon {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: rgba(255, 255, 255, 0.05);
border-radius: 6px;
color: #fff;
flex-shrink: 0;
}
.dropdown-icon i {
width: 16px !important;
height: 16px !important;
transform: none !important;
}
.dropdown-text {
display: flex;
flex-direction: column;
gap: 2px;
}
.dropdown-name {
font-size: 14px;
font-weight: 600;
color: var(--text-primary) !important;
}
.dropdown-desc {
font-size: 13px;
color: var(--text-secondary) !important;
line-height: 1.4;
}
/* ===== BUTTONS ===== */
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 12px 24px; border-radius: var(--radius-sm);
font-family: inherit; font-size: 14px; font-weight: 600;
cursor: pointer; border: none; transition: var(--transition);
text-decoration: none;
}
.btn--primary {
background: var(--text-primary);
color: var(--bg-primary);
box-shadow: 0 0 0 1px var(--text-primary);
letter-spacing: -0.01em;
}
.btn--primary:hover {
transform: translateY(-1px);
background: #f0f0f0;
box-shadow: 0 0 0 1px #f0f0f0, 0 8px 24px -4px rgba(255,255,255,0.2);
}
.btn--primary:active { transform: scale(0.98); }
.btn--outline {
background: transparent; color: var(--text-primary);
border: 1px solid var(--glass-border);
}
.btn--outline:hover { background: var(--glass); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--accent-light); padding: 8px 16px; }
.btn--ghost:hover { background: var(--glass); }
.btn--large { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn--small { padding: 8px 16px; font-size: 13px; }
.btn--danger { background: var(--danger-bg); color: var(--danger); }
.btn--danger:hover { background: rgba(255,107,107,0.2); }
/* ===== HERO ===== */
.hero {
padding: 160px 0 100px; text-align: center;
position: relative;
}
.hero__badge {
display: inline-flex; align-items: center; gap: 8px;
padding: 8px 16px; border-radius: 100px;
background: var(--glass); border: 1px solid var(--glass-border);
font-size: 13px; color: var(--accent-light); font-weight: 500;
margin-bottom: 24px;
}
.hero__badge .dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--success);
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__title {
font-size: clamp(48px, 8vw, 84px); font-weight: 900;
line-height: 1.05; margin-bottom: 24px;
color: var(--text-primary);
letter-spacing: -0.05em;
}
.hero__title .highlight {
color: var(--text-secondary);
}
.hero__subtitle {
font-size: 18px; color: var(--text-secondary); max-width: 600px;
margin: 0 auto 40px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ===== STATS BAR ===== */
.stats-bar {
display: flex; justify-content: center; gap: 48px;
margin-top: 60px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__value { font-size: 32px; font-weight: 800; color: var(--accent-light); }
.stat__label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section__header { text-align: center; margin-bottom: 60px; }
.section__label {
font-size: 13px; font-weight: 600; text-transform: uppercase;
letter-spacing: 2px; color: var(--accent-light); margin-bottom: 12px;
}
.section__title { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section__desc { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
/* ===== APP / DEMO ===== */
.app-card {
background: var(--bg-secondary);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
overflow: hidden;
}
.app-card__header {
display: flex; align-items: center; justify-content: space-between;
padding: 16px 24px; border-bottom: 1px solid var(--glass-border);
}
.app-card__title { font-size: 14px; font-weight: 600; }
.app-card__actions { display: flex; gap: 8px; }
.editor-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
@media (max-width: 768px) { .editor-layout { grid-template-columns: 1fr; } }
.editor-pane { padding: 24px; position: relative; }
.editor-pane + .editor-pane { border-left: 1px solid var(--glass-border); }
@media (max-width: 768px) {
.editor-pane + .editor-pane { border-left: none; border-top: 1px solid var(--glass-border); }
}
.editor-pane__label {
font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
color: var(--text-muted); font-weight: 600; margin-bottom: 12px;
}
.editor-pane textarea {
width: 100%; height: 320px; resize: none;
background: transparent; border: none; outline: none;
color: var(--text-primary); font-family: 'JetBrains Mono', monospace;
font-size: 14px; line-height: 1.8;
}
.editor-pane textarea::placeholder { color: var(--text-muted); }
.output-area {
font-family: 'JetBrains Mono', monospace;
font-size: 14px; line-height: 1.8;
min-height: 320px; white-space: pre-wrap; word-break: break-word;
}
/* PII highlights */
.pii-tag {
padding: 2px 8px; border-radius: 4px; font-weight: 600;
font-size: 13px; cursor: default; position: relative;
transition: var(--transition);
}
.pii-tag:hover { filter: brightness(1.3); }
.pii-tag--email { background: var(--info-bg); color: var(--info); }
.pii-tag--phone { background: var(--success-bg); color: var(--success); }
.pii-tag--name { background: rgba(244,114,182,0.15); color: var(--pink); }
.pii-tag--id { background: var(--danger-bg); color: var(--danger); }
.pii-tag--card { background: var(--warning-bg); color: var(--warning); }
.pii-tag--address { background: rgba(251,146,60,0.15); color: var(--orange); }
.pii-tag--ip { background: rgba(34,211,238,0.15); color: var(--cyan); }
.pii-tag--date { background: rgba(162,155,254,0.15); color: var(--accent-light); }
/* ===== DETECTED ENTITIES PANEL ===== */
.entities-panel {
margin-top: 24px; padding: 20px 24px;
background: var(--bg-secondary); border: 1px solid var(--glass-border);
border-radius: var(--radius);
}
.entities-panel__title {
font-size: 14px; font-weight: 600; margin-bottom: 16px;
display: flex; align-items: center; gap: 8px;
}
.entities-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.entity-chip {
display: flex; align-items: center; gap: 6px;
padding: 6px 14px; border-radius: 100px; font-size: 13px;
font-weight: 500; border: 1px solid var(--glass-border);
background: var(--glass); transition: var(--transition);
}
.entity-chip__count {
width: 22px; height: 22px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700;
}
.entity-chip--email .entity-chip__count { background: var(--info-bg); color: var(--info); }
.entity-chip--phone .entity-chip__count { background: var(--success-bg); color: var(--success); }
.entity-chip--name .entity-chip__count { background: rgba(244,114,182,0.15); color: var(--pink); }
.entity-chip--id .entity-chip__count { background: var(--danger-bg); color: var(--danger); }
.entity-chip--card .entity-chip__count { background: var(--warning-bg); color: var(--warning); }
.entity-chip--address .entity-chip__count { background: rgba(251,146,60,0.15); color: var(--orange); }
.entity-chip--ip .entity-chip__count { background: rgba(34,211,238,0.15); color: var(--cyan); }
.entity-chip--date .entity-chip__count { background: rgba(162,155,254,0.15); color: var(--accent-light); }
/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
padding: 32px; border-radius: var(--radius);
background: var(--bg-card); border: none;
box-shadow: var(--shadow-premium);
backdrop-filter: blur(20px);
position: relative; overflow: hidden;
transition: var(--transition);
}
.feature-card::after {
content: ''; position: absolute; inset: 0;
background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 70%);
pointer-events: none;
}
.feature-card:hover {
background: var(--bg-card-hover);
transform: translateY(-4px);
box-shadow: var(--shadow-hover);
}
.feature-card__icon {
width: 48px; height: 48px; border-radius: var(--radius-sm);
display: flex; align-items: center; justify-content: center;
font-size: 22px; margin-bottom: 20px;
}
.feature-card__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pricing-card {
padding: 36px; border-radius: var(--radius);
background: var(--bg-card); border: none;
box-shadow: var(--shadow-premium);
backdrop-filter: blur(20px);
transition: var(--transition); position: relative;
overflow: hidden;
}
.pricing-card::after {
content: ''; position: absolute; inset: 0;
background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
pointer-events: none;
}
.pricing-card--popular {
box-shadow: 0 0 0 1px var(--text-secondary), 0 8px 32px -8px rgba(255,255,255,0.1);
background: var(--bg-secondary);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pricing-card__name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pricing-card__desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-card__price { font-size: 48px; font-weight: 800; margin-bottom: 4px; }
.pricing-card__price span { font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.pricing-card__period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-card__features { list-style: none; margin-bottom: 32px; }
.pricing-card__features li {
padding: 8px 0; font-size: 14px; color: var(--text-secondary);
display: flex; align-items: center; gap: 10px;
}
.pricing-card__features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }
/* ===== FOOTER ===== */
.footer {
padding: 40px 0; border-top: 1px solid var(--glass-border);
text-align: center; font-size: 13px; color: var(--text-muted);
}
/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.6s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
/* ===== TOGGLE ===== */
.toggle-group {
display: inline-flex; background: var(--glass); border: 1px solid var(--glass-border);
border-radius: var(--radius-sm); overflow: hidden;
}
.toggle-group__btn {
padding: 8px 20px; font-size: 13px; font-weight: 500;
background: transparent; border: none; color: var(--text-secondary);
cursor: pointer; transition: var(--transition); font-family: inherit;
}
.toggle-group__btn.active {
background: var(--accent); color: white;
}
/* ===== MOBILE ===== */
@media (max-width: 640px) {
.hero__title { font-size: 32px; }
.stats-bar { gap: 24px; }
.navbar__links { display: none; }
.pricing-grid { grid-template-columns: 1fr; }
.features-grid { grid-template-columns: 1fr; }
}
/* ===== ANIMATED LOGO ===== */
.logo-svg {
cursor: pointer;
overflow: visible;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-bars rect {
transition: height 0.3s ease, y 0.3s ease;
transform-origin: center;
}
.logo-redaction {
transition: width 0.3s cubic-bezier(0.8, 0, 0.2, 1), x 0.3s cubic-bezier(0.8, 0, 0.2, 1);
}
.navbar__logo.is-animating .logo-svg {
transform: scale(0.95);
}
.navbar__logo.is-animating .logo-redaction {
width: 40px;
x: 4px;
fill: #fff;
box-shadow: 0 0 15px rgba(255,255,255,0.4);
}
.navbar__logo.is-animating .logo-bars rect:nth-child(1) { height: 12px; y: 18px; }
.navbar__logo.is-animating .logo-bars rect:nth-child(2) { height: 16px; y: 16px; }
.navbar__logo.is-animating .logo-bars rect:nth-child(3) { height: 10px; y: 19px; }
.navbar__logo.is-animating .logo-bars rect:nth-child(4) { height: 14px; y: 17px; }