/* Fated LLC — style.css */

/* ─── Variables ───────────────────────────────────────────────────────────────*/
:root {
    --bg:        #050508;
    --bg2:       #0a0a14;
    --bg3:       #10101e;
    --cyan:      #00d4ff;
    --cyan-dim:  rgba(0,212,255,0.12);
    --purple:    #7b2fff;
    --purple-dim:rgba(123,47,255,0.12);
    --orange:    #ff6b35;
    --orange-dim:rgba(255,107,53,0.12);
    --green:     #00ff88;
    --green-dim: rgba(0,255,136,0.12);
    --text:      #dde3f0;
    --text-dim:  #5a6278;
    --border:    rgba(255,255,255,0.07);
    --glass:     rgba(255,255,255,0.025);
    --font:      'Space Grotesk', system-ui, sans-serif;
    --mono:      'JetBrains Mono', 'Fira Code', monospace;
    --radius:    12px;
    --radius-lg: 20px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
*, *::before, *::after { cursor: none !important; }

/* ─── Particle Canvas ─────────────────────────────────────────────────────────*/
#fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── Custom Cursor ───────────────────────────────────────────────────────────*/
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
    transition: background 0.2s, width 0.15s, height 0.15s;
    will-change: transform;
}
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    border: 1px solid rgba(0,212,255,0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    will-change: transform;
}
.cursor-dot.cursor-hover  { width: 12px; height: 12px; background: var(--purple); box-shadow: 0 0 16px var(--purple); }
.cursor-ring.cursor-hover { width: 48px; height: 48px; border-color: rgba(123,47,255,0.5); }

/* ─── Layout helpers ──────────────────────────────────────────────────────────*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.section-header p  { color: var(--text-dim); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(0,212,255,0.25);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
}

/* ─── Scroll Reveal ───────────────────────────────────────────────────────────*/
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Navigation ──────────────────────────────────────────────────────────────*/
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s, border-bottom-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(5,5,8,0.85);
    backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom-color: var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    -webkit-text-fill-color: var(--text-dim);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
    letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--text); }
.nav-github {
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text) !important;
    transition: border-color 0.2s, background 0.2s !important;
}
.nav-github:hover { border-color: var(--cyan); background: var(--cyan-dim); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────────────────────────────*/
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 6px 18px;
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 99px;
    margin-bottom: 32px;
    animation: fadeDown 0.8s ease both;
}
.hero-title {
    font-size: clamp(5rem, 16vw, 13rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin-bottom: 28px;
    animation: fadeDown 0.8s 0.1s ease both;
}
.glitch {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #fff 30%, var(--cyan) 60%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}
.glitch::before {
    left: 3px;
    -webkit-text-fill-color: var(--purple);
    background: none;
    animation: glitch1 4s infinite linear;
}
.glitch::after {
    left: -3px;
    -webkit-text-fill-color: var(--cyan);
    background: none;
    animation: glitch2 4s infinite linear;
}
.hero-tagline {
    font-size: 1.25rem;
    color: var(--cyan);
    font-family: var(--mono);
    min-height: 1.8em;
    margin-bottom: 20px;
    animation: fadeDown 0.8s 0.2s ease both;
}
.hero-tagline::after {
    content: '|';
    animation: blink 1s step-end infinite;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 44px;
    animation: fadeDown 0.8s 0.3s ease both;
}
.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 72px;
    animation: fadeDown 0.8s 0.4s ease both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 24px rgba(0,212,255,0.3);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(0,212,255,0.5); }
.btn-secondary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 24px rgba(123,47,255,0.3);
}
.btn-secondary:hover { box-shadow: 0 0 40px rgba(123,47,255,0.5); }
.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-dim);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeDown 0.8s 0.5s ease both;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--cyan);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
    display: block;
}
/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    animation: fadeDown 1s 0.9s ease both;
}
.hero-scroll span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--cyan), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ─── Products ────────────────────────────────────────────────────────────────*/
.products { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.product-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.25s;
    transform-style: preserve-3d;
}
.product-card:hover { border-color: rgba(255,255,255,0.14); }
.card-glow {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    filter: blur(80px);
    top: -80px; right: -60px;
    pointer-events: none;
    opacity: 0.18;
    transition: opacity 0.4s;
}
.product-card:hover .card-glow { opacity: 0.32; }
.card-glow-cyan   { background: var(--cyan); }
.card-glow-purple { background: var(--purple); }
.card-content { padding: 36px; position: relative; z-index: 1; }
.card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,0.2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: var(--cyan);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon-purple { background: var(--purple-dim); border-color: rgba(123,47,255,0.2); color: var(--purple); }
.card-content h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.card-tagline { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.card-desc { color: var(--text-dim); font-size: 0.93rem; line-height: 1.6; margin-bottom: 20px; }
.feature-list { margin-bottom: 28px; }
.feature-list li {
    font-size: 0.88rem;
    color: var(--text-dim);
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
}
.feature-list li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.65rem;
    top: 7px;
}
.card-links { display: flex; gap: 16px; flex-wrap: wrap; }
.card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.2s;
}
.card-link:hover { color: var(--text); }
.card-link.primary { color: var(--cyan); }
.card-link.primary:hover { color: #fff; }

/* ─── Arsenal ─────────────────────────────────────────────────────────────────*/
.arsenal { background: var(--bg); }
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.arsenal-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.3s, transform 0.25s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.arsenal-card:hover { border-color: rgba(255,255,255,0.14); }
.arsenal-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.arsenal-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}
.arsenal-icon svg { width: 20px; height: 20px; }
.arsenal-icon-orange { background: var(--orange-dim); border-color: rgba(255,107,53,0.18); color: var(--orange); }
.arsenal-icon-green  { background: var(--green-dim);  border-color: rgba(0,255,136,0.18);  color: var(--green); }
.arsenal-card h3 { font-size: 1rem; font-weight: 700; font-family: var(--mono); }
.arsenal-card p  { font-size: 0.87rem; color: var(--text-dim); line-height: 1.6; flex: 1; }
.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-family: var(--mono);
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-dim);
    margin-top: 2px;
    margin-right: 4px;
}
.badge-rust { color: var(--orange); border-color: rgba(255,107,53,0.2); background: var(--orange-dim); }

