/* ============================================
   SIETCH OS - Page Specific Styles
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.os-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-primary);
}

.os-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.os-hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 80vmin;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.os-hero-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.os-hero-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.os-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
}

.os-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--space-6);
    max-width: 900px;
}

.os-hero-title {
    font-family: var(--font-headline);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 0.9;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.os-hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.os-hero-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--color-text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Feature Sections
   ============================================ */
.os-feature {
    position: relative;
    padding: var(--space-32) 0;
    background-color: var(--color-bg-primary);
    overflow: hidden;
}

.os-feature:nth-child(even) {
    background-color: var(--color-bg-secondary);
}

.os-feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    align-items: center;
}

.os-feature-reverse .os-feature-content {
    direction: rtl;
}

.os-feature-reverse .os-feature-content > * {
    direction: ltr;
}

.os-feature-text {
    max-width: 500px;
}

.os-feature-reverse .os-feature-text {
    margin-left: auto;
}

.os-feature-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-primary);
}

.os-feature-headline {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.os-feature-copy {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Feature Visual */
.os-feature-visual {
    position: relative;
}

.os-feature-image-wrapper {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.os-feature-reverse .os-feature-image-wrapper {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.os-feature:hover .os-feature-image-wrapper {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.os-feature-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-primary);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ============================================
   Terminal Visual (Feature 1)
   ============================================ */
.os-terminal-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.terminal-screen {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.terminal-dot:first-child { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27ca40; }

.terminal-body {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    min-height: 200px;
    justify-content: center;
    position: relative;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.fingerprint-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.id-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    color: var(--color-success);
}

/* ============================================
   Wallet Visual (Feature 2)
   ============================================ */
.os-wallet-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.wallet-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.wallet-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #f9e076 50%, #d4af37 100%);
    border-radius: 4px;
    margin-bottom: var(--space-6);
}

.wallet-logo {
    font-family: var(--font-headline);
    font-size: var(--text-lg);
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.wallet-number {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.wallet-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
}

.wallet-stats {
    display: flex;
    gap: var(--space-4);
}

.wallet-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-stat .stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.wallet-stat .stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--color-text-primary);
}

/* ============================================
   AI Visual (Feature 3)
   ============================================ */
.os-ai-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.ai-brain {
    position: relative;
    width: 150px;
    height: 150px;
}

.ai-brain svg {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
}

.ai-data {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
}

.data-status {
    color: var(--color-text-secondary);
}

.data-status.active {
    color: var(--color-success);
}

/* ============================================
   CTA Section
   ============================================ */
.os-cta {
    position: relative;
    padding: var(--space-32) 0;
    background-color: var(--color-bg-secondary);
    text-align: center;
}

.os-cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.os-cta-headline {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.os-cta-text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .os-feature-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .os-feature-reverse .os-feature-content {
        direction: ltr;
    }
    
    .os-feature-text {
        max-width: 100%;
        text-align: center;
    }
    
    .os-feature-reverse .os-feature-text {
        margin-left: 0;
    }
    
    .os-feature-image-wrapper {
        transform: none !important;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .os-hero-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }
    
    .os-feature {
        padding: var(--space-20) 0;
    }
    
    .os-feature-headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* Active nav link */
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link.active::after {
    width: 100%;
}
