/* liquid glass */
:root {
    --bg: #060b14;
    --bg-deep: #04080f;

    --accent: #3fa9f5;
    --accent-bright: #7fd1ff;
    --accent-deep: #1e6fd1;
    --accent-glow: rgba(63, 169, 245, 0.45);
    --grad: linear-gradient(135deg, #7fd1ff 0%, #3fa9f5 55%, #1e6fd1 100%);
    --grad-soft: linear-gradient(135deg, #bfe6ff, #3fa9f5);

    --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02));
    --glass-bg-hover: linear-gradient(155deg, rgba(127, 209, 255, 0.12), rgba(255, 255, 255, 0.03));
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-border-soft: rgba(255, 255, 255, 0.06);
    --glass-blur: 22px;

    --text: #eaf2fb;
    --text-dim: rgba(234, 242, 251, 0.66);
    --text-faint: rgba(234, 242, 251, 0.4);

    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition: all 0.4s var(--ease);
    --radius: 22px;
    --radius-lg: 30px;
    --maxw: 1160px;
}

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

html { scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); scrollbar-gutter: stable; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-deep); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent); color: #041420; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--text); line-height: 1.15; }
p { color: var(--text-dim); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }

.highlight {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* placeholder avatar (used wherever a real photo isn't available yet) */
.avatar-ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(155deg, rgba(127, 209, 255, 0.22), rgba(255, 255, 255, 0.04));
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* loading splash */
#introSplash {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg);
    animation: splashHide 0.7s ease 2.2s forwards;
}
@keyframes splashHide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-logo-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.splash-ring {
    position: absolute; width: 170px; height: 170px; border-radius: 50%;
    border: 2px solid rgba(63, 169, 245, 0.3);
    animation: splashRing 1.8s ease-out infinite;
}
.splash-ring.delay { animation-delay: 0.6s; }
@keyframes splashRing {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}
.splash-logo {
    width: 116px; height: 116px; border-radius: 50%;
    font-size: 3rem;
    border: 2px solid var(--accent);
    box-shadow: 0 0 35px var(--accent-glow);
    opacity: 0; transform: scale(0.4);
    animation: splashPop 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
@keyframes splashPop {
    0%   { opacity: 0; transform: scale(0.3) rotate(-12deg); }
    60%  { opacity: 1; transform: scale(1.08) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
.splash-text {
    margin-top: 30px;
    font-family: var(--font-head); font-weight: 800;
    font-size: 2.4rem; letter-spacing: 1px; color: var(--text);
    text-shadow: 0 0 18px var(--accent-glow);
    opacity: 0;
    animation: splashRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.splash-sub {
    margin-top: 10px;
    font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-faint);
    opacity: 0;
    animation: splashRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
@keyframes splashRise {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .splash-logo { width: 92px; height: 92px; }
    .splash-ring { width: 140px; height: 140px; }
    .splash-text { font-size: 1.9rem; }
}

/* scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; height: 3px; width: 0%;
    background: var(--grad);
    z-index: 10000;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width 0.1s linear;
}

/* background */
.liquid-bg {
    position: fixed; inset: 0;
    z-index: -2; overflow: hidden;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(63, 169, 245, 0.14), transparent 60%),
        var(--bg);
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.5;
    animation: float 26s infinite alternate var(--ease);
    will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; background: #1e6fd1; top: -14%; left: -8%; }
.blob-2 { width: 42vw; height: 42vw; background: #0a2540; bottom: -18%; right: -10%; animation-delay: -6s; animation-direction: alternate-reverse; }
.blob-3 { width: 34vw; height: 34vw; background: #2f6fb3; top: 38%; left: 42%; animation-delay: -12s; opacity: 0.38; }
@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(4vw, 6vh) scale(1.12); }
    100% { transform: translate(-3vw, -4vh) scale(0.95); }
}
.grain {
    position: absolute; inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }

/* glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
    position: relative; overflow: hidden;
    white-space: nowrap;
}
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: auto; }
.btn i { font-size: 1em; }

.btn-primary {
    background: var(--grad);
    color: #041420;
    box-shadow: 0 10px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(63, 169, 245, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(127, 209, 255, 0.12); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }

.btn::after {
    content: ''; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 140%; }

/* navbar */
#navbar {
    position: fixed; top: 1rem; left: 0; width: 100%;
    z-index: 1000;
    display: flex; justify-content: center;
    padding: 0 1rem;
    transition: top 0.4s var(--ease);
}
.nav-inner {
    width: auto; max-width: calc(100% - 1rem);
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;
    padding: 0.55rem 0.85rem 0.55rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}
#navbar.scrolled .nav-inner {
    background: linear-gradient(155deg, rgba(8, 16, 28, 0.82), rgba(4, 9, 16, 0.72));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 700; }
.brand > .avatar-ph { width: 34px; height: 34px; border-radius: 50%; font-size: 1.05rem; }
.brand-name { font-size: 1rem; letter-spacing: -0.01em; }
.brand-divider { width: 1px; height: 20px; background: var(--glass-border); margin: 0 0.15rem; }
.brand-socials { display: flex; gap: 0.1rem; margin-left: -0.2rem; }
.brand-socials a { color: var(--text-dim); font-size: 0.95rem; padding: 0.3rem; }
.brand-socials a:hover { color: var(--accent); transform: translateY(-2px); }

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
    font-weight: 500; font-size: 0.9rem;
    color: var(--text-dim);
    padding: 0.5rem 0.95rem; border-radius: 30px;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); background: rgba(63, 169, 245, 0.16); box-shadow: inset 0 0 0 1px rgba(63, 169, 245, 0.3); }

.hamburger { display: none; font-size: 1.2rem; color: var(--text); padding: 0.5rem; }

/* sections */
.section { padding: 7rem 0; position: relative; z-index: 1; }
.section-tight { padding: 4.5rem 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-head); font-weight: 600;
    font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-bright);
    background: rgba(63, 169, 245, 0.1);
    border: 1px solid rgba(63, 169, 245, 0.28);
    margin-bottom: 1.2rem;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-dim); margin-top: 0.9rem; font-size: 1.02rem; }

