
/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
    --bg:           #07070f;
    --bg-card:      #0e0e1c;
    --bg-card-h:    #12122a;
    --violet:       #7c5cfc;
    --violet-glow:  rgba(124, 92, 252, 0.25);
    --mint:         #00d4aa;
    --mint-glow:    rgba(0, 212, 170, 0.20);
    --white:        #ffffff;
    --white-60:     rgba(255,255,255,0.60);
    --white-30:     rgba(255,255,255,0.30);
    --white-10:     rgba(255,255,255,0.10);
    --white-05:     rgba(255,255,255,0.05);
    --border:       rgba(255,255,255,0.08);
    --font:         'Inter', system-ui, sans-serif;
    --mono:         'JetBrains Mono', 'Courier New', monospace;

    /* per-app accent colors */
    --mdl-color:    #3b82f6;   /* MyDriveLogs — blue */
    --mdl-glow:     rgba(59,130,246,0.22);
    --8da-color:    #a855f7;   /* 8D Audio — purple */
    --8da-glow:     rgba(168,85,247,0.22);
    --moe-color:    #008b8b;   /* MinØkonomi — teal */
    --moe-glow:     rgba(0,139,139,0.22);
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Canvas starfield ──────────────────────────────────────────────── */
#stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Utility ───────────────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }

/* ── NAV ───────────────────────────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 28px;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(7,7,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    display: flex; align-items: center; gap: 8px;
}
.nav-logo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet);
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(0.8); }
}
.nav-right {
    font-size: 0.8rem;
    color: var(--white-30);
    font-family: var(--mono);
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 28px;
    padding: 6px 14px;
    border: 1px solid rgba(0,212,170,0.25);
    border-radius: 100px;
    background: rgba(0,212,170,0.06);
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--violet), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--white-60);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.hero-scroll {
    display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--white-30); letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}
.hero-scroll::after {
    content: '';
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--white-30), transparent);
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ── APPS SECTION ──────────────────────────────────────────────────── */
.apps-section {
    padding: 80px 0 120px;
    position: relative; z-index: 1;
}
.apps-label {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-30);
    margin-bottom: 56px;
}
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* App card */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px 32px;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1),
    border-color .3s,
    box-shadow .3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
}
.app-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--card-glow, rgba(124,92,252,0.12)), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.app-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.15); }
.app-card:hover::before { opacity: 1; }
.app-card.mdl:hover { box-shadow: 0 20px 60px var(--mdl-glow), 0 0 0 1px rgba(59,130,246,0.2); --card-glow: var(--mdl-glow); }
.app-card.da8:hover { box-shadow: 0 20px 60px var(--8da-glow), 0 0 0 1px rgba(168,85,247,0.2); --card-glow: var(--8da-glow); }
.app-card.moe:hover { box-shadow: 0 20px 60px var(--moe-glow), 0 0 0 1px rgba(0,139,139,0.2); --card-glow: var(--moe-glow); }

/* App icon */
.app-icon {
    width: 80px; height: 80px;
    border-radius: 18px;
    background: var(--bg-card-h);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform .3s;
}
.app-card:hover .app-icon { transform: scale(1.05); }
.app-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 18px;
}
.app-icon-placeholder {
    font-size: 2rem;
    opacity: .35;
}
.app-icon-label {
    position: absolute; bottom: 4px; right: 4px;
    font-family: var(--mono); font-size: 0.45rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

.app-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.app-desc {
    font-size: 0.88rem;
    color: var(--white-60);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 24px;
}

/* Platform badges */
.app-platforms {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.platform-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    color: var(--white-30);
    background: var(--white-05);
}
.platform-badge.mac    { border-color: rgba(59,130,246,0.3);  color: #93c5fd; background: rgba(59,130,246,0.08); }
.platform-badge.ios    { border-color: rgba(168,85,247,0.3);  color: #d8b4fe; background: rgba(168,85,247,0.08); }
.platform-badge.ipad   { border-color: rgba(0,212,170,0.3);   color: #6ee7d4; background: rgba(0,212,170,0.08); }

/* CTA row */
.app-cta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.app-cta-link {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: gap .2s;
}
.app-card.mdl .app-cta-link { color: var(--mdl-color); }
.app-card.da8 .app-cta-link { color: var(--8da-color); }
.app-card.moe .app-cta-link { color: var(--moe-color); }
.app-card:hover .app-cta-link { gap: 10px; }
.app-status {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--white-30);
}
.status-live {
    display: inline-flex; align-items: center; gap: 5px;
    color: #4ade80;
}
.status-live::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse 2s infinite;
}
.status-soon { color: var(--white-30); }

/* Accent line at card top */
.app-card::after {
    content: '';
    position: absolute; top: 0; left: 32px; right: 32px;
    height: 1px;
    opacity: 0;
    transition: opacity .3s;
}
.app-card.mdl::after { background: linear-gradient(90deg, transparent, var(--mdl-color), transparent); }
.app-card.da8::after { background: linear-gradient(90deg, transparent, var(--8da-color), transparent); }
.app-card.moe::after { background: linear-gradient(90deg, transparent, var(--moe-color), transparent); }
.app-card:hover::after { opacity: 1; }

/* ── ABOUT ─────────────────────────────────────────────────────────── */
.about-section {
    padding: 80px 0;
    position: relative; z-index: 1;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 16px;
}
.about-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.15;
}
.about-inner p {
    color: var(--white-60);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.75;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--violet), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--white-30);
    margin-top: 4px;
}

/* ── DIVIDER ───────────────────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
    position: relative; z-index: 1;
}

/* ── FOOTER ────────────────────────────────────────────────────────── */
footer {
    padding: 56px 0 32px;
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand h3 {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.footer-brand h3 span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 6px var(--violet);
    display: inline-block;
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--white-30);
    max-width: 280px;
    line-height: 1.65;
}
.footer-company {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    margin-top: 16px;
    line-height: 1.9;
}
.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-30);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
}

/* ── Scroll reveal ─────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .apps-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    nav .nav-right { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; }
}