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

:root {
    --bg: #07090f;
    --bg-card: #0e1220;
    --bg-card-hover: #131829;
    --border: rgba(255,255,255,0.07);
    --text-primary: #f0f2f8;
    --text-secondary: rgba(240,242,248,0.55);
    --logbook-color: #1a8fe0;
    --logbook-dark: #1c3a5e;
    --logbook-gradient: linear-gradient(135deg, #1c3a5e 0%, #2d6a9f 55%, #1a8fe0 100%);
    --tool-color: #00aaff;
    --tool-dark: #003d7a;
    --tool-gradient: linear-gradient(135deg, #003d7a 0%, #0060c7 55%, #00aaff 100%);
    --shadow-card: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow-logbook: 0 0 60px rgba(26,143,224,0.15);
    --shadow-glow-tool: 0 0 60px rgba(0,170,255,0.15);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Nav */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(7,9,15,0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-brand span {
    background: linear-gradient(90deg, #1a8fe0, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(26,143,224,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0,170,255,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.75rem;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, #1a8fe0 0%, #00aaff 60%, #7dd4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-hint::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* Apps Section */
.apps-section {
    padding: 6rem 0;
}
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}
.apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* App Card */
.app-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
}
.app-card.logbook:hover { box-shadow: var(--shadow-card), var(--shadow-glow-logbook); border-color: rgba(26,143,224,0.3); }
.app-card.tool:hover { box-shadow: var(--shadow-card), var(--shadow-glow-tool); border-color: rgba(0,170,255,0.3); }

.card-banner {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.app-card.logbook .card-banner { background: var(--logbook-gradient); }
.app-card.tool .card-banner { background: var(--tool-gradient); }

.card-banner-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}
.card-icon {
    position: absolute;
    bottom: -1px;
    left: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-body {
    padding: 4rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.card-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex: 1;
}
.card-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.card-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.app-card.logbook .card-features li::before { background: var(--logbook-color); }
.app-card.tool .card-features li::before { background: var(--tool-color); }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.card-store-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.app-card:hover .card-arrow {
    transform: translateX(3px);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}
.card-visit-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text-secondary);
}
.app-card.logbook .card-visit-link:hover { background: rgba(26,143,224,0.12); border-color: rgba(26,143,224,0.3); color: var(--logbook-color); }
.app-card.tool .card-visit-link:hover { background: rgba(0,170,255,0.12); border-color: rgba(0,170,255,0.3); color: var(--tool-color); }

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.philosophy-card {
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.philosophy-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.philosophy-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.philosophy-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-brand {
    font-weight: 700;
    font-size: 1rem;
}
.footer-brand span {
    background: linear-gradient(90deg, #1a8fe0, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .apps-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.8rem; }
    .card-banner { height: 160px; }
}
@media (max-width: 480px) {
    .hero { padding: 7rem 0 5rem; }
    .hero-description { font-size: 1rem; }
}
