/* ============================================================
   MABE — Mobile App Studio
   ============================================================ */

:root {
    --bg:           #07070e;
    --bg-2:         #0d0d1b;
    --surface:      rgba(255, 255, 255, 0.04);
    --surface-hov:  rgba(255, 255, 255, 0.07);
    --border:       rgba(255, 255, 255, 0.08);
    --border-hov:   rgba(139, 92, 246, 0.45);
    --text:         #eeeeff;
    --text-muted:   rgba(238, 238, 255, 0.48);
    --primary:      #7c3aed;
    --primary-lt:   #a78bfa;
    --accent:       #3b82f6;
    --green:        #34d399;
    --radius:       16px;
    --radius-lg:    24px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --t:            0.3s var(--ease);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3,
.nav-logo span,
.footer-brand,
.btn,
.stat-number { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--t);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.32);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 48px rgba(124, 58, 237, 0.52);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.btn-ghost:hover {
    background: var(--surface-hov);
    border-color: var(--border-hov);
    transform: translateY(-3px);
}

/* ── Section tag pill ── */
.section-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.13);
    border: 1px solid rgba(124, 58, 237, 0.28);
    color: var(--primary-lt);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ── Section header block ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-title   { font-size: clamp(32px, 5vw, 52px); letter-spacing: -1px; margin-bottom: 16px; }
.section-sub     { font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 24px;
    transition: padding var(--t), background var(--t), border-color var(--t);
}

.nav.scrolled {
    padding: 12px 24px;
    background: rgba(7, 7, 14, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    z-index: 1001;
}
.nav-logo img {
    width: 34px; height: 34px;
    border-radius: 8px;
    object-fit: cover;
}
.nav-logo span {
    font-size: 19px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-lt), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--t);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* Subtle dot-grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(124, 58, 237, 0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

/* Floating gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbDrift 9s ease-in-out infinite;
    pointer-events: none;
}
.hero-orb--1 {
    width: 680px; height: 680px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
    top: -160px; left: -120px;
    animation-delay: 0s;
}
.hero-orb--2 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    bottom: -80px; right: -80px;
    animation-delay: -4s;
}
.hero-orb--3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.14), transparent 70%);
    top: 38%; left: 62%;
    animation-delay: -7s;
    animation-duration: 12s;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(28px, -22px) scale(1.04); }
    66%       { transform: translate(-18px, 26px) scale(0.96); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 24px;
}

.hero-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(52px, 9vw, 96px);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-lt), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.8s var(--ease) both;
}

.hero-badge {
    display: inline-block;
    padding: 7px 20px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 36px;
    backdrop-filter: blur(12px);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    animation: fadeUp 0.8s var(--ease) both;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-bottom: 28px;
    animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.75;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s var(--ease) 0.3s both;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1.2s ease 1s both;
}
.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, rgba(238,238,255,0.4), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1) translateY(0); }
    50%       { opacity: 0.3; transform: scaleY(0.6) translateY(4px); }
}

/* ============================================================
   APPS SECTION
   ============================================================ */
.apps { padding: 128px 0; }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    will-change: transform;
    transition: border-color var(--t), box-shadow var(--t);
}
.app-card:hover {
    border-color: var(--border-hov);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.app-card:hover .app-card-glow { opacity: 1; }

.app-card-inner { padding: 32px; position: relative; z-index: 1; }

.app-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-icon {
    width: 82px; height: 82px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    background: #1a1a2e;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Icon file has padding around the tile; zoom in so the tile fills the box */
.app-icon--cropped img { transform: scale(1.66); }
.apps-grid--single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.app-cta { margin-top: 24px; }

.app-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-lt);
    margin-bottom: 8px;
}

.app-name { font-size: 22px; letter-spacing: -0.5px; margin-bottom: 12px; }

.app-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 26px;
}

.app-platforms { display: flex; gap: 8px; }
.app-platforms span {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: 128px 0;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

.about-bg-orb {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.07), transparent 70%);
    top: -200px; right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

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

.about-text .section-tag { margin-bottom: 14px; }
.about-text h2 {
    font-size: clamp(32px, 4.5vw, 50px);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    margin-top: 6px;
    line-height: 1.1;
}
.about-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

.name-origin {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.name-part {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}
.name-part em {
    font-style: normal;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-lt);
    margin-right: 4px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat {
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--t);
}
.stat:hover { border-color: var(--border-hov); }

.stat-number {
    display: block;
    font-size: 52px;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-lt), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder { padding: 128px 0; }

.founder-card {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    padding: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t);
}
.founder-card:hover {
    border-color: var(--border-hov);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.founder-card:hover .founder-card-glow { opacity: 1; }

.founder-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.founder-avatar {
    min-width: 76px;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.35);
}

.founder-info { position: relative; z-index: 1; }
.founder-info h3 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 4px; }

.founder-role {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-lt);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

.founder-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    padding: 128px 0;
    background: var(--bg-2);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
}

.contact-left h2 {
    font-size: clamp(32px, 4.5vw, 50px);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    margin-top: 6px;
}
.contact-left p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.social-links { display: flex; flex-direction: column; gap: 12px; }

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--t);
}
.social-link:hover {
    border-color: var(--border-hov);
    background: var(--surface-hov);
    transform: translateX(5px);
}
.social-link img {
    width: 20px; height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.65;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--t);
    outline: none;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(124, 58, 237, 0.55);
    background: rgba(124, 58, 237, 0.04);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-size: 21px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-lt), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--t);
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Entry animations for hero */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   LEGAL PAGES (imprint / privacy)
   ============================================================ */
.imprint,
.privacy-policy {
    padding: 160px 0 100px;
    min-height: 80vh;
}
.imprint h1,
.privacy-policy h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 32px;
}
.imprint h2,
.privacy-policy h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin: 32px 0 10px;
    color: var(--text);
}
.imprint p,
.privacy-policy p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.privacy-policy ul {
    color: var(--text-muted);
    padding-left: 20px;
    line-height: 2;
    margin-bottom: 12px;
}

/* Legacy nav class still used in imprint/privacy */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(7, 7, 14, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.navbar .container {
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.navbar .logo {
    height: 34px;
    width: auto;
    border-radius: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .apps-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .about-inner,
    .contact-inner { grid-template-columns: 1fr; gap: 56px; }
    .founder-card { flex-direction: column; align-items: center; text-align: center; }
    .about-stats { flex-direction: row; flex-wrap: wrap; }
    .stat { flex: 1; min-width: 140px; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(7, 7, 14, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 44px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 26px; color: var(--text); }
    .nav-toggle { display: flex; }
    .hero-cta { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .apps, .about, .founder, .contact { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb, .scroll-line { animation: none; }
    .reveal { transition: none; }
    html { scroll-behavior: auto; }
}
