/**
 * Terminal / Code Style Theme - Light Mode
 * A clean, corporate developer aesthetic
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Color Palette - Light Mode */
    --terminal-bg-primary: #ffffff;
    --terminal-bg-secondary: #f8f9fc;
    --terminal-bg-tertiary: #f3f4f8;
    
    --terminal-text-primary: #0f172a;
    --terminal-text-secondary: #64748b;
    --terminal-text-muted: #6b7280;
    
    /* Accent Colors - Terminal Style */
    --terminal-accent: #2563eb;
    --terminal-accent-light: #3b82f6;
    --terminal-accent-hover: #1d4ed8;
    
    /* Syntax Highlighting Colors */
    --terminal-syntax-green: #22c55e;
    --terminal-syntax-amber: #f59e0b;
    --terminal-syntax-purple: #8b5cf6;
    --terminal-syntax-red: #ef4444;
    --terminal-syntax-blue: #3b82f6;
    
    /* macOS Window Dots */
    --dot-red: #ff5f57;
    --dot-yellow: #ffbd2e;
    --dot-green: #28ca41;
    
    /* Borders */
    --terminal-border: #e2e8f0;
    --terminal-border-focus: #3b82f6;
    
    /* Shadows */
    --terminal-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --terminal-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --terminal-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--terminal-text-primary);
    background-color: var(--terminal-bg-secondary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: var(--terminal-text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    color: var(--terminal-text-secondary);
}

a {
    color: var(--terminal-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Monospace Text Styles */
.mono, code, pre {
    font-family: var(--font-mono);
}

.text-mono {
    font-family: var(--font-mono);
}

.text-muted {
    color: var(--terminal-text-muted);
}

.text-accent {
    color: var(--terminal-accent);
}

/* Section Eyebrows with Code Style */
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--terminal-accent);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.section-eyebrow::before {
    content: '// ';
    color: var(--terminal-text-muted);
}

/* ============================================
   TERMINAL WINDOW COMPONENT
   ============================================ */
.terminal-window {
    background: var(--terminal-bg-primary);
    border: 1px solid var(--terminal-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--terminal-shadow-md);
    overflow: hidden;
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--terminal-bg-tertiary);
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* Default dot color - 232F40 */
    background: #232F40;
}

/* Hero section terminal - Keep original macOS colors */
.hero-window .terminal-dot.red,
.hero-visual .terminal-dot.red { background: #ff5f57; }
.hero-window .terminal-dot.yellow,
.hero-visual .terminal-dot.yellow { background: #ffbd2e; }
.hero-window .terminal-dot.green,
.hero-visual .terminal-dot.green { background: #28ca41; }

/* Footer terminal - White dots for dark mode cards */
.footer-window-full .terminal-dot,
.footer .terminal-dot {
    background: #ffffff;
}

.terminal-path {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-text-secondary);
    background: var(--terminal-bg-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--terminal-border);
    flex-shrink: 0;
}

.terminal-content {
    padding: var(--space-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--terminal-bg-primary);
    border-bottom: 1px solid var(--terminal-border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Logo Image - Max height 50px */
.navbar-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Navbar Header Dots - 232F40 */
.navbar-brand .terminal-dots .terminal-dot {
    width: 12px;
    height: 12px;
    background: #232F40;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--terminal-text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--terminal-text-primary);
    background: var(--terminal-bg-tertiary);
}

.nav-link.active {
    color: var(--terminal-accent);
    background: var(--terminal-bg-tertiary);
}

.nav-index {
    color: var(--terminal-accent);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid var(--terminal-border);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--terminal-text-primary);
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--terminal-text-primary);
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { bottom: -7px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1e1e2e;
    color: #ffffff;
    border: 1px solid #45475a;
}

.btn-primary:hover {
    background: #313244;
    border-color: #585b70;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #45475a;
}

.btn-outline:hover {
    background: #1e1e2e;
    color: #ffffff;
}

.btn-command {
    background: #1e1e2e;
    color: #cdd6f4;
    border: 1px solid #45475a;
    font-family: var(--font-mono);
}

.btn-command::before {
    content: '$ ';
    color: #a6e3a1;
}

.btn-command:hover {
    background: #313244;
    border-color: #585b70;
    color: #cdd6f4;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius-md);
    background: #1e1e2e;
    border: 1px solid #45475a;
    color: #cdd6f4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #313244;
    border-color: #585b70;
    color: #cdd6f4;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--terminal-bg-primary);
    border: 1px solid var(--terminal-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--terminal-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--terminal-shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--terminal-bg-tertiary);
    border-bottom: 1px solid var(--terminal-border);
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--terminal-border);
    background: var(--terminal-bg-tertiary);
    text-align: center;
}

/* Feature Card */
.feature-card {
    text-align: left;
}

.feature-card .card-header {
    padding: var(--space-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terminal-bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--terminal-accent);
    font-size: 1.5rem;
}

.feature-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--terminal-text-secondary);
    margin-bottom: 0;
}

/* Pricing Card */
.pricing-card {
    text-align: center;
}

.pricing-card.popular {
    border-color: var(--terminal-accent);
    position: relative;
}

.pricing-card.popular::before {
    content: '// popular';
    position: absolute;
    top: -1px;
    right: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-accent);
    background: var(--terminal-bg-primary);
    padding: var(--space-xs) var(--space-sm);
}

