/**
 * Moontheme Marketing Base CSS
 *
 * Generic layout patterns for marketing pages.
 * All values reference --mv-* design tokens.
 */

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: transparent;
    border-bottom: none;
    border-left: 1px solid var(--mv-border);
    border-right: 1px solid var(--mv-border);
    box-sizing: border-box;
}

.nav-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 32px;
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Scoped to .main-nav to avoid conflicts with sidebar nav */
.main-nav .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
}

/* ==========================================================================
   Layout - Grid System
   ========================================================================== */

.section {
    padding: 64px 32px;
    max-width: 1420px;
    margin: 0 auto;
}

.section-divider {
    border-top: 1px solid var(--mv-border);
    margin: 0 32px;
}

/* Grid Container */
.figma-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Full-Width Container (edge-to-edge) */
.figma-full {
    max-width: 1780px;
    margin: 0 auto;
}

/* Content Container (with margins) */
.figma-content {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   Figma Components
   ========================================================================== */

/* Divider - Thick (72px section break) */
.divider-thick {
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--mv-border);
}

/* Divider - Thin (1px content break) */
.divider-thin {
    height: 1px;
    background: var(--mv-border);
    margin: 32px 0;
}

/* Eyebrow - Section label */
.eyebrow {
    font-family: var(--mv-font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mv-text-50);
    padding: 6px 16px;
    background: var(--mv-bg-elevated);
    border: 1px solid var(--mv-border);
    border-radius: 4px;
    display: inline-block;
}

/* Card/S - Small feature card */
.card-s {
    width: 100%;
    max-width: 452px;
    min-height: 186px;
    background: var(--mv-bg-elevated);
    border: 1px solid var(--mv-border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease;
}

.card-s:hover {
    border-color: var(--mv-border-strong);
}

.card-s h3 {
    font-family: var(--mv-font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--mv-text);
    margin-bottom: 8px;
}

.card-s p {
    font-family: var(--mv-font-sans);
    font-size: 14px;
    color: var(--mv-text-75);
    line-height: 1.5;
}

/* Card Grid - 3x3 layout */
.card-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1420px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .card-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .card-grid-3x3 {
        grid-template-columns: 1fr;
    }
}

/* Feature Grid - 2 rows, 3 cols */
.feature-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1420px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .feature-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-grid-6 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    min-height: 500px;
    padding: 120px 32px 80px;
    max-width: 1420px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: var(--mv-font-serif);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--mv-text);
    margin-bottom: 24px;
}

.hero-section p {
    font-family: var(--mv-font-sans);
    font-size: 24px;
    color: var(--mv-text-75);
    line-height: 1.5;
    max-width: 720px;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }
    .hero-section p {
        font-size: 18px;
    }
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
    color: var(--mv-text-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--mv-text);
}

.entry-content a {
    color: var(--mv-text-accent);
}

.entry-content a:hover {
    color: var(--mv-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    background: var(--mv-text);
    color: var(--mv-bg);
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    opacity: 0.9;
    color: var(--mv-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--mv-text);
    padding: 12px 24px;
    border-radius: 9999px;
    border: 1px solid var(--mv-border-strong);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    border-color: var(--mv-text);
    color: var(--mv-text);
}

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

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--mv-text);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--mv-text);
}

.legal-content p {
    color: var(--mv-text-75);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--mv-text-75);
    margin-bottom: 16px;
    padding-left: 24px;
}

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

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-card {
    background: var(--mv-bg-surface);
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--mv-border-strong);
}

.solution-card {
    background: var(--mv-bg-surface);
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--mv-text);
}

.solution-card p {
    color: var(--mv-text-75);
    line-height: 1.6;
}

.solution-card .visual-note {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--mv-text-50);
    margin-top: 12px;
}

/* ==========================================================================
   Comparison Tables
   ========================================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--mv-border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--mv-text);
    font-size: 14px;
}

.comparison-table td {
    color: var(--mv-text-75);
    font-size: 14px;
}

.comparison-table tr:hover td {
    background: var(--mv-bg-surface);
}

.comparison-table .highlight {
    background: var(--mv-bg-elevated);
}

.comparison-table .highlight th,
.comparison-table .highlight td {
    color: var(--mv-text);
}

.check { color: #4ade80; }
.cross { color: var(--mv-text-40); }

.feature-table {
    width: 100%;
    border-collapse: collapse;
}

.feature-table th,
.feature-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--mv-border);
    vertical-align: top;
}

.feature-table th {
    font-weight: 600;
    color: var(--mv-text);
    width: 30%;
}

.feature-table td {
    color: var(--mv-text-75);
}
