/* Landing - Tilda-inspired minimal design */

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

:root {
    --bg: #faf9f7;
    --bg-alt: #f4f3f0;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --accent: #2d2d2d;
    --accent-hover: #000;
    --border: #e5e5e5;
    --white: #fff;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #e07b4c;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

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

.nav-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--accent-hover);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

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

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 420px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 1;
}

.orbit {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 50%;
    position: relative;
}

.orbit::before {
    content: '';
    position: absolute;
    inset: 40px;
    border: 1px dashed var(--border);
    border-radius: 50%;
}

.orbit-ball {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: orbit-move 4s ease-in-out infinite;
}

@keyframes orbit-move {
    0%, 100% { left: 0; transform: translateY(-50%) translateX(0); }
    50% { left: 100%; transform: translateY(-50%) translateX(-100%); }
}

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

.section-light {
    background: var(--bg-alt);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.section-label-center {
    display: block;
    text-align: center;
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-title-center {
    text-align: center;
}

.section-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.section-text strong {
    color: var(--text);
    font-weight: 500;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Cards */
.section-visual {
    display: flex;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: 280px;
    height: 200px;
}

.card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    width: 240px;
    transition: transform 0.3s;
}

.card-1 {
    top: 0;
    left: 0;
    z-index: 2;
}

.card-2 {
    bottom: 0;
    right: 0;
    z-index: 1;
}

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

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

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

.feature {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.feature:hover {
    border-color: var(--text-muted);
}

.feature-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--accent);
    color: var(--white);
}

.cta-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--accent);
}

.cta .btn-primary:hover {
    background: var(--bg);
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 14px;
    font-weight: 600;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-visual {
        width: 300px;
        height: 300px;
        right: -50px;
        opacity: 0.5;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section-visual {
        order: -1;
    }

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

    .feature {
        text-align: center;
        padding: 32px 20px;
    }

    .feature:last-child {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }

    .feature-num {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .feature-title {
        margin-bottom: 8px;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature {
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 20px;
        padding: 24px;
    }

    .feature:last-child {
        grid-column: auto;
        max-width: none;
    }

    .feature-num {
        grid-row: span 2;
        align-self: center;
        font-size: 24px;
        margin: 0;
    }

    .feature-title {
        margin-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .nav {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero .container {
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .hero-visual {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        width: 320px;
        height: 320px;
        opacity: 0.12;
        z-index: 0;
    }

    .orbit {
        border-color: var(--text);
    }

    .orbit::before {
        border-color: var(--text);
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-lead br {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .card-stack {
        width: 240px;
        height: 180px;
    }

    .card {
        width: 200px;
        padding: 20px;
    }

    .cta {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
        margin-bottom: 16px;
    }

    .hero-visual {
        width: 280px;
        height: 280px;
        opacity: 0.1;
    }

    .hero-lead {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-actions {
        max-width: 100%;
        gap: 10px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .section {
        padding: 48px 0;
    }

    .section-label {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .section-text {
        font-size: 15px;
    }

    .card-stack {
        width: 200px;
        height: 160px;
    }

    .card {
        width: 170px;
        padding: 16px;
    }

    .card-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .card-label {
        font-size: 13px;
    }

    .feature {
        padding: 20px 16px;
        gap: 0 16px;
    }

    .feature-num {
        font-size: 20px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-text {
        font-size: 13px;
    }

    .cta {
        padding: 48px 0;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .footer {
        padding: 24px 0;
    }

    .footer-brand {
        font-size: 13px;
    }

    .footer-copy {
        font-size: 12px;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-visual {
        width: 200px;
        height: 200px;
        opacity: 0.08;
    }

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