/* ============================================
   ALTICIAN Marketing Homepage - Styles
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-section: #12121a;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --text-primary: #ffffff;
    --text-secondary: #8b8b9a;
    --text-muted: #5a5a6a;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --border-color: #2a2a3a;
    --border-highlight: #3a3a4a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

/* ============================================
   Section 1: Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1117 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    z-index: 1;
}

.hero-headline {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subline {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #06b6d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Section 2: Demo
   ============================================ */
.demo-section {
    padding: 80px 40px;
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 14px;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
}

/* Steps */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
    flex-wrap: nowrap;
}

.step {
    text-align: center;
    padding: 24px 32px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 180px;
    transition: all 0.2s ease;
}

.step:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.step-number {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 8px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 32px;
    color: var(--text-muted);
}

/* Demo Interactive - 3 column layout */
.demo-interactive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Demo Action - Button below images */
.demo-action {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 60px;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .demo-interactive {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 440px;
    }

    /* Reorder: Oblique(1) → Button(2) → AP(3) → LAT(4) */
    .demo-panel:nth-child(1) { order: 1; }
    .demo-panel:nth-child(2) { order: 3; }
    .demo-panel:nth-child(3) { order: 4; }

    .demo-action {
        grid-column: 1;
        order: 2;
        margin-top: 0;
    }
}

/* Demo Panels */
.demo-panel {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

/* Removed max-width for uniform sizing */

.panel-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.panel-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--border-color);
    color: var(--text-secondary);
    position: absolute;
    left: 20px;
}

.panel-badge.ai {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    padding: 4px 10px;
}

.panel-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    width: 100%;
    text-align: center;
}

.panel-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.demo-panel canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    background: #000;
}

.panel-caption {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Drag hint for oblique view */
.drag-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.5);
    transition: opacity 0.3s ease;
}

.drag-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.drag-hint-icon {
    font-size: 16px;
    color: var(--accent-cyan);
}

.drag-hint-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.panel-overlay {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.panel-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-text {
    font-size: 16px;
    color: var(--text-muted);
}

/* Demo Center - deprecated, using demo-action now */

.generate-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-cyan), #06b6d4);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.4);
}

.generate-btn:active {
    transform: scale(0.98);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
}

.processing-indicator {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    height: 60px;
}

.processing-indicator.active {
    display: flex;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Output panels - no max-width for uniform sizing */
.output-panel {
    /* Inherits from .demo-panel */
}

/* Glowing border animation for generated views */
.output-panel.glow {
    animation: borderGlow 1.5s ease-out;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
        border-color: var(--border-color);
    }
    30% {
        box-shadow: 0 0 20px 4px rgba(34, 211, 238, 0.6);
        border-color: var(--accent-cyan);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
        border-color: var(--border-color);
    }
}

/* ============================================
   Section 3: Contact
   ============================================ */
.contact-section {
    padding: 80px 40px;
    background: var(--bg-dark);
    text-align: center;
}

.contact-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto 40px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

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

.contact-info {
    color: var(--text-secondary);
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-email {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.disclaimer-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.disclaimer-text strong {
    color: #ef4444;
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .logo-img {
        height: 26px;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero-visual {
        opacity: 0.3;
        width: 100%;
    }

    .demo-section,
    .contact-section,
    .footer {
        padding: 60px 20px;
    }
}
