/* =============================================
   StitchKit Landing Page - Styles
   Vibe: Cozy, Playful, Clean, Soft, Modern
   ============================================= */

/* Custom Font Faces */
@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/FredokaOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amys Handwriting';
    src: url('assets/fonts/AmysHandwriting.woff2') format('woff2'),
         url('assets/fonts/AmysHandwriting.woff') format('woff'),
         url('assets/fonts/AmysHandwriting.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties */
:root {
    /* Primary Color Palette */
    --color-sage: #6fa391;
    --color-sage-dark: #4a7d6b;
    --color-sage-darker: #3a6254;
    --color-sage-light: #9dc9ba;
    --color-sage-lighter: #c5ded4;
    
    /* Background Colors */
    --color-bg-primary: #f8fafc;
    --color-bg-white: #fefefe;
    --color-bg-gray: #e5e7eb;
    
    /* Legacy mappings for compatibility */
    --color-forest: #3a6254;
    --color-forest-dark: #2d4d42;
    --color-mint: #6fa391;
    --color-mint-light: #c5ded4;
    --color-mint-bg: #9dc9ba;
    
    --color-cream: #f8fafc;
    --color-white: #fefefe;
    --color-gray-100: #f8fafc;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #c5cdd5;
    --color-gray-600: #5a6672;
    --color-gray-800: #2d3640;
    
    /* Accent Colors from App Icons */
    --color-orange: #e8a87c;
    --color-orange-light: #fdf4ed;
    --color-pink: #d4a5b9;
    --color-pink-light: #f9f0f4;
    --color-blue: #8bb8cc;
    --color-blue-light: #eef6f9;
    --color-purple: #a9a3c7;
    --color-purple-light: #f3f2f8;
    --color-yellow: #e5c96e;
    --color-yellow-light: #fcf8eb;
    
    /* Typography */
    --font-primary: 'Fredoka', 'Nunito', sans-serif;
    --font-handwritten: 'Amys Handwriting', 'Caveat', 'Patrick Hand', cursive;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(111, 163, 145, 0.08);
    --shadow-md: 0 4px 20px rgba(111, 163, 145, 0.1);
    --shadow-lg: 0 8px 40px rgba(111, 163, 145, 0.14);
    --shadow-xl: 0 16px 60px rgba(111, 163, 145, 0.18);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

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

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-forest);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    font-weight: 400;
}

.highlight {
    color: var(--color-sage);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--color-sage-light);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--color-bg-gray);
    bottom: 20%;
    left: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--color-sage-lighter);
    bottom: -100px;
    right: 20%;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(111, 163, 145, 0.1);
    transition: all var(--transition-base);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-forest);
}

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

.nav-links a:not(.btn) {
    font-weight: 400;
    color: var(--color-gray-600);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-forest);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-sage);
    border-radius: var(--radius-pill);
    transition: width var(--transition-base);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.btn-nav {
    padding: var(--space-sm) var(--space-lg) !important;
    font-size: 0.9rem !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-forest);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: var(--space-md);
    font-weight: 400;
    color: var(--color-gray-800);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-menu a:hover {
    background: var(--color-gray-100);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--color-sage);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(111, 163, 145, 0.35);
}

.btn-primary:hover {
    background: var(--color-sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 125, 107, 0.4);
}

.btn-secondary {
    background: var(--color-bg-white);
    color: var(--color-sage-dark);
    border: 2px solid var(--color-bg-gray);
}

.btn-secondary:hover {
    border-color: var(--color-sage);
    background: var(--color-sage-lighter);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-forest);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-forest);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    padding: calc(100px + var(--space-4xl)) 0 0;
    background: var(--color-bg-primary);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    margin-bottom: var(--space-lg);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    font-family: var(--font-handwritten);
    font-size: 1.4rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-white);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--color-sage-dark);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Image Styles (for mockup screenshots) */
.phone-image {
    position: relative;
}