/* hero */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 0 4rem;
    text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-title {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 5rem);
    letter-spacing: -0.03em; line-height: 1.05;
    margin-bottom: 1.4rem;
}
.hero-sub { max-width: 560px; font-size: 1.12rem; color: var(--text-dim); margin-bottom: 2.2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* compare slider */
.compare-wrap { max-width: 940px; margin: 0 auto 4rem; }
.compare-head { text-align: center; margin-bottom: 1.8rem; }
.compare-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.compare-grid { display: flex; flex-direction: column; gap: 3rem; margin-bottom: 2rem; }
@media (min-width: 800px) {
    .compare-grid { flex-direction: row; }
    .compare-grid .image-slider, .compare-grid .slider-placeholder { flex: 1; }
}

.image-slider {
    position: relative; aspect-ratio: 16 / 9;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(63, 169, 245, 0.12);
    touch-action: none; cursor: ew-resize; user-select: none;
}
.slider-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.bottom-img { z-index: 1; }
.top-img { z-index: 2; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slider-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
    background: #fff; z-index: 3; transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}
.slider-handle::after {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
    border: 2px solid #fff; border-radius: 50%; z-index: -1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.slider-handle i {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; font-size: 1.1rem;
}
.slider-label {
    position: absolute; top: 16px; z-index: 3;
    padding: 0.4rem 1rem; border-radius: 30px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
    background: rgba(6, 11, 20, 0.5); border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px); pointer-events: none;
}
.label-raw { left: 16px; }
.label-edited { right: 16px; color: var(--accent-bright); }

/* slider placeholder (no before/after pair yet) */
.slider-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1.5px dashed var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.7rem; color: var(--text-faint); text-align: center; padding: 1.5rem;
}
.slider-placeholder i { font-size: 1.6rem; color: var(--accent); }
.slider-placeholder span { font-size: 0.88rem; }

/* gallery */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem;
}
.gallery-item {
    position: relative; aspect-ratio: 9 / 16;
    border-radius: 16px; overflow: hidden; display: block;
    border: 1px solid var(--glass-border-soft);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.015);
}
.gallery-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-item:hover { border-color: rgba(63, 169, 245, 0.4); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 26px var(--accent-glow); transform: translateY(-4px); }

