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

:root {
    --bg: #F8F6F1;
    --text: #2B3A2B;
    --text-muted: rgba(43, 58, 43, 0.5);
    --text-faint: rgba(43, 58, 43, 0.3);
    --border: rgba(43, 58, 43, 0.1);
    --accent: #D4C5A3;
    --coral: #E07B5A;
    --sage: #7A9B8A;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        linear-gradient(90deg, var(--text) 1px, transparent 1px),
        linear-gradient(180deg, var(--text) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-mark::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--coral);
}

.logo span {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.header-meta {
    display: flex;
    gap: 3rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Typography */
.label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.italic {
    font-style: italic;
    color: var(--coral);
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
    margin: 2rem 0 2.5rem;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn span,
.btn svg {
    position: relative;
    z-index: 1;
}

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

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Hero Steps */
.hero-steps {
    border-left: 1px solid var(--border);
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
    cursor: default;
}

.step:hover {
    background: rgba(43, 58, 43, 0.02);
}

.step-num {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-faint);
    transition: color 0.3s ease;
}

.step:hover .step-num {
    color: var(--coral);
}

.step-title {
    flex: 1;
    font-size: 1.125rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step:hover .step-title {
    color: var(--text);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.step:hover .step-desc {
    opacity: 1;
    transform: translateX(0);
}

/* Sections */
.section {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 3rem;
}

.section-num {
    display: block;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--sage);
    margin-bottom: 0.75rem;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.why-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.section-cta .cta-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-cta p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

footer span:first-child {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

/* Page Hero (for inner pages) */
.page-hero {
    padding: 8rem 0 4rem;
    max-width: 600px;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.page-hero .description {
    margin-bottom: 0;
}

/* Header Link */
.header-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--text);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
}

.pricing-featured {
    border-color: var(--coral);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    background: var(--coral);
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -0.02em;
}

.pricing-price small {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.pricing-features li:last-child {
    border-bottom: none;
}

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

.btn-secondary::before {
    background: var(--bg);
}

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

/* Adventures Grid */
.adventures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.adventure-card {
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.adventure-card:hover {
    border-color: var(--text);
    background: white;
}

.adventure-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.adventure-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Auth Page */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 8rem 0 4rem;
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border);
    background: white;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--text);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--coral);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-nav {
    display: flex;
    gap: 2rem;
}

.dashboard-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    color: var(--text);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}

.dashboard-card {
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-card:hover {
    border-color: var(--text);
    background: white;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.dashboard-card .card-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed var(--border);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.gallery-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gallery-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.gallery-card .card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-steps {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 2rem;
    }

    .why-grid,
    .pricing-grid,
    .adventures-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

@media (max-width: 768px) {
    .header-meta {
        display: none;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .section-cta .cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.modal p:last-of-type {
    margin-bottom: 0;
}

.modal a {
    color: var(--text);
}

.modal a:hover {
    color: var(--coral);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
}