.phone-image img {
    width: 340px;
    height: auto;
}

.phone-main {
    z-index: 2;
    transform: rotate(3deg);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* =============================================
   AI Section
   ============================================= */
.ai-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-white);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.section-tag {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-sage-lighter);
    color: var(--color-sage-darker);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: var(--space-lg);
}

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

.section-text {
    font-size: 1.15rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-xl);
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
}

.section-text em {
    color: var(--color-forest);
    font-style: normal;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 1.05rem;
    color: var(--color-gray-800);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--color-sage-lighter);
    color: var(--color-sage);
    border-radius: var(--radius-round);
}

.check-icon svg {
    width: 14px;
    height: 14px;
}

.ai-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-stack {
    position: relative;
    width: 380px;
    height: 520px;
}

.phone-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-8deg);
    z-index: 1;
}

.phone-back img {
    width: 260px;
    filter: drop-shadow(0 15px 30px rgba(111, 163, 145, 0.15));
}

.phone-front {
    position: absolute;
    top: 30px;
    right: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.phone-front img {
    width: 260px;
    filter: drop-shadow(0 20px 40px rgba(111, 163, 145, 0.2));
}

/* =============================================
   Toolkit Section
   ============================================= */
.toolkit-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-gray-600);
    max-width: 500px;
    margin: 0 auto;
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.tool-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-bg-gray);
    transition: all var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.tool-icon svg {
    width: 28px;
    height: 28px;
}

.icon-orange {
    background: var(--color-orange-light);
    color: var(--color-orange);
}

.icon-blue {
    background: var(--color-blue-light);
    color: var(--color-blue);
}

.icon-purple {
    background: var(--color-purple-light);
    color: var(--color-purple);
}

.icon-yellow {
    background: var(--color-yellow-light);
    color: #C9A227;
}

.tool-title {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.tool-desc {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: var(--font-handwritten);
}

/* =============================================
   Testimonials Section
   ============================================= */
.testimonials-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-white);
    overflow: hidden;
}

.testimonials-carousel {
    margin-top: var(--space-xl);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: var(--space-xl);
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex-shrink: 0;
    width: 340px;
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--color-bg-gray);
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.testimonial-content p {
    font-size: 1.15rem;
    color: var(--color-gray-800);
    line-height: 1.7;
    font-family: var(--font-handwritten);
}


.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-sage);
    color: var(--color-bg-white);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 400;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 400;
    color: var(--color-forest);
}

.author-title {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    font-family: var(--font-handwritten);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--color-sage);
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-primary);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    border: 1px solid var(--color-bg-gray);
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-sage-light);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--color-sage);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-forest);
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-sage);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-gray-600);
    line-height: 1.7;
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-white);
}

.cta-card {
    position: relative;
    background: var(--color-sage);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
    font-family: var(--font-handwritten);
    font-size: 1.4rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--color-sage-darker);
    color: var(--color-bg-white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

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

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin: var(--space-md) 0 var(--space-lg);
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-sage-light);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-xl);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-badge {
        margin: 0 auto;
    }
    
    .hero-visual {
        margin-top: var(--space-3xl);
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-content {
        text-align: center;
    }
    
    .feature-list {
        display: inline-block;
        text-align: left;
    }
    
    .ai-visual {
        margin-top: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-stack {
        width: 300px;
        height: 420px;
    }
    
    .phone-back img,
    .phone-front img {
        width: 220px;
    }
    
    .phone-image img {
        width: 300px;
    }
    
    .testimonial-card {
        width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-card {
        padding: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .phone-image img {
        width: 280px;
    }
    
    .phone-stack {
        width: 260px;
        height: 380px;
    }
    
    .phone-back,
    .phone-front {
        position: relative;
        transform: none;
    }
    
    .phone-back {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* =============================================
   Animations on Scroll (AOS-like)
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pause testimonial animation on hover */
.testimonials-carousel:hover .testimonial-track {
    animation-play-state: paused;
}

