/* PixelCore42 Landing Page Styles */
/* Based on Brand Identity: Electric Blue, Vibrant Orange, Coral Pink, Deep Navy, Light Gray */

:root {
    /* Brand Colors */
    --electric-blue: #00BBCC;
    --vibrant-orange: #FF6B35;
    --coral-pink: #FF8E9B;
    --deep-navy: #1A1B3A;
    --light-gray: #F0F2F5;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--slate-700);
    background-color: var(--white);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--deep-navy);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--electric-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #0099AA;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
    background-color: var(--electric-blue);
    color: var(--white);
    transform: translateY(-1px);
}

/* Pixel Logo Component */
.pixel-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pixel-logo.small {
    gap: 8px;
}

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1px;
    width: 48px;
    height: 48px;
}

.pixel-grid.small {
    width: 32px;
    height: 32px;
    gap: 0.5px;
}

.pixel-grid.large {
    width: 96px;
    height: 96px;
    gap: 2px;
}

.pixel-logo.large {
    gap: 24px;
}

.logo-text.large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--deep-navy);
    letter-spacing: -0.02em;
}

.pixel {
    width: 100%;
    height: 100%;
    border-radius: 1px;
}

.bg-electric-blue { background-color: var(--electric-blue); }
.bg-vibrant-orange { background-color: var(--vibrant-orange); }
.bg-coral-pink { background-color: var(--coral-pink); }
.bg-deep-navy { background-color: var(--deep-navy); }
.bg-transparent { background-color: transparent; }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    letter-spacing: -0.02em;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

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



/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--electric-blue);
}

.nav-link.active {
    color: var(--electric-blue);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--electric-blue);
    transition: var(--transition);
}

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

/* Dropdown Navigation */
.nav-item.dropdown { position: relative; }
.dropdown-toggle {
  background: transparent;
  border: 0;
  color: var(--slate-600);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dropdown-toggle:hover { color: var(--electric-blue); }
.dropdown-toggle::after {
  content: '\25BE'; /* down triangle */
  font-size: 0.8em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-item.dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 140%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 20;
}
.nav-item.dropdown.open .dropdown-menu { display: block; }

.dropdown-link {
  display: block;
  padding: 10px 12px;
  color: var(--slate-700);
  text-decoration: none;
  border-radius: 8px;
}
.dropdown-link:hover { background: var(--slate-100); color: var(--deep-navy); }

@media (max-width: 768px) {
  .dropdown-menu { position: static; box-shadow: none; border: 1px dashed var(--slate-200); margin-top: 6px; }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--slate-800) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: var(--white);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-300);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    align-items: center;
}

.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    padding: 16px;
    border-radius: var(--border-radius);
}

.app-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.app-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.app-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.app-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

.future-apps {
    display: flex;
    gap: 24px;
}

.future-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.app-icon.placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
}



/* Hero watermark logo */
.hero::before {
    content: '';
    position: absolute;
    inset: auto -20% -20% auto;
    width: 520px;
    height: 520px;
    background: url('assets/images/zaptext/logo-b.png') no-repeat center / contain;
    opacity: 0.06;
    transform: rotate(-8deg);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::before {
        width: 360px;
        height: 360px;
        inset: auto -30% -15% auto;
    }
    
    .hero-actions {
        gap: 24px;
        flex-direction: column;
    }
    
    .future-apps {
        gap: 16px;
    }
    
    .app-icon {
        width: 56px;
        height: 56px;
    }
    
    .app-icon-img {
        width: 40px;
        height: 40px;
    }
}

/* Main Content Area */
.main-content {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: var(--section-padding);
    min-height: 60vh;
}

/* Hero Section with Background Image */
.hero-section {
    background-image: linear-gradient(rgba(26, 27, 58, 0.8), rgba(26, 27, 58, 0.8)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin: -80px 0 0 0;
    padding: 120px 0 80px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--slate-300);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Work in Progress Card */
.work-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.work-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.work-title {
    font-size: 2rem;
    color: var(--deep-navy);
    margin-bottom: 16px;
}

.work-description {
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Blurred Previews Section */
.previews-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.previews-title {
    font-size: 1.25rem;
    color: var(--deep-navy);
    margin-bottom: 24px;
    text-align: center;
}

.previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preview-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: var(--light-gray);
    transition: var(--transition);
}

.preview-icon.blurred {
    filter: blur(2px);
    opacity: 0.7;
}

.preview-icon:hover {
    filter: blur(1px);
    opacity: 0.9;
    transform: scale(1.05);
}

/* Icon Styles */
.icon-check {
    position: relative;
    width: 32px;
    height: 32px;
}

.check-line {
    position: absolute;
    background-color: var(--electric-blue);
    border-radius: 2px;
}

.check-line:first-child {
    width: 16px;
    height: 3px;
    top: 14px;
    left: 8px;
    transform: rotate(45deg);
}

.check-line:last-child {
    width: 8px;
    height: 3px;
    top: 18px;
    left: 8px;
    transform: rotate(-45deg);
}

.icon-heart {
    position: relative;
    width: 32px;
    height: 32px;
}

.heart-shape {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--coral-pink);
    top: 6px;
    left: 6px;
    transform: rotate(45deg);
}

