:root {
    --bg-dark: #1a1a1a; /* Dark charcoal */
    --primary: #007bff;      /* Professional blue */
    --secondary: #6c757d;    /* Muted gray */
    --accent: #28a745;       /* Subtle green for success/highlight */
    --think: #6f42c1;        /* Muted purple */
    --success: #28a745;      /* Green for success messages */
    --error: #dc3545;        /* Red for error messages */
    --muted: #adb5bd;        /* Lighter gray for muted text */
    --text-main: #f8f9fa;    /* Off-white for main text */
    --text-dim: #ced4da;     /* Lighter gray for dim text */
    --glass-bg: rgba(255, 255, 255, 0.02); /* Very subtle transparent white */
    --glass-border: rgba(255, 255, 255, 0.08); /* Fainter border */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2; /* Toned down opacity */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Removed @keyframes float */
/* Removed @keyframes pulse-glow */
/* Removed @keyframes glitch */
/* Removed @keyframes border-flow */

@keyframes reveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px); /* Reduced blur */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtler shadow */
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(10px); /* Reduced blur */
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.glass-nav:hover {
    border-bottom: 1px solid var(--primary); /* Subtle hover border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtler hover shadow */
}

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

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    position: relative;
    cursor: default;
    /* Removed glitch animation on hover */
    color: var(--text-main); /* Default color */
}

.logo:hover {
    color: var(--primary); /* Simple color change on hover */
}

.logo span { color: var(--primary); transition: color 0.3s; }
.logo:hover span { color: var(--primary); } /* Keep primary color on hover for span */

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s; /* Only color transition */
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, box-shadow 0.2s; /* Simplified transition */
}

.btn-primary:hover {
    background: #0056b3; /* Darker shade on hover */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4); /* Subtler glow */
    transform: none; /* Removed transform */
}

.btn-primary::after {
    /* Removed ::after pseudo-element for gradient effect */
    content: none;
}

.btn-primary:hover::after {
    /* Removed ::after hover effect */
    content: none;
}

.hero {
    padding: 120px 0 30px;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
    color: var(--text-main); /* Solid color instead of gradient */
    /* Removed -webkit-background-clip and -webkit-text-fill-color */
    animation: reveal 1s cubic-bezier(0, 0, 0.2, 1) forwards;
}

.hero h1 span { 
    color: var(--primary); /* Solid primary color */
    /* Removed -webkit-background-clip and -webkit-text-fill-color */
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.5;
    opacity: 0;
    animation: reveal 1s 0.2s cubic-bezier(0, 0, 0.2, 1) forwards;
}

.provider-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: reveal 1s 0.4s cubic-bezier(0, 0, 0.2, 1) forwards;
}

.provider-bar span {
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.01); /* Lighter background */
}

.provider-bar span:hover {
    border-color: var(--primary);
    color: var(--text-main);
    transform: none; /* Removed transform */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Subtler shadow */
}

.terminal-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); /* Subtler shadow */
    border: 1px solid var(--glass-border);
    opacity: 0;
    animation: reveal 1s 0.6s cubic-bezier(0, 0, 0.2, 1) forwards; /* Removed pulse-glow */
    transform-origin: center;
}

.terminal-header {
    background: #1e1e1e; /* Slightly different header bg */
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    /* Removed transform transition */
}

.dots:hover span:nth-child(1),
.dots:hover span:nth-child(2),
.dots:hover span:nth-child(3) {
    transform: none; /* Removed hover transform */
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 15px 20px;
    height: 320px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.9); /* Slightly less opaque */
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #222; /* Darker scrollbar track */
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #555; /* Darker scrollbar thumb */
    border-radius: 4px;
}

.line { margin-bottom: 3px; }
.prompt { color: var(--primary); margin-right: 8px; /* Removed text-shadow */ }
.cursor {
    display: inline-block;
    width: 8px;
    height: 17px;
    background: var(--primary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    /* Removed box-shadow */
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-logo {
    color: var(--secondary); /* Used secondary color */
    font-size: 9px;
    margin: 10px 0;
    line-height: 1.1;
    /* Removed text-shadow */
    /* Removed glitch animation */
}

.thought { color: var(--think); font-style: italic; opacity: 0.8; }
.tool-tag { background: rgba(0, 123, 255, 0.1); color: var(--primary); padding: 0 4px; border-radius: 3px; font-size: 11px; border: 1px solid rgba(0, 123, 255, 0.3); } /* Changed accent to primary color */

.features { padding: 80px 0; position: relative; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; perspective: 1000px; }

.card { 
    padding: 30px; 
    border-radius: 12px; 
    transition: all 0.3s ease-out; /* Smoother transition */
    opacity: 0;
    transform: translateY(20px); /* Reduced initial transform */
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover { 
    transform: translateY(-5px); /* Subtler transform */
    border-color: var(--primary); 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* Subtler shadow */
}

.card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.8rem; 
    color: var(--primary); 
    display: inline-block;
}

.card:hover h3 {
    text-shadow: none; /* Removed text-shadow */
}

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

.commands { padding: 60px 0; background: none; /* Removed gradient background */ }
.command-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 35px; }

.cmd-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 1rem; 
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg); /* Use glass-bg for consistency */
    transition: all 0.2s ease-out; /* Smoother transition */
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px); /* Reduced initial transform */
}

.cmd-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.cmd-item:hover {
    background: rgba(255,255,255,0.03); /* Subtle hover background */
    border-color: var(--primary); /* Primary color on hover */
    transform: translateX(3px); /* Subtler transform */
}

.cmd-item code { 
    color: var(--primary); /* Primary color for code */
    font-weight: bold; 
    background: rgba(0, 123, 255, 0.1); /* Use primary color for code background */
    padding: 5px 10px; 
    border-radius: 6px; 
    font-size: 0.9rem; 
    border: 1px solid rgba(0, 123, 255, 0.2); /* Use primary color for code border */
    min-width: 140px;
    text-align: center;
}

.cmd-item:hover code {
    box-shadow: none; /* Removed box-shadow */
}

.cmd-item span { color: var(--text-dim); font-size: 0.9rem; }


.install { 
    padding: 60px 0; 
    text-align: center; 
}

.cta { 
    padding: 20px 0 80px 0; 
    text-align: center; 
}

.cta h2 { margin-top: 0; }

.install-box { 
    display: inline-flex; 
    align-items: center; 
    padding: 1.5rem 3rem; 
    border-radius: 12px; 
    font-family: var(--font-mono); 
    font-size: 1.2rem; 
    margin-bottom: 1rem; 
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.install-box::before {
    /* Removed ::before pseudo-element for gradient effect */
    content: none;
}

.install-box:hover::before {
    /* Removed ::before hover effect */
    content: none;
}

.install-box:hover {
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.2); /* Subtler success glow */
}

.install-box code { color: var(--success); }

.disclaimer { color: var(--text-dim); font-size: 0.8rem; margin-top: 10px; }

.btn-large { 
    display: inline-block; 
    background: var(--primary); /* Use primary color */
    color: white; /* White text for primary button */
    padding: 1rem 3rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 900; 
    margin-top: 1rem; 
    transition: all 0.3s ease-out; /* Smoother transition */
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.2); /* Subtler shadow */
}

.btn-large:hover { 
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3); /* Enhanced but subtle shadow */
    letter-spacing: normal; /* Removed letter-spacing change */
    background: #0056b3; /* Darker primary on hover */
}

footer { 
    padding: 40px 0; 
    border-top: 1px solid var(--glass-border); 
    text-align: center; 
    color: var(--muted); 
    font-size: 0.8rem; 
}


.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}
