/* ============================================
   AiScripto Landing Site - Global Styles
   ============================================ */

/* Color Scheme */
:root {
    --primary-dark: #1a1a1a;
    --primary-light: #2d2d2d;
    --accent-orange: #ff9900;
    --accent-blue: #0066cc;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #a0a0a0;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-lighter: #f5f5f5;
    --border-light: #eee;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

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

/* ============================================
   Navigation & Header
   ============================================ */

nav {
    background: var(--primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-orange);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

nav a.active {
    color: var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 8px;
}

/* ============================================
   Header Section
   ============================================ */

header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.badge {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 15px;
}

h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.tagline {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ============================================
   Section Styling
   ============================================ */

section {
    background: var(--bg-white);
    margin: 40px 0;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

section a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

section a:hover {
    text-decoration: underline;
}

.divider {
    height: 3px;
    background-color: var(--accent-orange);
    width: 200px;
    margin: 30px auto;
}

.divider-dark {
    height: 2px;
    background-color: var(--primary-dark);
    width: 100%;
    margin: 40px 0;
}

/* ============================================
   Feature Grid
   ============================================ */

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

.feature-card {
    background: var(--bg-lighter);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Lists & Tables
   ============================================ */

.tech-list {
    list-style: none;
    margin: 20px 0;
}

.tech-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list strong {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 150px;
}

.tech-list .description {
    color: var(--text-secondary);
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table thead {
    background: var(--bg-lighter);
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-orange);
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

table tr:hover {
    background: var(--bg-lighter);
}

/* ============================================
   Badges & Tags
   ============================================ */

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.service-badge {
    display: inline-block;
    background-color: #e8f4f8;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #b3d9e8;
}

.service-badge.aws {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.service-badge.gcp {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.service-badge.azure {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
}

/* ============================================
   Boxes & Highlights
   ============================================ */

.highlight-box {
    background: #f0f7ff;
    border-left: 4px solid var(--accent-blue);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.highlight-box h4 {
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.highlight-box p {
    color: var(--text-primary);
    font-size: 14px;
}

.warning-box {
    background: #fff8e8;
    border-left: 4px solid var(--accent-orange);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

.btn-secondary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-secondary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* ============================================
   Diagram & Charts
   ============================================ */

.diagram-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 800px;
    overflow: visible;
}

.diagram-container .mermaid {
    width: 100%;
    height: 100%;
    display: block;
}

.diagram-container svg {
    max-width: 100%;
    height: auto;
}

.flow-chart {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.flow-step {
    background: white;
    padding: 15px 25px;
    border-radius: 4px;
    border: 2px solid var(--accent-orange);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.flow-arrow {
    font-size: 24px;
    color: var(--accent-orange);
    font-weight: bold;
}

/* ============================================
   Two-Column Layout
   ============================================ */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 30px 0;
}

.two-column-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-column-visual {
    background: var(--bg-lighter);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Stats & Metrics
   ============================================ */

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

.stat-card {
    background: var(--bg-lighter);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-orange);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-description {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

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

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.language-switcher button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.language-switcher button.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    nav .container {
        flex-wrap: wrap;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    section {
        padding: 25px;
        margin: 30px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    nav ul {
        gap: 1rem;
        font-size: 13px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .diagram-container {
        min-height: 200px;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    section {
        padding: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flow-chart {
        gap: 10px;
    }
    
    .flow-step {
        font-size: 12px;
        min-width: 80px;
        padding: 10px 15px;
    }
}