.pricing-price {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--terminal-text-primary);
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--terminal-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.pricing-features li {
    padding: var(--space-sm) 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--terminal-text-secondary);
    border-bottom: 1px dashed var(--terminal-border);
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--terminal-syntax-green);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--terminal-text-secondary);
    margin-bottom: var(--space-sm);
}

.form-label::before {
    content: '$ ';
    color: var(--terminal-accent);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--terminal-text-primary);
    background: var(--terminal-bg-primary);
    border: 1px solid var(--terminal-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--terminal-text-muted);
    font-style: italic;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--terminal-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--terminal-accent);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--terminal-bg-tertiary);
    color: var(--terminal-text-secondary);
    border: 1px solid var(--terminal-border);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--terminal-accent);
    border-color: rgba(37, 99, 235, 0.2);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--terminal-syntax-green);
    border-color: rgba(34, 197, 94, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--terminal-syntax-amber);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--terminal-syntax-purple);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Tag pill style */
.tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--terminal-bg-tertiary);
    color: var(--terminal-text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--terminal-border);
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.alert::before {
    content: '/* ';
    color: inherit;
    opacity: 0.5;
}

.alert::after {
    content: ' */';
    color: inherit;
    opacity: 0.5;
}

.alert-info {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--terminal-accent);
}

.alert-success {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--terminal-syntax-green);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--terminal-syntax-amber);
}

.alert-error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--terminal-syntax-red);
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-dark {
    background: var(--terminal-bg-primary);
}

.section-light {
    background: var(--terminal-bg-secondary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--terminal-border);
}

.section-header-left {
    flex: 1;
    text-align: left;
}

.section-header-right {
    flex-shrink: 0;
    margin-left: var(--space-lg);
    padding-top: var(--space-md);
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--terminal-text-secondary);
    max-width: 600px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service Cards - Equal height with button at bottom */
.section-light .grid .terminal-window,
.section .grid .terminal-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-light .grid .terminal-window .terminal-content,
.section .grid .terminal-window .terminal-content {
    flex: 1;
}

.section-light .grid .card-footer,
.section .grid .card-footer {
    margin-top: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--space-3xl) 0;
    background: var(--terminal-bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--terminal-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-window {
    max-width: 500px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    width: 100%;
    background: var(--terminal-bg-tertiary);
    border-top: 1px solid var(--terminal-border);
    padding: var(--space-2xl) 0 0;
}

.footer-bottom {
    width: 100%;
    background: var(--terminal-bg-secondary);
    border-top: 1px solid var(--terminal-border);
    padding: var(--space-md) 0;
}

.footer-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer-content-wrapper .terminal-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.footer-content-wrapper .terminal-dots .terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-text-muted);
    display: inline;
    margin-bottom: 0;
}

.footer-creator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-text-muted);
    display: inline;
    margin-bottom: 0;
    margin-left: auto;
}

.footer-content-wrapper .terminal-path {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-accent);
    flex-shrink: 0;
    margin-bottom: 0;
    margin-left: var(--space-md);
    background: var(--terminal-bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-column {
    display: flex;
}

.footer-window-full {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-window-full .terminal-dots .terminal-dot {
    background: #ffffff;
}

.footer-window-full .terminal-content {
    flex: 1;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: var(--terminal-accent);
}

.newsletter-form {
    margin-bottom: 0;
}

.newsletter-form .input-group {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: var(--terminal-bg-secondary);
    border: 1px solid var(--terminal-border);
    border-radius: var(--radius-sm);
    color: var(--terminal-text-primary);
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--terminal-accent);
}

.newsletter-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--terminal-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #1d4ed8;
}

.social-icons {
    display: flex;
    gap: 6px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terminal-bg-secondary);
    border: 1px solid var(--terminal-border);
    border-radius: var(--radius-sm);
    color: var(--terminal-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--terminal-accent);
    color: white;
    border-color: var(--terminal-accent);
}

