/* PocketSous Stylesheet */

:root {
    /* Black and white theme colors */
    --primary: #FFFFFF;
    --primary-light: #E0E0E0;
    --primary-gradient: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%);
    --primary-shadow: rgba(255, 255, 255, 0.3);
    --secondary: #808080;
    --secondary-light: #A0A0A0;
    --secondary-gradient: linear-gradient(135deg, #808080 0%, #A0A0A0 100%);  
    --dark: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #D0D0D0;
    --text-light: #B0B0B0;
    --bg-light: #000000;
    --bg-off: #0A0A0A;
    --bg-accent: #202020;
    --border: #333333;
    
    /* Animation durations */
    --animation-short: 0.15s;
    --animation-medium: 0.3s;
    --animation-long: 0.5s;
}

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

html {
    font-size: 18px; 
    scroll-padding-top: 80px; /* Accounts for fixed header */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    transition: background-color var(--animation-medium) ease, color var(--animation-medium) ease;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Layout and container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    gap: 8px;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--dark);
    box-shadow: 0 8px 20px var(--primary-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px var(--primary-shadow);
}

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

.btn-secondary:hover {
    background-color: var(--bg-off);
    transform: translateY(-3px);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Header */
header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all var(--animation-medium) ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: color var(--animation-medium) ease;
}

.header-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hero section */
.hero {
    padding: 120px 0 100px;
    overflow: hidden;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-accent);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.hero-content h1 .accent {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content h1 .accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-wrapper {
    position: relative;
}

.phone-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: -1;
}

/* App Preview Section */
.app-preview {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Phone mockup */
.phone {
    position: relative;
    width: 270px;
    height: auto;
    background-color: #000000;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    transition: all var(--animation-medium) ease;
}

.phone-screen {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Use cases section */
.use-cases {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.use-case {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-radius: 16px;
    height: 100%;
}

.use-case-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--secondary-gradient);
    color: white;
}

.use-case-content {
    flex: 1;
}

.use-case h3 {
    margin-bottom: 10px;
}

.use-case p {
    margin-bottom: 0;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA section */
.cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: transparent;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--primary-light) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--text-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

.footer-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: color var(--animation-medium) ease;
}

.footer-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* Enhanced card styling */
.enhanced-card {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 40, 40, 0.8);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Background gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all var(--animation-medium) ease;
    background: linear-gradient(to bottom, #000000, #0A0A0A);
}

/* Form styles */
input, select, textarea {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all var(--animation-short) ease;
    color: var(--text-primary);
}

.form-field {
    background: linear-gradient(to bottom, 
        rgba(20, 20, 20, 0.8), 
        rgba(10, 10, 10, 0.6)
    );
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all var(--animation-short) ease;
}

/* App Store badge styles */
.app-store-badge {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.app-store-badge img {
    height: 50px;
    width: auto;
    transition: opacity 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Badge alignment adjustments */
.hero-cta .app-store-badge,
.cta-content .app-store-badge {
    margin-top: 1rem;
}

.header-cta .app-store-badge {
    margin-left: 1rem;
}

/* Lightbox styles */
.lightbox-trigger {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-radius: 16px;
    background-color: black;
}

.close-lightbox {
    position: absolute;
    top: -30px;
    right: 10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

/* Feature Sections Styles */
.feature-sections {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px;
    background-color: var(--bg-accent);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

.feature-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 500px;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive styles */
@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container,
    .use-cases .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content,
    .use-cases-content {
        max-width: 100%;
    }
    
    .use-case {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .use-case-icon {
        margin-bottom: 20px;
    }

    .hero-cta {
        justify-content: center;
    }
    
    .feature-sections {
        gap: 80px;
    }
    
    .feature-section {
        padding: 30px;
        gap: 40px;
    }
    
    .feature-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 16px;
    }
    
    footer .container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        text-align: center;
    }
    
    .footer-content {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .feature-sections {
        gap: 60px;
    }
    
    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .feature-content {
        max-width: 100%;
        order: 1; /* Always place content above image on mobile */
    }
    
    .feature-image {
        order: 2; /* Always place image below content on mobile */
    }
}

@media (max-width: 480px) {
    /* Adjust header layout for mobile */
    header .container {
        padding: 0 16px;
    }

    .logo {
        flex-shrink: 1;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .header-cta {
        display: flex;
        justify-content: flex-end;
        margin-right: 0;
        gap: 10px;
    }
    
    /* Keep app store badge visible on mobile */
    .header-cta .app-store-badge img {
        height: 32px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .cta {
        padding: 80px 0;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .use-case {
        padding: 24px;
    }
    
    .feature-sections {
        gap: 40px;
    }
    
    .feature-section {
        padding: 20px;
    }
    
    .feature-content h3 {
        font-size: 1.4rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
}