/* --- style.css --- */

/* 1. DESIGN SYSTEM & VARIABLES */
:root {
    /* Theme Colors */
    --bg-color: #0B1120;       /* Deep Midnight Blue */
    --card-bg: #151e32;        /* Lighter Blue Panel */
    --text-primary: #f8fafc;   /* White/Off-white */
    --text-secondary: #94a3b8; /* Muted Blue-Grey */
    --accent-color: #38bdf8;   /* Cyan/Sky Blue */
    --warning-color: #fbbf24;  /* Amber for Beta */
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 70px;
}

/* 2. GLOBAL RESET */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }

/* 3. UTILITY CLASSES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}
.button:hover { transform: translateY(-2px); opacity: 0.9; }

.button.outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}
.button.outline:hover { background: rgba(56, 189, 248, 0.1); }

/* 4. NAVIGATION BAR */
nav {
    background: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; color: white; }

/* Small subtitle next to the site title in the header */
.nav-logo .nav-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 6px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }

/* 5. HERO SECTION (Index Page) */
.hero { text-align: center; padding: 80px 0; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent-color); }
.hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 12px auto; }

.hero-visual {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.1);
}

/* 6. FEATURE SUMMARIES (Index Page) */
.features-section { padding: 80px 0; }
.feature-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-text h2 { font-size: 2.2rem; margin-bottom: 15px; }
.feature-text p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 25px; }

.feature-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

/* Feature list styling (small, muted bullets matching site tone) */
.feature-list {
    margin-top: 12px;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    list-style: disc;
}
.feature-list li { margin-bottom: 8px; }

/* Image grid used on generation.html (3 columns x 2 rows) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}
.image-card {
    background: rgba(255,255,255,0.02);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    text-align: left;
}
.image-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; display: block; }
.image-card h4 { font-size: 0.95rem; margin: 12px 0 8px 0; text-transform: uppercase; }
.image-card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 900px) {
    .image-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .image-grid { grid-template-columns: 1fr; }
    .image-card img { height: 200px; }
}

/* Simple carousel styles used inside .image-card */
.carousel { position: relative; overflow: hidden; border-radius: 6px; }
.carousel-track { display: flex; transition: transform 0.45s ease; will-change: transform; }
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img { width: 100%; height: 160px; object-fit: cover; display: block; border-radius: 6px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: rgba(0,0,0,0.65); }
.carousel-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; padding: 0; cursor: pointer; }
.carousel-dots button.active { background: var(--accent-color); }

@media (max-width: 600px) {
    .carousel-slide img { height: 200px; }
}

/* Reduce vertical gap between consecutive content blocks (tighten Key Features → gallery spacing) */
.content-block + .content-block { padding-top: 12px; padding-bottom: 40px; }

/* Tight-section: use on specific content-blocks to reduce bottom padding so adjacent gaps match grid gap */
.tight-section { padding-bottom: 12px; }

/* 7. SUB-PAGE SPECIFICS */
.page-header { padding: 60px 0 40px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: flex-start; gap: 40px; }
.page-header h1 { font-size: 3rem; margin: 0; }
.page-header p { font-size: 1.2rem; color: var(--text-secondary); margin-top: 10px; max-width: 600px; }

.page-header .header-content { flex: 1; }
.page-header .header-art { flex: 0 0 420px; max-width: 42%; margin-top: 14px; }
.page-header .header-art img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); display: block; }

@media (max-width: 900px) {
    .page-header { flex-direction: column; }
    .page-header .header-art { max-width: 100%; flex: none; margin-top: 20px; }
}

.content-block { padding: 60px 0; }
.content-block h3 { color: var(--accent-color); font-size: 1.5rem; margin-bottom: 10px; margin-top: 40px; }
.screenshot-large { width: 100%; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px; }

ul.specs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
ul.specs li { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }
ul.specs li strong { display: block; color: white; margin-bottom: 5px; }

/* 8. FOOTER */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 60px;
}

/* Lightbox / image expand styles */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}
.lightbox-overlay.visible { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.lightbox-caption { color: rgba(255,255,255,0.85); margin-top: 12px; text-align: center; font-size: 0.95rem; }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.06); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 2rem; padding: 8px 12px; background: rgba(0,0,0,0.3); border-radius: 6px; cursor: pointer; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* Make clickable images show zoom cursor */
img.expandable { cursor: zoom-in; }
.lightbox-overlay img { cursor: zoom-out; }
