/* 
  Kite RSS - Official Website Style
  Theme: Swiss Modernism 2.0 & Minimalist Editorial
*/

/* Reset & Variables */
:root {
    --bg-primary: #FDFBF7;
    --bg-secondary: #F5F2EB;
    --text-primary: #1C1917;
    --text-muted: #78716C;
    --accent: #EA580C; /* RSS Orange */
    --accent-hover: #C2410C;
    --border-color: #E7E5E4;
    --card-bg: #FFFFFF;
    --card-shadow: 0 10px 30px rgba(28, 25, 23, 0.04);
    --card-shadow-hover: 0 20px 50px rgba(28, 25, 23, 0.08);
    --font-heading: 'Newsreader', 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --container-max-width: 1100px;
    --transition-standard: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

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

/* Layout Elements */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.5);
    transition: var(--transition-standard);
}

header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
}

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

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

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(28, 25, 23, 0.02);
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-standard);
}

.lang-switch:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(234, 88, 12, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Mockup Layout */
.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 2rem;
}

.mock-column {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.mock-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.mock-feed-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mock-feed-item:last-child {
    border-bottom: none;
}

.mock-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    background-color: #ECE7DF;
    border-radius: 3px;
    text-transform: uppercase;
}

.mock-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.mock-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Bento Feature Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--text-primary);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--bg-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 2rem;
}

.bento-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.bento-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Appstore links section */
.appstore-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.appstore-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.appstore-section p {
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.appstore-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-standard);
}

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

/* Legal Pages Styling (Privacy, Support) */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 8rem;
    max-width: 750px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
    margin-top: 4rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

/* Contact Form */
.contact-form-wrapper {
    margin-top: 4rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-standard);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo {
    color: var(--bg-primary);
}

.footer-brand p {
    color: #A8A29E;
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.footer-links-col h5 {
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    color: #A8A29E;
    font-size: 0.9rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #44403C;
    padding-top: 2rem;
    color: #78716C;
    font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card.large {
        grid-column: span 1;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-mockup {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* simple burger replacement or omit for extreme minimal */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .appstore-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Gallery Showcase Styles */
.gallery-section {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1.5rem 0 3rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.gallery-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gallery-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: var(--transition-standard);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--text-primary);
}

@media (max-width: 600px) {
    .gallery-item {
        flex: 0 0 280px;
    }
}
