/* ============================================
   Noulio — Landing Page
   ============================================ */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fb;
    --color-bg-dark: #0f172a;
    --color-bg-trust: #1e293b;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-inverse: #f1f5f9;
    --color-text-muted-inverse: #94a3b8;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #dbeafe;
    --color-border: #e2e8f0;
    --color-border-dark: #334155;

    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --max-width: 1100px;
    --spacing: 1.5rem;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

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

/* Consistent section heading */
section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---- Header ---- */
.site-header {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 3rem 0 2rem;
    text-align: center;
}

.logo {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.15rem;
    color: var(--color-text-muted-inverse);
    font-weight: 400;
}

/* ---- Hero ---- */
.hero {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 0 0 4rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-align: left;
}

.hero-content p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    max-width: 600px;
}

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

.hero-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    max-width: 100%;
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 5rem 0;
    background: var(--color-bg);
}

.how-it-works h2 {
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-light);
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Features ---- */
.features {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}

.features h2 {
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Trust / Privacy ---- */
.trust {
    padding: 5rem 0;
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.trust h2 {
    margin-bottom: 0.75rem;
}

.section-lead {
    text-align: center;
    color: var(--color-text-muted-inverse);
    max-width: 560px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.trust-item {
    background: var(--color-bg-trust);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.trust-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.trust-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text-inverse);
}

.trust-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---- App Screenshots ---- */
.app-screenshots {
    padding: 5rem 0;
    background: var(--color-bg);
}

.app-screenshots h2 {
    margin-bottom: 3rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    margin: 0 auto;
}

.screenshot-caption {
    margin-top: 1rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- About ---- */
.about {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}

.about h2 {
    margin-bottom: 2.5rem;
}

.about-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
}

.about-quote {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    opacity: 0.3;
    margin: 0 auto 1rem;
    display: block;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- FAQ ---- */
.faq {
    padding: 5rem 0;
    background: var(--color-bg);
}

.faq h2 {
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0 1.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.faq-item[open] {
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-card);
    background: var(--color-bg);
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    padding: 1.25rem 0;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    color: var(--color-text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    padding: 0 0 1.25rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- CTA ---- */
.cta {
    padding: 5rem 0;
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-trust);
    border: 1px solid var(--color-border-dark);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #60a5fa);
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-inverse);
}

.cta p {
    color: var(--color-text-muted-inverse);
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cta-button:hover {
    background: var(--color-accent-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--color-bg-trust);
    color: var(--color-text-muted-inverse);
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-dark);
    text-align: center;
}

.footer-title {
    color: var(--color-text-inverse);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--color-text-muted-inverse);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    color: var(--color-text-muted-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border-dark);
    transition: all 0.15s ease;
}

.footer-social a:hover {
    color: var(--color-text-inverse);
    border-color: var(--color-text-muted-inverse);
}

.footer-bottom {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--color-text-muted-inverse);
    font-size: 0.85rem;
}

/* ---- Responsive ---- */

/* Tablet (576px+) */
@media (min-width: 576px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Horizontal trust card layout: icon on the left, text on the right */
    .trust-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.25rem 1.25rem;
        padding: 1.5rem 1.75rem;
    }

    .trust-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
        align-self: start;
    }

    .trust-item h3 {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin-bottom: 0;
    }

    .trust-item p {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr auto auto;
        align-items: center;
        text-align: left;
    }

    .footer-social {
        justify-content: flex-end;
    }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
    .logo {
        font-size: 2.75rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero .container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Keep trust at 2 columns on desktop — wider cards read better with horizontal layout */
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-card {
        padding: 3rem 3rem;
    }

    .cta-card {
        padding: 3.5rem 3rem;
    }
}

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-content h2 {
        font-size: 2.25rem;
    }
}
