/* ============================================
   Noetic Frame - Design System
   Inspired by perfectly.so warm minimalism
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2b180a;
    background-color: #fcf6ef;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: #9b6a3c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7a4f28;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid #e8d3c0;
    background-color: #fcf6ef;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav__brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.4rem;
    color: #2b180a;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav__brand:hover {
    color: #2b180a;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b5744;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: #2b180a;
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2b180a;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: #2b180a;
}

.hero p {
    font-size: 1.2rem;
    color: #6b5744;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section */
.section {
    padding: 80px 0;
}

.section--bordered {
    border-top: 1px solid #e8d3c0;
}

.section__title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 56px;
    color: #2b180a;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff8f2;
    border: 1px solid #e8d3c0;
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(43, 24, 10, 0.08);
}

.product-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-card__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #2b180a;
}

.product-card__desc {
    color: #6b5744;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: #2b180a;
    color: #fcf6ef;
}

.btn--primary:hover {
    background-color: #4a3020;
    color: #fcf6ef;
}

.btn--outline {
    background-color: transparent;
    color: #2b180a;
    border: 1.5px solid #2b180a;
}

.btn--outline:hover {
    background-color: #2b180a;
    color: #fcf6ef;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid #e8d3c0;
    text-align: center;
}

.footer p {
    color: #6b5744;
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   App Landing Page Styles
   ============================================ */

.app-hero {
    padding: 80px 0 60px;
}

.app-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-hero__content {
    text-align: left;
}

.app-hero__icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 24px;
}

.app-hero__title {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.app-hero__subtitle {
    font-size: 1.15rem;
    color: #6b5744;
    line-height: 1.6;
    margin-bottom: 28px;
}

.app-hero__badges {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.app-hero__badges a img {
    height: 52px;
}

.app-hero__image img {
    width: 100%;
    border-radius: 12px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

.feature {
    text-align: center;
    padding: 24px;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature p {
    color: #6b5744;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2b180a;
    color: #fcf6ef;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.step h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step p {
    color: #6b5744;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */

.legal {
    padding: 60px 0 80px;
}

.legal h1 {
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.4rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: #2b180a;
}

.legal p, .legal li {
    color: #4a3020;
    font-size: 0.95rem;
    line-height: 1.75;
}

.legal ul {
    padding-left: 20px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: #9b6a3c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal strong {
    color: #2b180a;
}

.legal__footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e8d3c0;
}

.legal__footer p {
    color: #9b8a7a;
    font-size: 0.85rem;
}

/* ============================================
   404 Page
   ============================================ */

.not-found {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.not-found__code {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 6rem;
    color: #dab697;
    line-height: 1;
    margin-bottom: 12px;
}

.not-found h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.not-found p {
    color: #6b5744;
    font-size: 1rem;
    margin-bottom: 28px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid--three {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .app-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-hero__content {
        text-align: center;
    }

    .app-hero__badges {
        justify-content: center;
    }

    .app-hero__title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fcf6ef;
        border-bottom: 1px solid #e8d3c0;
        padding: 20px 24px;
        gap: 16px;
    }

    .nav__links.active {
        display: flex;
    }

    .nav__toggle {
        display: block;
    }

    .product-card {
        padding: 28px;
    }
}
