
/* 
   ChitYap Design System 
   Focus: Calm, Premium, Breathable, Human
*/

:root {
    /* Color Palette - Chitty Orange Theme */
    --bg-color: #FFFBF7;
    /* Very light warm cream */
    --text-color: #2D2A26;
    /* Soft charcoal */
    --accent-color: #FF8c42;
    /* Vibrant Chitty Orange */
    --accent-soft: #FFEAD9;
    /* Light orange highlight */
    --secondary-color: #00B4AF;
    /* Complementary Teal/Cyan from mascot bg */
    --surface-color: #FFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

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

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
    /* App icon style */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

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

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background-color: #007AFF;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    background-color: #0066DD;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-btn img {
    height: 50px;
    width: auto;
    border-radius: 0;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-small {
    background-color: transparent;
    border: 1px solid var(--text-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    font-weight: 300;
}

.micro-copy {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    opacity: 0.6;
}

.cta-group {
    display: flex;
    justify-content: flex-start;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-height: 80vh;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Philosophy Section */
.philosophy-section {
    padding: var(--spacing-xl) 0;
}

.text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.text-block h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.text-block p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: #5A5A5A;
}

.image-block {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.image-block.reversed {
    flex-direction: row-reverse;
}

.image-block img {
    flex: 1;
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
}

.image-block .caption {
    flex: 1;
    padding: var(--spacing-md);
}

.image-block h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: #F8F6F2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-color);
}

.highlight-block {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.highlight-block .content {
    flex: 1;
}

.highlight-block h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.highlight-block .image-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-block .image-wrapper img {
    max-width: 200px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 16px;
}

.mascot-caption {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 1rem;
    font-style: italic;
    font-family: var(--font-heading);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.signup-form {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.signup-form input {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    width: 300px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--text-color);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.links a {
    margin-left: var(--spacing-md);
    font-size: 0.9rem;
    opacity: 0.6;
}

.links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* App Preview Section */
.preview-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--bg-color), #FFF);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.screens-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 3rem;
}

.carousel-track-container {
    overflow: hidden;
    max-width: 320px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    z-index: 10;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel-btn-left {
    left: 0;
}

.carousel-btn-right {
    right: 0;
}

.carousel-dots {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent-color);
}

.phone-mockup {
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    width: 100%;
    border: 3px solid #333;
}

.phone-mockup img {
    border-radius: 30px;
    width: 100%;
    display: block;
}

.carousel-track-container {
    max-width: 280px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    .navbar-inner {
        padding: 0.75rem 1rem;
    }

    .logo-wrapper {
        gap: 8px;
    }

    .nav-logo {
        height: 32px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a:not(.btn-small) {
        display: none;
    }

    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .app-store-btn {
        display: inline-block;
    }

    .app-store-btn img {
        height: 44px;
    }

    .image-block,
    .image-block.reversed,
    .highlight-block {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }

    .image-block img {
        max-width: 200px;
        max-height: 200px;
        object-fit: cover;
        margin: 0 auto;
        border-radius: 12px;
    }

    .image-block .caption {
        padding: 0;
        text-align: center;
    }

    .image-block h3 {
        font-size: 1.5rem;
    }

    .text-block {
        padding: 0 0.5rem;
    }

    .text-block h2 {
        font-size: 2rem;
    }

    .signup-form {
        flex-direction: column;
        align-items: center;
    }

    .signup-form input {
        width: 100%;
        max-width: 300px;
    }
}