/* ============================================================
   Crazyblueapps — public site design system
   Dark, glassy, 3D. Space Grotesk (EN) / Tajawal (AR).
   ============================================================ */

:root {
    --bg: #05060f;
    --bg-2: #0a0d1f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef1ff;
    --text-dim: #9aa3c0;
    --blue: #0a84ff;
    --cyan: #64d2ff;
    --violet: #bf5af2;
    --pink: #ff2d55;
    --accent: var(--blue);
    --radius: 22px;
    --font: 'Space Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

body.rtl { font-family: 'Tajawal', var(--font); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- ambient background ---------- */
.bg-mesh {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(600px 400px at 15% 10%, rgba(10, 132, 255, 0.16), transparent 60%),
        radial-gradient(700px 500px at 85% 20%, rgba(191, 90, 242, 0.12), transparent 60%),
        radial-gradient(600px 500px at 50% 100%, rgba(100, 210, 255, 0.08), transparent 60%),
        var(--bg);
}

.noise {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(5, 6, 15, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 0.7rem; }

.logo-cube {
    width: 26px; height: 26px; position: relative;
    transform-style: preserve-3d;
    animation: cube-spin 9s linear infinite;
}
.logo-cube span {
    position: absolute; inset: 0; border-radius: 6px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    opacity: 0.85;
}
.logo-cube span:nth-child(2) { transform: rotate(30deg) scale(0.92); background: linear-gradient(135deg, var(--violet), var(--blue)); opacity: 0.55; }
.logo-cube span:nth-child(3) { transform: rotate(60deg) scale(0.84); background: linear-gradient(135deg, var(--cyan), var(--violet)); opacity: 0.35; }

@keyframes cube-spin { to { transform: rotate(360deg); } }

.logo-img { height: 36px; width: auto; max-width: 150px; object-fit: contain; }

.logo-text { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: 0.95rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.lang-btn {
    padding: 0.3rem 0.85rem; border: 1px solid var(--border); border-radius: 99px;
    background: var(--surface); color: var(--text) !important; font-size: 0.85rem;
}
.lang-btn:hover { background: var(--surface-2); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

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

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-content { position: relative; z-index: 2; padding-top: 72px; }

.hero-badge {
    display: inline-block; padding: 0.45rem 1.1rem; border-radius: 99px;
    border: 1px solid var(--border); background: var(--surface);
    backdrop-filter: blur(10px); font-size: 0.9rem; color: var(--text-dim);
    margin-bottom: 1.6rem;
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.hero-sub {
    max-width: 620px; margin: 0 auto 2.4rem; color: var(--text-dim);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    font-size: 0.8rem; color: var(--text-dim); display: flex; flex-direction: column;
    align-items: center; gap: 0.6rem; z-index: 2;
}
.scroll-hint span {
    width: 1px; height: 42px;
    background: linear-gradient(var(--cyan), transparent);
    animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.9rem; border-radius: 99px; font-weight: 600;
    font-size: 1rem; font-family: inherit; border: 0; cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue), #2f6bff);
    color: #fff;
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(10, 132, 255, 0.5); }

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

/* ---------- sections ---------- */
.section { padding: 6rem 0; position: relative; }
.page-head { padding-top: 10rem; padding-bottom: 3rem; }

.section-kicker {
    color: var(--cyan); font-size: 0.9rem; letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 2.6rem; line-height: 1.15;
}

.section-title-sm { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.2rem; }

/* ---------- stats ---------- */
.stats { padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.stat {
    text-align: center; padding: 2.2rem 1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.stat-num {
    display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num::after { content: '+'; }
.stat-label { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- glass cards / tilt ---------- */
.glass-card {
    position: relative; border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), #0b0e1e;
    border: 1px solid var(--border);
    padding: 2.2rem; overflow: hidden;
    transition: border-color 0.3s, transform 0.15s ease-out, box-shadow 0.3s;
    will-change: transform;
}
.glass-card:hover { border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }

/* shine sweep on hover */
.glass-card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
    transform: translateX(-130%); transition: transform 0.9s ease;
}
.glass-card:hover::after { transform: translateX(130%); }

.card-glow {
    position: absolute; top: -110px; inset-inline-end: -110px; width: 340px; height: 340px;
    border-radius: 50%; opacity: 0.3; pointer-events: none;
    background: radial-gradient(closest-side, var(--glow, var(--blue)), transparent);
    transition: opacity 0.3s;
}
.glass-card:hover .card-glow { opacity: 0.55; }

/* ---------- expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

.tech-icon { width: 58px; height: 58px; margin-bottom: 1.3rem; }
.tech-icon svg { width: 100%; height: 100%; }

.expertise-grid h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.expertise-grid p { color: var(--text-dim); }

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chips span {
    font-size: 0.8rem; padding: 0.3rem 0.85rem; border-radius: 99px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}

.chip-inline {
    font-size: 0.75rem; padding: 0.2rem 0.7rem; border-radius: 99px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-dim); vertical-align: middle; margin-inline-start: 0.5rem;
}

/* ---------- app cards ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.app-card {
    display: block;
    transition: border-color 0.3s, transform 0.3s ease, box-shadow 0.3s;
}

.app-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-card-head h3 { font-size: 1.2rem; line-height: 1.3; }

.app-icon {
    width: 68px; height: 68px; border-radius: 17px; flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

.app-icon-fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--violet));
}

.app-sub { color: var(--text-dim); font-size: 0.9rem; }

.app-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.95rem; }

.stars {
    position: relative; color: rgba(255, 255, 255, 0.18); letter-spacing: 2px; direction: ltr; display: inline-block;
}
.stars::before {
    content: '★★★★★'; position: absolute; top: 0; left: 0; overflow: hidden;
    width: calc(var(--rating, 0) / 5 * 100%);
    color: #ffd60a; letter-spacing: 2px; white-space: nowrap;
}
.rating-num { font-weight: 700; }
.rating-count { color: var(--text-dim); font-size: 0.85rem; }

.app-card:hover { border-color: color-mix(in srgb, var(--accent, #0a84ff) 55%, transparent); transform: translateY(-6px); }

/* view CTA that slides in */
.app-card-cta {
    display: flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem;
    color: var(--cyan); font-weight: 600; font-size: 0.92rem;
    opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s;
}
.rtl .app-card-cta { transform: translateX(8px); }
.app-card:hover .app-card-cta { opacity: 1; transform: none; }

.empty-state { color: var(--text-dim); font-size: 1.1rem; text-align: center; padding: 4rem 0; }

/* ---------- pricing page ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.pricing-card { display: flex; flex-direction: column; }

.pricing-price {
    display: flex; align-items: baseline; gap: 0.7rem;
    margin: 1.4rem 0; padding: 1.1rem 1.3rem;
    border-radius: 14px; background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}
.price-val {
    font-size: 1.7rem; font-weight: 700;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-note { color: var(--text-dim); font-size: 0.85rem; }

.pricing-actions { display: flex; gap: 0.7rem; margin-top: auto; flex-wrap: wrap; }
.pricing-actions .btn { flex: 1; justify-content: center; padding: 0.75rem 1rem; font-size: 0.92rem; }

.pricing-footnote {
    color: var(--text-dim); font-size: 0.88rem; text-align: center;
    margin-top: 2.2rem; max-width: 720px; margin-inline: auto;
}

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

/* ---------- legal pages ---------- */
.legal-container { max-width: 860px; }
.legal-body { font-size: 0.98rem; }

.footer-legal { gap: 1.2rem; }
.footer-legal a { font-size: 0.88rem; }

/* ---------- app detail hero ---------- */
.app-hero { padding-top: 10rem; padding-bottom: 2.5rem; position: relative; overflow: hidden; }

.app-hero-backdrop {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 340px at 22% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
        radial-gradient(420px 280px at 75% 15%, rgba(191, 90, 242, 0.08), transparent 70%);
}

/* wide glass panel: icon | name | actions */
.app-hero-panel {
    position: relative;
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 3rem;
    padding: 2.8rem 3rem;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(11, 14, 30, 0.6);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* identical buttons: same height, same corner radius */
.app-hero-actions { display: grid; gap: 0.8rem; justify-items: stretch; }
.app-hero-actions .appstore-badge,
.app-hero-actions .btn {
    margin-top: 0; justify-content: center;
    height: 52px; padding: 0 1.7rem;
    border-radius: 14px;
    font-size: 0.98rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.55rem;
}

.app-hero-meta .app-rating { margin: 0.8rem 0 0; }

/* floating 3D icon */
.app-hero-icon-wrap {
    position: relative; width: 172px; height: 172px; flex-shrink: 0;
    animation: icon-float 6s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

.icon-halo {
    position: absolute; inset: -34px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
    opacity: 0.55; filter: saturate(1.2);
    animation: halo-pulse 4s ease-in-out infinite;
}

@keyframes halo-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.96); }
    50% { opacity: 0.7; transform: scale(1.06); }
}

.icon-orbit {
    position: absolute; inset: -16px; border-radius: 46px; pointer-events: none;
    border: 1px solid transparent;
    background:
        linear-gradient(#05060f, #05060f) padding-box,
        conic-gradient(from 0deg, transparent 0%, color-mix(in srgb, var(--accent) 80%, #fff) 18%, transparent 40%, transparent 55%, var(--violet) 72%, transparent 92%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: orbit-spin 7s linear infinite;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

.app-hero-icon {
    position: relative; z-index: 1;
    width: 100%; height: 100%; border-radius: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 100px color-mix(in srgb, var(--accent) 30%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.icon-reflection {
    position: absolute; left: 10%; right: 10%; bottom: -34px; height: 30px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, #000), transparent);
    filter: blur(14px); opacity: 0.6;
}

/* hero meta */
.hero-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-chip {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 0.32rem 0.85rem; border-radius: 99px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}
.hero-chip-accent {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--text);
}

.app-hero-meta h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 0.45rem;
    background: linear-gradient(90deg, #fff, #c8d2f0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-hero-meta .app-sub { font-size: 1rem; color: var(--text-dim); margin-bottom: 0; }

.info-link { color: var(--cyan); }
.info-link:hover { text-decoration: underline; }

.appstore-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 1.2rem; padding: 0.75rem 1.5rem; border-radius: 14px;
    background: #fff; color: #000; font-weight: 600;
    transition: transform 0.25s, box-shadow 0.25s;
}
.appstore-badge svg { width: 22px; height: 22px; }
.appstore-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 255, 255, 0.18); }

/* ---------- screenshot grid (3 per row, in the sidebar under Information) ---------- */
.shot-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
    margin-top: 0.2rem;
}

.shot-cell {
    padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 12px;
    background: #0b0e1e; overflow: hidden; cursor: zoom-in; display: block;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.3s;
}
.shot-cell img {
    width: 100%; height: auto; display: block;
    user-select: none; -webkit-user-drag: none;
}
.shot-cell:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(10, 132, 255, 0.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 34px rgba(10, 132, 255, 0.2);
}
.shot-cell:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* round nav buttons (used by the lightbox) */
.cf-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 13, 31, 0.82); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--text); cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s, opacity 0.25s;
}
.cf-btn svg { width: 22px; height: 22px; }
.cf-btn:hover {
    background: var(--blue); border-color: transparent;
    box-shadow: 0 10px 34px rgba(10, 132, 255, 0.5);
    transform: translateY(-50%) scale(1.08);
}
.cf-btn:active { transform: translateY(-50%) scale(0.95); }

/* ---------- lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 300; display: flex;
    align-items: center; justify-content: center; padding: 2vh 2vw;
    background: rgba(3, 4, 10, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transition: opacity 0.25s; cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-height: 92vh; max-width: 88vw; border-radius: 20px; cursor: default;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
    transform: scale(0.95); transition: transform 0.25s;
}
.lightbox.open img { transform: scale(1); }

.lightbox .cf-btn { cursor: pointer; }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }

.lightbox-close {
    position: absolute; top: 1.2rem; right: 1.4rem; z-index: 21;
    background: rgba(10, 13, 31, 0.75); border: 1px solid var(--border); color: var(--text);
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.25rem; cursor: pointer;
    backdrop-filter: blur(10px); transition: background 0.25s;
}
.lightbox-close:hover { background: var(--pink); border-color: transparent; }

.lightbox-count {
    position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
    color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.08em;
}

.app-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.6rem; align-items: start; }
.app-detail-main { display: grid; gap: 1.6rem; }
.app-detail-side { display: grid; gap: 1.6rem; position: sticky; top: 90px; }

/* rich App Store description typography */
.app-description { color: var(--text-dim); line-height: 1.75; }
.app-description p { margin: 0 0 1rem; }
.app-description p:last-child { margin-bottom: 0; }
.app-description p:first-child {
    color: var(--text); font-size: 1.06rem;
}

.app-description .desc-h {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--cyan); margin: 1.8rem 0 0.9rem;
}
.app-description .desc-h::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(100, 210, 255, 0.35), transparent);
}
.app-description .desc-h:first-child { margin-top: 0; }

.app-description .desc-list {
    list-style: none; display: grid; gap: 0.55rem;
    margin: 0 0 1.2rem; padding: 0;
}
.app-description .desc-list li {
    position: relative; padding-inline-start: 1.6rem;
}
.app-description .desc-list li::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 0.52em;
    width: 7px; height: 7px; border-radius: 2px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.info-list { display: grid; gap: 0.9rem; }
.info-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.9rem; }
.info-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { color: var(--text-dim); }
.info-list dd { font-weight: 600; text-align: end; }

/* ---------- CTA panel ---------- */
.cta-panel {
    text-align: center; padding: 4.5rem 2rem; border-radius: 28px;
    background:
        radial-gradient(500px 240px at 50% 0%, rgba(10, 132, 255, 0.25), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
}
.cta-panel h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.cta-panel p { color: var(--text-dim); max-width: 480px; margin: 0 auto 2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1.6rem; align-items: start; }

.contact-form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.contact-form label { display: grid; gap: 0.45rem; font-size: 0.9rem; color: var(--text-dim); }

.contact-form input,
.contact-form textarea {
    background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
    border-radius: 13px; padding: 0.85rem 1.05rem; color: var(--text);
    font-family: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0; border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.18);
}

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.contact-info ul { list-style: none; display: grid; gap: 1.1rem; }
.contact-info li { display: flex; align-items: center; gap: 0.8rem; color: var(--text-dim); }
.contact-info a:hover { color: var(--cyan); }

.alert-success, .alert-error {
    padding: 0.9rem 1.2rem; border-radius: 13px; margin-bottom: 1.4rem; font-size: 0.95rem;
}
.alert-success { background: rgba(48, 209, 88, 0.12); border: 1px solid rgba(48, 209, 88, 0.4); color: #7ee59c; }
.alert-error { background: rgba(255, 69, 58, 0.12); border: 1px solid rgba(255, 69, 58, 0.4); color: #ff9a92; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-tag { color: var(--text-dim); font-size: 0.9rem; max-width: 380px; margin-top: 0.6rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text-dim); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    color: var(--text-dim); font-size: 0.85rem;
    border-top: 1px solid var(--border); padding-top: 1.6rem;
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* once revealed, cards must react instantly (not with the slow reveal easing) */
.tilt.reveal.visible,
.app-card.reveal.visible {
    transition: opacity 0.7s ease, transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .logo-cube, .gradient-text, .scroll-hint span,
    .app-hero-icon-wrap, .icon-halo, .icon-orbit { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-grid, .contact-grid, .app-detail-grid { grid-template-columns: 1fr; }
    .app-detail-side { position: static; }

    .app-hero-panel {
        grid-template-columns: 1fr; gap: 1.8rem;
        justify-items: center; text-align: center; padding: 2.2rem 1.6rem;
    }
    .hero-chips { justify-content: center; }
    .app-hero-actions { width: 100%; max-width: 320px; }
}

@media (max-width: 640px) {
    .apps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
    .app-hero-icon-wrap { width: 128px; height: 128px; margin-inline: auto; }

    .nav-burger { display: flex; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        flex-direction: column; padding: 1.6rem; gap: 1.2rem;
        background: rgba(5, 6, 15, 0.96); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%); transition: transform 0.35s;
    }
    .nav-links.open { transform: none; }
}
