/* =============================================================================
   OzzyApps Landing Page Styles
   ============================================================================= */

/* CSS Variables */
:root {
    /* Colors - Warm dark theme with amber accent */
    --color-bg: #0d0d0d;
    --color-bg-elevated: #161616;
    --color-bg-card: #1a1a1a;
    --color-text: #f5f5f4;
    --color-text-muted: #a1a1a1;
    --color-text-subtle: #6b6b6b;
    --color-accent: #f59e0b;
    --color-accent-hover: #fbbf24;
    --color-border: #2a2a2a;
    --color-border-light: #333333;
    
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 300ms var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Grain overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-cta {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent);
    color: var(--color-bg) !important;
    border-radius: 100px;
    font-weight: 500;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    max-width: var(--max-width);
    margin: 0 auto;
    gap: var(--space-xl);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-line {
    display: block;
}

.hero-line.accent {
    color: var(--color-accent);
}

.hero-line em {
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-elevated);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: none;
}

@media (min-width: 900px) {
    .hero-visual {
        display: block;
    }
}

.floating-card {
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    font-size: 2rem;
}

.card-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 15%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 15%;
    left: 25%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =============================================================================
   Section Base
   ============================================================================= */

.section {
    padding: var(--space-2xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
}

/* =============================================================================
   Work Section
   ============================================================================= */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.work-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-light);
}

.work-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .work-card.featured {
        grid-template-columns: 1fr 1fr;
    }
}

.work-image {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-card.featured .work-image {
    aspect-ratio: auto;
    min-height: 300px;
}

.work-mockup {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.work-card:hover .work-mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-frame {
    width: 180px;
    height: 360px;
    background: #000;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.phone-frame.real {
    width: auto;
    height: auto;
    max-width: 220px;
    background: #000;
    border-radius: 32px;
    padding: 8px;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-header {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.app-balance {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #4ade80;
}

.app-subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.coming-soon span {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.work-info {
    padding: var(--space-lg);
}

.work-category {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin: var(--space-xs) 0 var(--space-sm);
}

.work-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.work-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.feature-tag {
    padding: 6px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.work-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.store-badge:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-elevated);
}

.store-icon {
    font-size: 1.1rem;
}

.store-badge-img {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badge-img:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.store-badge-img img {
    height: 50px;
    width: auto;
}

/* Google Play badge needs slight adjustment due to built-in padding */
.store-badge-img:last-child img {
    height: 74px;
    margin: -12px 0;
}

.work-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.work-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.work-link:hover {
    gap: var(--space-xs);
}

/* =============================================================================
   About Section
   ============================================================================= */

.about {
    background: var(--color-bg-elevated);
    border-radius: 32px;
    margin: var(--space-2xl) var(--space-lg);
    max-width: calc(var(--max-width) - var(--space-lg) * 2);
}

.about-content {
    max-width: 800px;
}

.about-text {
    margin-bottom: var(--space-xl);
}

.about-text p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.value {
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.value-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.value h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.value p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* =============================================================================
   Founder Section
   ============================================================================= */

.founder {
    padding: var(--space-xl) var(--space-lg);
}

.founder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .founder-content {
        flex-direction: row;
        text-align: left;
        max-width: 800px;
    }
}

.founder-image {
    flex-shrink: 0;
}

.founder-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.founder-info {
    flex: 1;
}

.founder-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin: var(--space-xs) 0 var(--space-sm);
}

.founder-bio {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* =============================================================================
   Contact Section
   ============================================================================= */

.contact {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact .section-header {
    margin-bottom: var(--space-lg);
}

.contact-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.contact-email:hover {
    color: var(--color-accent-hover);
}

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

.social-link {
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

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

.footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    width: 100%;
    text-align: center;
    margin-top: var(--space-sm);
}

@media (min-width: 768px) {
    .footer-copy {
        width: auto;
        margin-top: 0;
    }
}

/* =============================================================================
   Animations
   ============================================================================= */

@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .work-card,
    .value,
    .section-header {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.8s var(--ease-out) forwards;
    }
    
    .hero-content { animation-delay: 0.1s; }
    .work-card:nth-child(1) { animation-delay: 0.2s; }
    .work-card:nth-child(2) { animation-delay: 0.3s; }
    .value:nth-child(1) { animation-delay: 0.1s; }
    .value:nth-child(2) { animation-delay: 0.2s; }
    .value:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--nav-height) + var(--space-xl));
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about {
        margin: var(--space-xl) var(--space-sm);
        border-radius: 24px;
    }
}