/* Code block */
.code-block {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.8rem;
}
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.7rem;
    color: var(--text-dim);
}
.code-lang { color: var(--cyan); }
.code-block pre { padding: 14px; overflow-x: auto; }
.code-block code { line-height: 1.7; }
.kw   { color: var(--purple); }
.key  { color: var(--cyan); }
.str  { color: var(--green); }
.bool { color: var(--orange); }
.comment { color: #4a5060; }
.arsenal-links { display: flex; gap: 20px; }
.arsenal-link { font-size: 0.83rem; font-weight: 600; color: var(--text-dim); transition: color 0.2s; }
.arsenal-link:hover { color: var(--cyan); }

/* ─── Forensics Feature ───────────────────────────────────────────────────────*/
.forensics { background: var(--bg2); }
.forensics-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.forensics-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 20px; }
.forensics-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.forensics-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.ff-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; }
.ff-icon { color: var(--cyan); font-size: 0.65rem; margin-top: 5px; flex-shrink: 0; }

/* Engine grid */
.engine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.engine-chip {
    font-size: 0.72rem;
    font-family: var(--mono);
    padding: 5px 11px;
    border-radius: 6px;
    border: 1px solid rgba(0,212,255,0.18);
    background: rgba(0,212,255,0.06);
    color: var(--cyan);
    animation: chipEntry 0.5s ease both;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.engine-chip:hover { background: rgba(0,212,255,0.14); border-color: rgba(0,212,255,0.35); }

/* ─── About ───────────────────────────────────────────────────────────────────*/
.about { background: var(--bg); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-inner h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 20px; }
.about-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
.about-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.about-link { font-size: 0.9rem; color: var(--cyan); transition: opacity 0.2s; }
.about-link:hover { opacity: 0.7; }
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.value-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.3s;
}
.value-card:hover { border-color: rgba(255,255,255,0.14); }
.value-icon { font-size: 1.4rem; color: var(--cyan); margin-bottom: 10px; }
.value-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.value-card p  { font-size: 0.83rem; color: var(--text-dim); line-height: 1.55; }

/* ─── Footer ──────────────────────────────────────────────────────────────────*/
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 72px 0 40px;
    position: relative;
    z-index: 1;
}
.footer-inner { display: flex; gap: 64px; justify-content: space-between; }
.footer-brand { flex-shrink: 0; }
.footer-logo {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 24px; display: block; }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.footer-col h5 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.footer-col a { font-size: 0.87rem; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

/* ─── Legal pages ─────────────────────────────────────────────────────────────*/
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    position: relative;
    z-index: 1;
}
.legal-page h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; }
.legal-page .legal-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 56px;
    font-family: var(--mono);
}
.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 40px 0 12px;
    color: var(--cyan);
}
.legal-page p, .legal-page li { font-size: 0.93rem; color: var(--text-dim); line-height: 1.75; }
.legal-page ul { padding-left: 20px; list-style: disc; margin: 12px 0; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Keyframes ───────────────────────────────────────────────────────────────*/
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50%       { transform: scaleY(0.6); opacity: 0.15; }
}
@keyframes glitch1 {
    0%,89%,100% { clip-path: none; opacity: 0; }
    90% { clip-path: rect(22px,9999px,38px,0); opacity: 0.7; }
    91% { clip-path: rect(8px,9999px,18px,0);  opacity: 0.7; }
    92% { clip-path: rect(50px,9999px,65px,0); opacity: 0.7; }
    93%,95% { clip-path: none; opacity: 0; }
    96% { clip-path: rect(12px,9999px,28px,0); opacity: 0.7; }
}
@keyframes glitch2 {
    0%,85%,100% { clip-path: none; opacity: 0; }
    86% { clip-path: rect(70px,9999px,85px,0); opacity: 0.6; }
    87% { clip-path: rect(35px,9999px,52px,0); opacity: 0.6; }
    88% { clip-path: none; opacity: 0; }
}
@keyframes chipEntry {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ─── Responsive ──────────────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
    .arsenal-grid { grid-template-columns: 1fr 1fr; }
    .about-values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .products-grid  { grid-template-columns: 1fr; }
    .arsenal-grid   { grid-template-columns: 1fr; }
    .forensics-inner{ grid-template-columns: 1fr; }
    .about-inner    { grid-template-columns: 1fr; }
    .about-values   { grid-template-columns: 1fr 1fr; }
    .footer-inner   { flex-direction: column; gap: 40px; }
    .footer-links   { gap: 32px; }
    .hero-stats     { gap: 28px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(5,5,8,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 20px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .about-values { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 2rem; }
}
/* Hide cursor on touch devices */
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
    *, *::before, *::after { cursor: auto !important; }
}
