:root {
    --bg-color: #000000;
    --card-bg: rgba(10, 10, 10, 0.8);
    /* increased opacity for readability over matrix */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;

    --brand-yellow: #FFFC00;
    --brand-text: #000000;

    --accent-primary: var(--brand-yellow);
    --border-color: #333333;
    --font-main: 'Inter', sans-serif;
    --modal-bg: rgba(10, 10, 10, 0.98);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Matrix Background Canvas */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.35;
    /* Subtle enough to read text over */
}

/* Ensure content is above canvas */
.container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Highlights */
.text-highlight {
    color: var(--brand-yellow);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 252, 0, 0.3);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--brand-yellow);
    text-decoration: none;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 252, 0, 0.5);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--brand-yellow);
}

/* Hero */
.hero {
    padding: 12rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: white;
}

.hero p.subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

/* Buttons */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-text);
    box-shadow: 0 0 25px rgba(255, 252, 0, 0.5);
    /* Stronger glow */
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: white;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: white;
    color: black;
}

.nav-highlight {
    background: var(--brand-yellow);
    color: black !important;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
}

/* Maker Section */
.maker-section {
    padding: 6rem 0;
}

.maker-card {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 252, 0, 0.2);
    border-radius: 40px;
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.maker-header {
    text-align: center;
    margin-bottom: 3rem;
}

.maker-header h2 {
    font-size: 3rem;
    font-weight: 900;
}

.maker-header p {
    color: var(--text-secondary);
    font-weight: 500;
}

.creator-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toggle-btn.active {
    background: var(--brand-yellow);
    color: black;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 15px rgba(255, 252, 0, 0.3);
}

.toggle-btn#toggle-claw.active {
    background: #FF3C00;
    border-color: #FF3C00;
    box-shadow: 0 0 15px rgba(255, 60, 0, 0.3);
}

.maker-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--brand-yellow);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    padding: 1.25rem;
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    background: rgba(255, 252, 0, 0.02);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.creator-result {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #333;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.creator-result.hidden {
    display: none;
}

.result-content h3 {
    color: var(--brand-yellow);
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 900;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Use Cases Section */
.use-cases-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #000, #111);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    background: rgba(255, 252, 0, 0.05);
    border-color: var(--brand-yellow);
    transform: translateY(-10px);
}

.use-case-image {
    font-size: 3rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--brand-yellow));
}

.use-case-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Ghost Avatar Glitch */
.ghost-avatar-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
    background: rgba(255, 252, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-yellow);
    box-shadow: 0 0 30px rgba(255, 252, 0, 0.2);
    overflow: hidden;
}

.ghost-glitch {
    width: 100px;
    height: 100px;
    background: var(--brand-yellow);
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C7.58 2 4 5.58 4 10v9h3v-2.12c0-.55.45-1 1-1s1 .45 1 1V21h6v-2.12c0-.55.45-1 1-1s1 .45 1 1V21h3v-9c0-4.42-3.58-8-8-8zm-3 9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm6 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C7.58 2 4 5.58 4 10v9h3v-2.12c0-.55.45-1 1-1s1 .45 1 1V21h6v-2.12c0-.55.45-1 1-1s1 .45 1 1V21h3v-9c0-4.42-3.58-8-8-8zm-3 9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm6 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"/></svg>') center/contain no-repeat;
    animation: glitchAnim 2s infinite linear alternate-reverse;
    filter: drop-shadow(0 0 15px var(--brand-yellow));
}

@keyframes glitchAnim {
    0% {
        transform: translate(0) scale(1);
        opacity: 1;
    }

    20% {
        transform: translate(-3px, 2px) scale(1.1);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(3px, -2px) scale(0.9);
        opacity: 0.8;
    }

    60% {
        transform: translate(-5px, -5px) scale(1.05);
        filter: contrast(2);
    }

    80% {
        transform: translate(5px, 5px) scale(0.95);
        opacity: 0.9;
    }

    100% {
        transform: translate(0) scale(1);
        opacity: 1;
    }
}

/* Claw Avatar Glitch */
.claw-avatar-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
    background: rgba(255, 60, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FF3C00;
    box-shadow: 0 0 30px rgba(255, 60, 0, 0.2);
    overflow: hidden;
}

.claw-glitch {
    width: 80px;
    height: 80px;
    background: #FF3C00;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2 2-2 2-2-2 2-2zm6 4c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm12 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 16c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm6 2l2 2-2 2-2-2 2-2z"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2 2-2 2-2-2 2-2zm6 4c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm12 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 16c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm6 2l2 2-2 2-2-2 2-2z"/></svg>') center/contain no-repeat;
    animation: clawGlitch 1.5s infinite linear alternate-reverse;
    filter: drop-shadow(0 0 15px #FF3C00);
}

@keyframes clawGlitch {
    0% {
        transform: translate(0) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }

    33% {
        transform: translate(-5px, 3px) rotate(-10deg) scale(1.1);
        filter: hue-rotate(45deg);
        opacity: 0.8;
    }

    66% {
        transform: translate(5px, -3px) rotate(10deg) scale(0.9);
        filter: hue-rotate(-45deg);
        opacity: 0.9;
    }

    100% {
        transform: translate(0) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
}

/* Features */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(20, 20, 20, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.2s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.feature-card p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Pricing */
.pricing-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(16px);
    border: 2px solid #333;
    border-radius: 30px;
    padding: 2.5rem;
    width: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--brand-yellow);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 252, 0, 0.15);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--brand-yellow);
    color: black;
    padding: 0.5rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.card-header {
    margin-bottom: 2rem;
    margin-top: 1rem;
    text-align: center;
}

.card-header h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-style: italic;
}

.price {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
}

.divider {
    height: 2px;
    background: #333;
    margin: 1.5rem 0;
}

.card-features li {
    margin-bottom: 1rem;
    color: #ccc;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.check-icon {
    color: var(--brand-yellow);
    margin-right: 1rem;
    font-weight: 900;
    font-size: 1.2rem;
}

.btn-outline {
    background: transparent;
    border: 3px solid #333;
    color: white;
    width: 100%;
}

.btn-outline:hover {
    border-color: white;
    background: white;
    color: black;
}

.full-width {
    width: 100%;
}

/* Footer */
/* Chat Specific Styles */
.chat-msg {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.4;
    font-size: 0.95rem;
    position: relative;
    animation: fadeInMsg 0.3s ease-out;
}

.chat-msg.system {
    color: #666;
    font-style: italic;
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.chat-msg.user {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-msg.claw {
    background: rgba(255, 252, 0, 0.1);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 0;
    border: 1px solid rgba(255, 252, 0, 0.2);
}

.chat-msg.claw::before {
    content: "CLAW";
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--brand-yellow);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth & Modal Styles */
.btn-login {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-login:hover {
    border-color: var(--brand-yellow);
    color: var(--brand-yellow);
}

.user-display {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #111;
    padding: 3rem;
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--brand-yellow);
    text-decoration: none;
    font-weight: 700;
}

footer {
    padding: 4rem 0;
    color: #666;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}