:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141419;
    --text-main: #e0e0e0;
    --text-muted: #858595;
    --accent: #00f2ea;
    --accent-dim: rgba(0, 242, 234, 0.1);
    --danger: #ff4757;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --spacing-container: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* Info & Utility */
.highlight {
    color: var(--accent);
    font-weight: 600;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: var(--spacing-container);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-dim);
}

.btn-secondary {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--spacing-container);
    margin: 4rem auto;
    padding: 0 2rem;
    align-items: center;
    min-height: 80vh;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.badge {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Redacted Animation Text */
.redacted-text-anim {
    position: relative;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0 5px;
    white-space: nowrap;
}

.redacted-text-anim::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-out;
}

.hero:hover .redacted-text-anim::after {
    transform: scaleX(1);
}

.hero:hover .redacted-text-anim {
    color: transparent;
    /* Hide text when redacted */
    cursor: default;
}

/* Hero Visual - Document Preview */
.document-preview {
    background: var(--bg-card);
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 0.7;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero:hover .document-preview {
    transform: rotateY(0) rotateX(0);
}

.doc-line {
    height: 12px;
    background: #2a2a35;
    margin-bottom: 1rem;
    border-radius: 2px;
    width: 100%;
}

.doc-line.short {
    width: 60%;
}

.doc-line.redacted {
    background: var(--text-main);
    width: 80%;
    animation: pulse-redact 3s infinite;
}

@keyframes pulse-redact {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

.floating-shield {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    padding: 1rem;
    border-radius: 50%;
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-dim);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: #0f0f12;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 8rem 2rem;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps-list {
    list-style: none;
    margin-top: 3rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.step-item.active {
    opacity: 1;
}

.step-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.2rem;
    padding-top: 0.2rem;
}

.visual-side {
    background: var(--bg-card);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #333;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid #222;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--spacing-container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.brand h4 {
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.links {
    display: flex;
    gap: 2rem;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
}

.links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.status-indicator {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }

    .hero-sub {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .visual-side {
        display: none;
        /* Hide complex animation on mobile for simplicity */
    }
}

/* Pricing Section */
.pricing {
    padding: 8rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid #222;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: var(--spacing-container);
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-muted);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.05);
    background: linear-gradient(180deg, rgba(0, 242, 234, 0.03) 0%, var(--bg-card) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

.full-width {
    width: 100%;
    text-align: center;
    display: block;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.links-group h5 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}