/* ===========================================
   MigrAid - Clean, Minimal Design
   Inspired by Coconote's simplicity
   =========================================== */

:root {
    --black: #e8e8e8;
    --dark: #ccc;
    --mid: #999;
    --light: #666;
    --border: #2a2a2a;
    --bg: #111111;
    --bg-soft: #161616;
    --bg-warm: #1a1a1a;
    --accent: #e8e8e8;
    --green: #7FBFA3;
    --green-dim: rgba(127, 191, 163, 0.15);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--black);
    line-height: 1.6;
}

/* ---- NAV (sticky, like Coconote) ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--black);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--mid);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--black);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--green);
    color: #111;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: #6db393;
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
}

.mobile-menu.open span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.open span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
    padding: 160px 24px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--mid);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ---- CREDIBILITY BAR ---- */
.credibility-section {
    padding: 0 0 32px;
    text-align: center;
    overflow: hidden;
}

.credibility-label {
    font-size: 0.75rem;
    color: var(--light);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.logo-marquee {
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: logoScroll 18s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logo-set {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 48px;
    flex-shrink: 0;
}

.cred-logo {
    height: 24px;
    width: auto;
    opacity: 0.35;
    filter: grayscale(100%) invert(1);
    flex-shrink: 0;
    object-fit: contain;
}

.cred-logo-tall {
    height: 36px;
}

@keyframes logoScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--green);
    color: #111;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #6db393;
    transform: translateY(-2px);
}

/* ---- SOCIAL PROOF ---- */
.social-proof {
    text-align: center;
    padding: 24px 24px 40px;
}

.proof-label {
    font-size: 0.85rem;
    color: var(--light);
    letter-spacing: 0.02em;
}

/* ---- RATING ---- */
.rating-section {
    text-align: center;
    padding: 60px 24px 80px;
    background: var(--bg);
}

.rating-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.laurel {
    flex-shrink: 0;
    height: 80px;
    width: auto;
}

.laurel-left {
    transform: scaleX(-1);
}

.rating-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stars {
    font-size: 1.6rem;
    color: var(--green);
    letter-spacing: 4px;
}

/* ---- RISK TOOL CTA ---- */
.risk-cta-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.risk-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--black);
    transition: border-color 0.2s, transform 0.2s;
}

.risk-cta-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.risk-cta-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--green);
    color: #111;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.risk-cta-left h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.risk-cta-left p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.4;
}

.risk-cta-arrow {
    font-size: 1.5rem;
    color: var(--green);
    flex-shrink: 0;
}

/* ---- HOW IT WORKS ---- */
.how-section {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg);
}

.section-label {
    font-size: 0.85rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 12px;
}

.how-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Connecting line between steps */
.steps-row::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.steps-row::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(16.66% + 24px);
    height: 1px;
    background: var(--green);
    opacity: 0.5;
    z-index: 0;
    width: 0;
    animation: lineGrow 1.5s ease-out forwards;
    animation-play-state: paused;
}

.steps-row.visible::after {
    animation-play-state: running;
}

@keyframes lineGrow {
    to { width: calc(100% - 33.32% - 48px); }
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.step-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.step-item p {
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.5;
}

/* ---- FEATURES ---- */
.features-section {
    padding: 80px 24px;
    background: var(--bg);
    text-align: center;
}

.features-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-warm);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-emoji {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.5;
}

/* ---- FAQ ---- */
.faq-section {
    padding: 80px 24px;
    background: var(--bg);
}

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

.faq-header {
    margin-bottom: 40px;
}

.faq-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.faq-header em {
    font-style: italic;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black);
    transition: color 0.2s;
}

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

.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--light);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 20px;
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.65;
}

/* ---- FINAL CTA ---- */
.final-cta {
    padding: 100px 24px;
    text-align: center;
    background: var(--bg);
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.final-cta p {
    color: var(--mid);
    font-size: 1rem;
    margin-bottom: 28px;
}

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.copyright {
    font-size: 0.8rem;
    color: var(--light);
    margin-bottom: 4px;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--light);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-right.open {
        display: flex;
    }

    .hero {
        padding: 130px 20px 60px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 400px;
    }

    .steps-row::before,
    .steps-row::after {
        display: none;
    }

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

    .feature-card {
        padding: 24px 16px;
    }

    .rating-number {
        font-size: 3rem;
    }

    .faq-header h2 {
        font-size: 2rem;
    }
}

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

    .hero h1 {
        font-size: 2rem;
    }

    .steps-row::before,
    .steps-row::after {
        display: none;
    }
}

/* ---- BLOG PAGE ---- */
.blog-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.blog-header {
    margin-bottom: 48px;
}

.blog-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--mid);
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card {
    display: block;
    text-decoration: none;
    padding: 28px;
    background: var(--bg-warm);
    border-radius: 16px;
    transition: background 0.2s;
}

.blog-card:hover {
    background: var(--border);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
}

.blog-card h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.5;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--light);
}

/* ---- BLOG ARTICLE ---- */
.blog-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.post-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: var(--green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.post-header .blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    margin-bottom: 12px;
}

.post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--light);
}

.post-content {
    line-height: 1.75;
    color: var(--dark);
}

.post-content .lead {
    font-size: 1.1rem;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 32px;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--black);
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--black);
}

.post-content p {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 1rem;
}

.post-content ul, .post-content ol {
    margin: 0 0 20px 20px;
    color: var(--dark);
}

.post-content li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.post-content strong {
    color: var(--black);
    font-weight: 600;
}

.post-content blockquote {
    border-left: 3px solid var(--green);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--bg-warm);
    border-radius: 0 8px 8px 0;
    color: var(--mid);
    font-style: italic;
}

.post-cta {
    background: var(--bg-warm);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.post-cta h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-cta p {
    color: var(--mid);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.post-sources {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-sources h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--light);
    margin-bottom: 12px;
}

.post-sources ol {
    margin-left: 16px;
}

.post-sources li {
    font-size: 0.85rem;
    color: var(--light);
    margin-bottom: 6px;
}

.post-sources a {
    color: var(--green);
    text-decoration: none;
}

.post-sources a:hover {
    text-decoration: underline;
}
