/* ============================================
   Northcote AI — Landing Page Styles
   Palette: Deep Navy + White + Cool Mint
   Navy #0a1628, White #f0f2f5, Mint #5ec4b6,
   Steel #6b7a90, Emerald #2d9c6f
   ============================================ */

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

:root {
    /* Primary palette */
    --white: #f0f2f5;
    --white-bright: #ffffff;
    --mint: #5ec4b6;
    --mint-light: #7dd8cc;
    --mint-dim: rgba(94, 196, 182, 0.15);
    --navy: #0a1628;
    --navy-light: #0f1f3a;
    --navy-mid: #142544;
    --steel: #6b7a90;
    --steel-light: #8a96a8;
    --emerald: #2d9c6f;
    --emerald-dim: rgba(45, 156, 111, 0.15);
    --error: #d94f5c;
    --error-dim: rgba(217, 79, 92, 0.15);

    /* Semantic tokens */
    --bg-primary: #0a1628;
    --bg-secondary: #0d1b30;
    --bg-elevated: #111f38;
    --text-primary: #f0f2f5;
    --text-secondary: #8a96a8;
    --text-muted: #6b7a90;
    --accent: #5ec4b6;
    --accent-hover: #7dd8cc;
    --cta-bg: #5ec4b6;
    --cta-text: #0a1628;
    --card-bg: rgba(15, 31, 58, 0.6);
    --card-border: rgba(107, 122, 144, 0.2);
    --card-border-hover: rgba(107, 122, 144, 0.4);

    --font-primary: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

img {
    max-width: 100%;
    display: block;
}

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

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

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-light) 100%);
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}

.logo-text {
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}

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

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

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--cta-bg);
    color: var(--cta-text) !important;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(94, 196, 182, 0.3);
    color: var(--cta-text) !important;
}

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

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
    border-bottom: 1px solid var(--card-border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--cta-bg);
    color: var(--cta-text);
    box-shadow: 0 2px 12px rgba(94, 196, 182, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px rgba(94, 196, 182, 0.4);
    color: var(--cta-text);
}

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.arrow {
    transition: transform 0.2s;
}

.btn-ghost:hover .arrow {
    transform: translateY(3px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(94, 196, 182, 0.08) 0%, rgba(45, 156, 111, 0.03) 40%, transparent 70%);
    pointer-events: none;
}

.hero-pre {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--white-bright);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-proof {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-proof::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(45, 156, 111, 0.4);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-heading {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white-bright);
}

.highlight-text {
    color: var(--accent);
}

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* --- Cards (Problem Section) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
}

.card-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--white-bright);
}

.card-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- App Preview --- */
.app-preview {
    margin-top: 56px;
}

.app-window {
    background: var(--bg-elevated);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(107, 122, 144, 0.1);
}

.app-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(15, 31, 58, 0.8);
    border-bottom: 1px solid var(--card-border);
}

.app-dots {
    display: flex;
    gap: 8px;
}

.app-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(107, 122, 144, 0.3);
}

.app-dots span:first-child { background: #ff5f57; }
.app-dots span:nth-child(2) { background: #ffbd2e; }
.app-dots span:nth-child(3) { background: #28c840; }

.app-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.app-content {
    display: flex;
    min-height: 320px;
}

.app-sidebar {
    width: 180px;
    padding: 16px;
    border-right: 1px solid var(--card-border);
    flex-shrink: 0;
}

.sidebar-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-item.active {
    background: rgba(94, 196, 182, 0.1);
    color: var(--accent);
    font-weight: 500;
}

.badge {
    background: var(--accent);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.app-main {
    flex: 1;
    padding: 20px 24px;
}

.app-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.app-header-row h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white-bright);
}

.stat-pill {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 20px;
}

.loan-card {
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.loan-card:hover {
    border-color: var(--card-border-hover);
}

.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.loan-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.loan-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.status-warning {
    background: var(--error-dim);
    color: #e87a83;
}

.status-ok {
    background: var(--emerald-dim);
    color: #4cc98f;
}

.status-alert {
    background: var(--error-dim);
    color: #e87a83;
}

.loan-details {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.loan-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Steps (How It Works) --- */
.steps {
    max-width: 600px;
    margin: 56px auto 0;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white-bright);
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--card-border) 0%, transparent 100%);
    margin: 12px 0 12px 27px;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.feature {
    padding: 28px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: transform 0.3s, border-color 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white-bright);
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Trust --- */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-item svg {
    color: var(--emerald);
    flex-shrink: 0;
}

/* --- Pricing --- */
.pricing-card {
    background: var(--card-bg);
    border: 2px solid rgba(94, 196, 182, 0.2);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin-top: 40px;
}

.pricing-amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 8px 0 32px;
}

.pricing-list {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-list li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-list li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--emerald);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- FAQ --- */
.faq-list {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--card-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Final CTA --- */
.section-cta {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--bg-secondary) 100%);
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.cta-headline {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--white-bright);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-input {
    flex: 1;
    min-width: 240px;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(10, 22, 40, 0.8);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-input:focus {
    border-color: var(--accent);
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

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

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

.footer-legal {
    font-size: 12px;
    color: rgba(107, 122, 144, 0.6);
}

/* --- Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .card-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-headline {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .app-sidebar {
        display: none;
    }

    .app-content {
        min-height: auto;
    }

    .step {
        gap: 16px;
    }

    .step-number {
        font-size: 24px;
        width: 40px;
    }

    .step-line {
        margin-left: 19px;
    }

    .trust-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-amount {
        font-size: 40px;
    }

    .section {
        padding: 64px 0;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-input {
        min-width: unset;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-pre {
        font-size: 12px;
    }

    .section-heading {
        font-size: 24px;
    }

    .card {
        padding: 24px;
    }
}
