@font-face {
    font-family: 'Ramphox';
    src: url('/assets/fonts/Ramphox.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --black: #11111b;
    --white: #cdd6f4;
    --accent: #cba6f7;

    --grey-dark: #181825;
    --grey-mid: #45475a;
    --grey-text: #a6adc8;
    --border: rgba(205, 214, 244, 0.08);

    --font-display: 'Ramphox', sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-body: 'Instrument Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-height: 64px;
    --container: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--white);
    background: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--grey-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--grey-mid);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
}

.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(203, 166, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203, 166, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(203, 166, 247, 0.08) 0%, transparent 70%);
}

@keyframes grid-drift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 48px 52px;
    z-index: 1;
}

.hero-text {
    text-align: right;
    color: var(--white);
}

.hero-text .hero-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 12px;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 96px);
    line-height: 0.92;
    letter-spacing: -1px;
    color: var(--white);
    text-transform: uppercase;
}

main {
    position: relative;
    background: var(--black);
    margin-top: 100vh;
    z-index: 1;
}

.about-section {
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border);
}

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

.about-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    max-width: 700px;
}

.about-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--grey-text);
    max-width: 560px;
    margin-bottom: 40px;
}

.about-screenshot {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--black);
    font-weight: 600;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.cta-btn:hover {
    background: #b48eea;
}

.cta-btn--ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(203, 166, 247, 0.3);
}

.cta-btn--ghost:hover {
    background: rgba(203, 166, 247, 0.06);
    border-color: var(--accent);
}

.cta-icon {
    width: 12px;
    height: 12px;
    filter: invert(78%) sepia(28%) saturate(1900%) hue-rotate(220deg) brightness(104%) contrast(96%);
    opacity: 0.8;
}

.features-section {
    padding: 80px 0 0;
    border-bottom: 1px solid var(--border);
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.feature-card {
    padding: 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.feature-card:nth-child(3n) {
    border-right: none;
}

.feature-card:hover {
    background: rgba(203, 166, 247, 0.03);
}

.feature-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

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

.install-section {
    padding: 80px 0 100px;
}

.steps {
    margin: 0 0 48px;
    border-top: 1px solid var(--border);
}

.step {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
    padding-top: 4px;
    width: 24px;
}

.step-body {
    flex: 1;
}

.step-body h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
}

.step-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--grey-text);
    margin-bottom: 12px;
}

.step-body p:last-child {
    margin-bottom: 0;
}

.code-block {
    position: relative;
    margin: 14px 0;
}

.code-block code {
    display: block;
    background: rgba(203, 166, 247, 0.04);
    border: 1px solid rgba(203, 166, 247, 0.15);
    padding: 14px 20px;
    padding-right: 72px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    letter-spacing: 0.02em;
    margin: 0;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(203, 166, 247, 0.25);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
    opacity: 1;
    border-color: var(--accent);
}

.copy-btn.copied {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

code.inline {
    display: inline;
    background: rgba(203, 166, 247, 0.08);
    border: 1px solid rgba(203, 166, 247, 0.15);
    padding: 2px 6px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    border-radius: 2px;
}

.gh-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.gh-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

footer {
    background: var(--grey-dark);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.footer-sub {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-nav {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-copy {
    font-size: 12px;
    color: #666;
    width: 100%;
    text-align: right;
}

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

    .feature-card:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .feature-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    nav {
        padding: 0 24px;
    }

    /* hero goes static on mobile */
    .hero {
        position: relative;
        height: 60vh;
        min-height: 360px;
        z-index: auto;
    }

    main {
        margin-top: 0;
    }

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

    .hero-overlay {
        padding: 32px 28px;
    }

    /* mobile nav */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        opacity: 0.6;
        font-size: 13px;
    }

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

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

    .feature-card:nth-child(n) {
        border-right: none;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .about-section {
        padding: 64px 0 56px;
    }

    .install-section {
        padding: 56px 0 64px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-right {
        text-align: left;
        align-items: flex-start;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-copy {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    nav {
        padding: 0 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }
}