@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .footer-content-wrapper .terminal-dots {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-copyright {
        width: 100%;
    }
    
    .footer-path {
        margin-left: 0;
        width: 100%;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    padding: var(--space-lg);
}

.testimonial-quote {
    font-style: italic;
    color: var(--terminal-text-secondary);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 3px solid var(--terminal-accent);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--terminal-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--terminal-accent);
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--terminal-text-muted);
    margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--terminal-bg-primary);
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cta-section .container .terminal-window {
    border: 1px solid var(--terminal-border);
}

.cta-section .terminal-titlebar {
    background: var(--terminal-bg-secondary);
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--terminal-text-primary);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--terminal-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { justify-content: center; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .navbar-toggler { display: block; }
    
    .navbar-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--terminal-bg-primary);
        border-bottom: 1px solid var(--terminal-border);
        padding: var(--space-md);
        box-shadow: var(--terminal-shadow-md);
    }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    
    .terminal-window { border-radius: var(--radius-md); }
    
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
    }
    
    .btn { width: 100%; justify-content: center; }
    .hero-actions { flex-direction: column; }
    .cta-actions { flex-direction: column; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.py-1 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

.w-100 { width: 100%; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Cursor blink animation for terminal effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor-blink::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--terminal-accent);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--terminal-accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FOOTER DARK MODE
   ============================================ */
.footer {
    background: #1e1e2e;
    border-top: 1px solid #313244;
}

.footer-bottom {
    background: #181825;
    border-top: 1px solid #313244;
}

.footer-content-wrapper {
    color: #cdd6f4;
}

.footer-content-wrapper .terminal-dots .terminal-dot.red { background: #f38ba8; }
.footer-content-wrapper .terminal-dots .terminal-dot.yellow { background: #f9e2af; }
.footer-content-wrapper .terminal-dots .terminal-dot.green { background: #a6e3a1; }

.footer-copyright {
    color: #a6adc8;
}

.footer-creator {
    color: #a6adc8;
}

.footer-content-wrapper .terminal-path {
    background: #313244;
    color: #89b4fa;
    border-color: #45475a;
}

.footer-columns {
    color: #cdd6f4;
}

.footer-column {
    color: #cdd6f4;
}

.footer-window-full {
    background: #313244;
    border-color: #45475a;
}

.footer-window-full .terminal-titlebar {
    background: #45475a;
    border-color: #585b70;
}

.footer-window-full .terminal-dots .terminal-dot { background: #ffffff; }

.footer-window-full .terminal-path {
    background: #181825;
    color: #89b4fa;
    border-color: #45475a;
}

.footer-window-full .terminal-content {
    color: #cdd6f4;
}

.footer-links {
    color: #cdd6f4;
}

.footer-link {
    color: #a6adc8;
}

.footer-link:hover {
    color: #89b4fa;
}

.newsletter-input {
    background: #181825;
    border-color: #45475a;
    color: #cdd6f4;
}

.newsletter-input::placeholder {
    color: #6c7086;
}

.newsletter-input:focus {
    border-color: #89b4fa;
}

.newsletter-btn {
    background: #1e1e2e;
    color: #ffffff;
    border: 1px solid #45475a;
}

.newsletter-btn:hover {
    background: #313244;
    border-color: #585b70;
}

.social-icons {
    color: #cdd6f4;
}

.social-link {
    background: #1e1e2e;
    border-color: #45475a;
    color: #cdd6f4;
}

.social-link:hover {
    background: #313244;
    border-color: #585b70;
}

.footer pre code {
    color: #cdd6f4;
}

/* Hero Window Dark Mode */
.hero-window {
    background: #1e1e2e;
    border-color: #45475a;
}

.hero-window .terminal-titlebar {
    background: #313244;
    border-color: #45475a;
}

.hero-window .terminal-dots .terminal-dot.red { background: #ff5f57; }
.hero-window .terminal-dots .terminal-dot.yellow { background: #ffbd2e; }
.hero-window .terminal-dots .terminal-dot.green { background: #28ca41; }

.hero-window .terminal-path {
    background: #181825;
    color: #89b4fa;
    border-color: #45475a;
}

.hero-window .terminal-content {
    color: #cdd6f4;
}

.hero-window .terminal-content code {
    color: #cdd6f4;
}

.hero-window .cursor-blink::after {
    color: #89b4fa;
}

/* Card Button - Same as newsletter button default */
.btn-card {
    background: #1e1e2e;
    color: #ffffff;
    border: 1px solid #45475a;
}

.btn-card:hover {
    background: #313244;
    border-color: #585b70;
    color: #ffffff;
}

/* Card Button - Light Version */
.btn-card-light {
    background: transparent;
    color: #1e1e2e;
    border: none;
}

.btn-card-light:hover {
    background: #e8e8f0;
    color: #1e1e2e;
}