.gallery-item.placeholder {
    border: 1.5px dashed var(--glass-border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.6rem; color: var(--text-faint); font-size: 0.82rem; text-align: center; padding: 1rem;
}
.gallery-item.placeholder i { font-size: 1.3rem; color: var(--accent); }
.gallery-item.placeholder:hover { transform: none; box-shadow: none; border-color: var(--glass-border); }

.gallery-cta { text-align: center; margin-top: 3rem; }

/* about */
.about-card {
    display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center;
    padding: 2.8rem; margin-bottom: 3rem;
}
.about-visual { position: relative; }
.about-visual .avatar-ph { width: 100%; aspect-ratio: 1; border-radius: var(--radius); font-size: 5rem; }
.about-visual-glow { position: absolute; inset: -10px; border-radius: var(--radius); background: var(--grad); filter: blur(40px); opacity: 0.35; z-index: -1; }
.about-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 1.1rem; }
.about-content p { margin-bottom: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.tag {
    padding: 0.45rem 1rem; border-radius: 30px; font-size: 0.82rem; font-weight: 500;
    color: var(--accent-bright); background: rgba(63, 169, 245, 0.1);
    border: 1px solid rgba(63, 169, 245, 0.25);
}

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.feature-card { padding: 1.8rem; transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); background: var(--glass-bg-hover); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 22px var(--accent-glow); }
.feature-card i {
    font-size: 1.4rem; color: var(--accent); margin-bottom: 1rem;
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(63, 169, 245, 0.12); border: 1px solid rgba(63, 169, 245, 0.25);
}
.feature-card h4 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; }

/* cta */
.cta-card {
    text-align: center; padding: 4.5rem 2rem 3rem; overflow: hidden;
    border-color: rgba(63, 169, 245, 0.3);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(63, 169, 245, 0.18), transparent 70%),
        var(--glass-bg);
}
.cta-card h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; position: relative; z-index: 2; }
.cta-wordmark {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(3rem, 11vw, 8rem); letter-spacing: -0.03em;
    margin-top: 1.5rem; line-height: 1;
    background: linear-gradient(to bottom, rgba(127, 209, 255, 0.16), transparent);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    user-select: none;
}

/* footer */
footer { position: relative; z-index: 1; padding: 4rem 0 2rem; border-top: 1px solid var(--glass-border-soft); background: linear-gradient(to bottom, transparent, rgba(4, 8, 15, 0.6)); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--glass-border-soft); }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .avatar-ph { width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; flex-shrink: 0; }
.footer-brand h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links h4, .footer-social h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-dim); font-size: 0.92rem; width: fit-content; }
.footer-links a:hover { color: var(--accent-bright); transform: translateX(4px); }
.social-icons { display: flex; gap: 0.7rem; }
.social-icons a {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    color: var(--text-dim); font-size: 1.05rem;
}
.social-icons a:hover { color: var(--accent); background: rgba(63, 169, 245, 0.12); border-color: var(--accent); transform: translateY(-4px); }
.footer-bottom { text-align: center; padding-top: 2rem; }
.footer-bottom p { font-size: 0.88rem; color: var(--text-faint); }

/* back to top */
.back-to-top {
    position: fixed; bottom: 1.8rem; right: 1.8rem;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.05rem;
    background: var(--grad); color: #041420;
    box-shadow: 0 12px 30px var(--accent-glow);
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: var(--transition); z-index: 900;
}
.back-to-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
    .nav-links, .brand-divider, .brand-socials { display: none; }
    .nav-inner { width: 100%; max-width: 100%; }
    .nav-links {
        position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.3rem;
        padding: 0.8rem; border-radius: var(--radius);
        background: linear-gradient(155deg, rgba(8, 16, 28, 0.96), rgba(4, 9, 16, 0.94));
        backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }
    .nav-links.show { display: flex; }
    .nav-links a { padding: 0.85rem 1rem; text-align: center; }
    .hamburger { display: block; }

    .feature-grid { grid-template-columns: 1fr 1fr; }
    .about-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
    .about-visual { max-width: 260px; margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
    .section { padding: 5rem 0; }
    .hero-btns { width: 100%; }
    .hero-btns .btn { flex: 1; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-btns { flex-direction: column; }
    .cta-btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .blob { animation: none; }
    #introSplash { animation: splashHide 0.4s ease 0.7s forwards; }
    .splash-ring { display: none; }
    .splash-logo, .splash-text, .splash-sub { animation: none; opacity: 1; transform: none; }
    * { scroll-behavior: auto; }
}
