/* ============================================
   Atlas & Arrow — Compass Landing Page
   Colors: #DD6E42 #E8DAB2 #4F6D7A #C0D6DF #EAEAEA
   ============================================ */

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

:root {
    --terracotta: #DD6E42;
    --cream: #E8DAB2;
    --slate: #4F6D7A;
    --powder: #C0D6DF;
    --gray: #EAEAEA;
    --white: #FFFFFF;
    --dark: #2C3E44;
    --text: #3A3A3A;
    --text-light: #6B7B82;

    --font-body: Verdana, Geneva, sans-serif;
    --font-display: Verdana, Geneva, sans-serif;

    --nav-height: 72px;
    --container-width: 1200px;
    --section-padding: 120px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

.nav-spacer {
    height: var(--nav-height);
    min-height: var(--nav-height);
    flex-shrink: 0;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: #c75e36;
    border-color: #c75e36;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(221, 110, 66, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--slate);
    border-color: var(--slate);
}

.btn-outline:hover {
    background: var(--slate);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 109, 122, 0.25);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.35s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(79, 109, 122, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.35s ease;
    z-index: 1001;
}

.navbar.scrolled .nav-logo {
    color: var(--slate);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-logo em {
    font-style: italic;
    opacity: 0.6;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--text-light);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link:not(.cta-link):hover,
.navbar.scrolled .nav-link:not(.cta-link).active {
    color: var(--slate);
    background: var(--powder);
}

.nav-link.cta-link {
    background: var(--terracotta);
    color: var(--white) !important;
    padding: 8px 24px;
    font-weight: 600;
    margin-left: 8px;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle span {
    background: var(--slate);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 62, 68, 0.82) 0%,
        rgba(44, 62, 68, 0.7) 40%,
        rgba(44, 62, 68, 0.85) 100%
    );
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(221, 110, 66, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(192, 214, 223, 0.08) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: #F0895A;
    text-shadow: 0 2px 20px rgba(221, 110, 66, 0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero .btn-outline {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-hint svg {
    width: 20px;
    height: 20px;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections (General) --- */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: var(--powder);
    color: var(--slate);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--slate);
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- About Section --- */
.section-about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    padding: 40px 32px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(192, 214, 223, 0.5);
    transition: all 0.35s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(79, 109, 122, 0.12);
    border-color: var(--powder);
}

.about-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--powder);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--slate);
}

.about-icon svg {
    width: 24px;
    height: 24px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* --- Features Section --- */
.section-features {
    background: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: 16px;
    background: var(--white);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(79, 109, 122, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--powder);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--slate);
    transition: all 0.35s ease;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card:hover .feature-icon {
    background: var(--terracotta);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* --- Themes Section --- */
.section-themes {
    background: var(--white);
}

.themes-showcase {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.theme-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-6px);
}

.theme-preview {
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.tp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.tp-name {
    width: 60%;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tp-link {
    width: 85%;
    height: 24px;
    border-radius: 6px;
}

/* Theme colors */
.theme-minimal { background: #fff; }
.theme-minimal .tp-avatar { background: #e0e0e0; }
.theme-minimal .tp-name { background: #ccc; }
.theme-minimal .tp-link { background: #f0f0f0; border: 1px solid #ddd; }

.theme-midnight { background: #1a1a2e; }
.theme-midnight .tp-avatar { background: #4a4a6a; }
.theme-midnight .tp-name { background: #3a3a5a; }
.theme-midnight .tp-link { background: #2a2a4a; border: 1px solid #3a3a5a; }

.theme-ocean { background: #e8f4f8; }
.theme-ocean .tp-avatar { background: #7ec8e3; }
.theme-ocean .tp-name { background: #b8dfe8; }
.theme-ocean .tp-link { background: #fff; border: 1px solid #7ec8e3; }

.theme-sunset { background: #fff5f0; }
.theme-sunset .tp-avatar { background: #ff7e5f; }
.theme-sunset .tp-name { background: #ffb99a; }
.theme-sunset .tp-link { background: #fff; border: 1px solid #ff7e5f; }

.theme-forest { background: #f0f5f0; }
.theme-forest .tp-avatar { background: #4a8c5c; }
.theme-forest .tp-name { background: #8ab89a; }
.theme-forest .tp-link { background: #fff; border: 1px solid #4a8c5c; }

.theme-cosmic { background: #1a0a2e; }
.theme-cosmic .tp-avatar { background: #9b59b6; }
.theme-cosmic .tp-name { background: #6a3a8a; }
.theme-cosmic .tp-link { background: #2a1a4a; border: 1px solid #9b59b6; }

.theme-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.themes-more {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* --- Steps Section --- */
.section-steps {
    background: var(--gray);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 0 20px;
    position: relative;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--terracotta);
    box-shadow: 0 4px 16px rgba(221, 110, 66, 0.15);
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

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

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.step p code {
    background: var(--powder);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--slate);
}

.step-connector {
    flex-shrink: 0;
    width: 60px;
    color: var(--powder);
    padding-top: 40px;
}

.step-connector svg {
    width: 60px;
    height: 24px;
}

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, var(--slate) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(221, 110, 66, 0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-content .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-content .btn-outline {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-content .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.cta-requirements {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.cta-requirements span {
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    padding: 72px 0 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(221, 110, 66, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #c75e36;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(221, 110, 66, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--slate);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
        z-index: 9999;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar .nav-links .nav-link,
    .navbar.scrolled .nav-links .nav-link {
        color: rgba(255, 255, 255, 0.8);
        background: transparent;
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .navbar .nav-links .nav-link:hover,
    .navbar .nav-links .nav-link.active,
    .navbar.scrolled .nav-links .nav-link:hover,
    .navbar.scrolled .nav-links .nav-link.active {
        color: var(--white);
        background: rgba(255, 255, 255, 0.15);
    }

    .navbar .nav-links .nav-link.cta-link,
    .navbar.scrolled .nav-links .nav-link.cta-link {
        background: var(--terracotta);
        color: var(--white);
    }

    .nav-links li:last-child {
        margin-top: 16px;
    }

    .nav-toggle.open span,
    .navbar.scrolled .nav-toggle.open span {
        background: var(--white);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

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

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .theme-preview {
        min-height: 140px;
        padding: 16px 12px;
    }
}
