/* Base Variables */
:root {
    --primary: #00bcd4;
    --secondary: #ff9800;
    --dark: #1a1a1a;
    --darker: #121212;
    --light: #f5f5f5;
    --text: #e0e0e0;
    --text-dark: #333333;
    --font-code: 'Roboto Mono', monospace;
    --font-main: 'Source Sans Pro', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--darker);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-bg {
    fill: var(--dark);
    stroke: var(--primary);
    stroke-width: 2;
}

.logo-text {
    fill: var(--primary);
    font-family: var(--font-code);
    font-size: 18px;
    font-weight: bold;
}

.site-title {
    font-size: 1.5rem;
    margin-left: 10px;
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--primary);
}

nav .nav-menu {
    display: flex;
    list-style: none;
}

nav .nav-menu li {
    margin-left: 30px;
}

nav .nav-menu a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav .nav-menu a:hover {
    color: var(--primary);
}

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

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

.cta-btn {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.cta-btn:hover {
    background: var(--secondary);
}

.cta-btn::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* Intro/Hero Section */
.intro {
    padding: 80px 0;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.terminal-window {
    flex: 1;
    background: var(--dark);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.terminal-header {
    background: #333;
    padding: 10px;
    display: flex;
    align-items: center;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: #ff5f56;
}

.terminal-btn:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-btn:nth-child(3) {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    font-family: var(--font-code);
    font-size: 12px;
    color: #aaa;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 14px;
}

.line {
    margin-bottom: 10px;
}

.prompt {
    color: var(--secondary);
    margin-right: 10px;
}

.command {
    color: var(--primary);
}

.response {
    color: var(--text);
    opacity: 0.7;
}

.typing {
    margin-top: 15px;
}

.typing-text {
    border-right: 2px solid var(--primary);
    animation: blink-caret 0.75s step-end infinite;
    color: var(--secondary);
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-container {
    margin-top: 30px;
}

.primary-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.primary-btn.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--dark);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--darker);
    padding: 30px;
    border-radius: 6px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.icon-shape {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
}

.icon-detail {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 2;
    stroke-linecap: round;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 15px;
}

/* How it Works Section */
.how-it-works {
    padding: 80px 0;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    height: calc(100% - 20px);
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 25px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
}

.step-content h3 {
    color: var(--secondary);
}

/* Examples Section */
.examples {
    padding: 80px 0;
    background-color: var(--dark);
}

.example-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.example-card {
    background: var(--darker);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.example-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.example-header h3 {
    margin: 0;
    color: var(--primary);
}

.ai-badge {
    background: var(--primary);
    color: var(--dark);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.example-content {
    padding: 20px;
}

.sample-text {
    font-style: italic;
    margin-bottom: 20px;
    font-family: var(--font-code);
    line-height: 1.6;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.example-cta {
    text-align: center;
    margin-top: 40px;
}

.example-cta p {
    margin-bottom: 20px;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 188, 212, 0) 100%);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.final-cta p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.logo-svg.small {
    width: 30px;
    height: 30px;
}

.footer-brand span {
    margin-left: 10px;
    font-weight: 600;
    color: var(--primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.footer-col {
    flex: 0 0 48%;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        transition: right 0.3s ease;
        z-index: 101;
    }
    
    nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 80px 30px 30px;
    }
    
    .nav-menu li {
        margin: 0 0 20px 0;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .feature-grid,
    .example-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-text h2 {
        font-size: 2rem;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
}