.heart-shape::before,
.heart-shape::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--coral-pink);
    border-radius: 50%;
}

.heart-shape::before {
    top: -10px;
    left: 0;
}

.heart-shape::after {
    top: 0;
    left: -10px;
}

.icon-star {
    position: relative;
    width: 32px;
    height: 32px;
}

.star-shape {
    position: absolute;
    width: 0;
    height: 0;
    top: 8px;
    left: 16px;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 16px solid var(--vibrant-orange);
}

.star-shape::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 4px;
    left: -12px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--vibrant-orange);
}

.star-shape::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 8px;
    left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--vibrant-orange);
}

.icon-lightning {
    position: relative;
    width: 32px;
    height: 32px;
}

.lightning-shape {
    position: absolute;
    width: 0;
    height: 0;
    top: 4px;
    left: 12px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--electric-blue);
}

.lightning-shape::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 8px;
    left: -4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid var(--electric-blue);
}

.lightning-shape::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 16px;
    left: -4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--electric-blue);
}

/* Visual Story Section */
.visual-story {
    max-width: 800px;
    margin: 0 auto;
}

.story-title {
    text-align: center;
    font-size: 1.67rem;
    color: var(--deep-navy);
    margin-bottom: 40px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 27px;
}

.story-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 21px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.story-visual {
    height: 134px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Pixel Story */
.pixel-grid-story {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1px;
    width: 80px;
    height: 80px;
}

/* Core Story */
.concentric-circles {
    position: relative;
    width: 80px;
    height: 80px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--electric-blue);
}

.circle.outer {
    width: 80px;
    height: 80px;
    border-color: var(--electric-blue);
    opacity: 0.3;
}

.circle.middle {
    width: 53px;
    height: 53px;
    top: 13px;
    left: 13px;
    border-color: var(--vibrant-orange);
    opacity: 0.6;
}

.circle.inner {
    width: 33px;
    height: 33px;
    top: 23px;
    left: 23px;
    border-color: var(--coral-pink);
    opacity: 0.8;
}

.circle.center {
    width: 13px;
    height: 13px;
    top: 33px;
    left: 33px;
    background-color: var(--deep-navy);
    border: none;
}

/* Number 42 Story */
.galaxy-background {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--deep-navy) 0%, #2A2B5A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: var(--white);
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 70%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.star:nth-child(4) { top: 80%; left: 60%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 30%; left: 80%; animation-delay: 0.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.number-42 {
    font-size: 1.67rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.5);
}

.story-heading {
    font-size: 1rem;
    color: var(--deep-navy);
    margin-bottom: 5px;
}

.story-caption {
    font-size: 0.75rem;
    color: var(--electric-blue);
    font-weight: 600;
    margin-bottom: 11px;
}

.story-description {
    color: var(--slate-600);
    line-height: 1.6;
}





/* Footer */
.footer {
    background-color: var(--deep-navy);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-breakdown {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.breakdown-label {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-grid-tiny {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
    width: 16px;
    height: 16px;
}

.circle-tiny {
    width: 12px;
    height: 12px;
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    background: transparent;
}

.number-tiny {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

.breakdown-separator {
    color: var(--slate-500);
    font-size: 0.875rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--slate-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-copyright {
    color: var(--slate-400);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    

    
    .main-content {
        padding: 60px 0;
    }
    
    .work-card {
        margin: 0 16px 60px;
        padding: 32px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .story-card {
        margin: 0 16px;
    }
    
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-breakdown {
        gap: 12px;
    }
    
    .breakdown-item {
        gap: 2px;
    }
    
    .breakdown-label {
        font-size: 0.625rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pixel-grid.large {
        width: 64px;
        height: 64px;
        gap: 1px;
    }
    
    .story-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .work-title {
        font-size: 1.5rem;
    }
    
    .previews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .preview-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-check,
    .icon-heart,
    .icon-star,
    .icon-lightning {
        transform: scale(0.8);
    }
}

/* Mobile optimization for hero section */
@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(rgba(26, 27, 58, 0.8), rgba(26, 27, 58, 0.8)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=768&q=80');
        background-attachment: scroll;
        padding: 100px 0 60px 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.store-badge:focus,
.contact-link:focus,
.social-link:focus,
.footer-link:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--white);
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}
