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

html, body {
    height: 100%;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Site header / nav */
.site-header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header .wordmark {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #f0f0f0;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.site-nav a:hover,
.site-nav a.active {
    color: rgba(255, 255, 255, 0.9);
}

/* Main */
main {
    flex: 1;
    width: 100%;
}

/* Home (hero) */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.hero .container {
    animation: fadeIn 1.8s ease-out;
    max-width: 720px;
}

/* Hero title (only used on home) */
.logo {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #f0f0f0;
    margin-bottom: 3rem;
}

/* Phone silhouette — landscape orientation */
.phone-frame {
    position: relative;
    width: 420px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin: 0 auto 3rem;
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.03),
        0 0 80px rgba(255, 255, 255, 0.015),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
}

/* Notch on the left side (landscape right orientation) */
.phone-notch {
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 50px;
    background: #0a0a0a;
    border-radius: 0 4px 4px 0;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
}

#trajectory-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.lede {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.tagline {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.contact {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Prose pages (about, contact, privacy, terms, 404) */
.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    animation: fadeIn 0.8s ease-out;
}

.page h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.page .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.page h2 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #f0f0f0;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page p,
.page li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.page ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.page ul li {
    margin-bottom: 0.4rem;
}

.page address {
    font-style: normal;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.page .meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2rem;
}

.page .back {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.page .back:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Site footer */
.site-footer {
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.footer-meta {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.6;
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .site-nav {
        gap: 1.25rem;
    }

    .phone-frame {
        width: 320px;
        height: 152px;
        border-radius: 16px;
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .contact {
        font-size: 0.7rem;
    }

    .page {
        padding-top: 2.5rem;
    }
}

@media (max-width: 360px) {
    .phone-frame {
        width: 280px;
        height: 133px;
    }
}
