:root {
    --navy:        #1a3670;
    --navy-dark:   #0f2150;
    --navy-deep:   #091535;
    --blue:        #2563eb;
    --blue-mid:    #3b82f6;
    --sky:         #87ceeb;
    --sky-light:   #b8e4f7;
    --sky-pale:    #e8f5fd;
    --white:       #ffffff;
    --off-white:   #f0f7fd;
    --text-dark:   #0c1d3a;
    --text-mid:    #3a5278;
    --text-soft:   #6b8bb5;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* ─── NAVBAR ─── */
.navbar {
    background: transparent;
    padding: 1.1rem 0;
    transition: background 0.35s, box-shadow 0.35s;
}
.navbar.scrolled {
    background: rgba(240,247,253,0.93);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(37,99,235,0.1);
}
.navbar-brand {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.brand-logo { width: 38px; height: 38px; }
.brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.55rem;
    color: var(--navy-dark);
    letter-spacing: -0.5px;
}
.nav-link {
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-mid) !important;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--navy-dark) !important; }
.btn-nav-login {
    font-size: 0.85rem; font-weight: 600;
    color: var(--navy-dark) !important;
    border: 1.5px solid rgba(26,54,112,0.3);
    border-radius: 100px; padding: 0.42rem 1.2rem;
    text-decoration: none; transition: all 0.2s;
}
.btn-nav-login:hover {
    background: var(--navy-dark); color: var(--white) !important;
    border-color: var(--navy-dark);
}
.btn-nav-register {
    font-size: 0.85rem; font-weight: 600;
    background: var(--navy-dark); color: var(--white) !important;
    border-radius: 100px; padding: 0.42rem 1.2rem;
    text-decoration: none; border: 1.5px solid var(--navy-dark);
    transition: all 0.2s;
}
.btn-nav-register:hover { background: var(--blue); border-color: var(--blue); }

/* ─── HERO ─── */
.hero {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 7.5rem 0 4rem;
    position: relative; overflow: hidden;
}
.hero-blob-1 {
    position: absolute; width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(135,206,235,0.35) 0%, transparent 70%);
    border-radius: 50%; top: -100px; right: -180px; pointer-events: none;
}
.hero-blob-2 {
    position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
    border-radius: 50%; bottom: 0; left: -100px; pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(135,206,235,0.25);
    border: 1px solid rgba(135,206,235,0.6);
    border-radius: 100px; padding: 0.28rem 0.85rem;
    font-size: 0.75rem; font-weight: 700;
    color: var(--navy); letter-spacing: 0.07em;
    text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; background: var(--blue-mid);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.4; transform:scale(1.5); }
}
.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.6rem,5.5vw,5rem);
    line-height: 1.07; color: var(--navy-deep);
    letter-spacing: -2px; margin-bottom: 1.4rem;
}
.hero-title em {
    font-style: italic; color: var(--blue); position: relative;
}
.hero-title em::after {
    content: ''; position: absolute;
    bottom: 3px; left: 0; right: 0;
    height: 3px; background: var(--sky);
    border-radius: 2px; opacity: 0.7;
}
.hero-sub {
    font-size: 1.05rem; line-height: 1.75;
    color: var(--text-mid); max-width: 460px;
    margin-bottom: 2.25rem; font-weight: 400;
}
.btn-hero-primary {
    background: var(--navy-dark); color: var(--white);
    border: none; border-radius: 100px; padding: 0.82rem 2rem;
    font-size: 0.92rem; font-weight: 700;
    transition: all 0.25s;
    box-shadow: 0 8px 28px rgba(15,33,80,0.28);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-hero-primary:hover {
    background: var(--blue); transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(37,99,235,0.35); color: var(--white);
}
.btn-hero-ghost {
    background: transparent; color: var(--navy-dark);
    border: 1.5px solid rgba(26,54,112,0.3);
    border-radius: 100px; padding: 0.82rem 2rem;
    font-size: 0.92rem; font-weight: 600;
    transition: all 0.25s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-hero-ghost:hover {
    background: var(--navy-dark); color: var(--white);
    border-color: var(--navy-dark); transform: translateY(-2px);
}

/* ─── HERO DEMO CARD ─── */
.hero-demo {
    background: var(--navy-deep); border-radius: 26px;
    padding: 1.75rem;
    box-shadow: 0 40px 80px rgba(9,21,53,0.35), 0 8px 24px rgba(9,21,53,0.2);
    animation: float 6s ease-in-out infinite;
    position: relative; z-index: 2;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.demo-header {
    display: flex; align-items: center; gap: 0.55rem;
    margin-bottom: 1.25rem;
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.r { background: #ff5f57; }
.demo-dot.y { background: #febc2e; }
.demo-dot.g { background: #28c840; }
.demo-url-bar {
    background: rgba(135,206,235,0.08);
    border: 1px solid rgba(135,206,235,0.18);
    border-radius: 10px; padding: 0.55rem 0.85rem;
    font-size: 0.78rem; color: var(--sky-light);
    font-family: monospace; margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.45rem;
}
.demo-url-bar i { opacity: 0.55; }
.demo-profile { text-align: center; margin-bottom: 1.25rem; }
.demo-avatar {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--sky), var(--sky-light));
    border-radius: 50%; margin: 0 auto 0.65rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.demo-name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.demo-handle { color: var(--sky); font-size: 0.74rem; opacity: 0.8; margin-top: 0.15rem; }
.demo-link-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(135,206,235,0.12);
    border-radius: 11px; padding: 0.65rem 0.9rem;
    margin-bottom: 0.55rem;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: background 0.2s;
}
.demo-link-card:hover { background: rgba(135,206,235,0.1); }
.demo-link-text {
    display: flex; align-items: center; gap: 0.55rem;
    color: #fff; font-size: 0.8rem; font-weight: 500;
}
.demo-link-icon {
    width: 26px; height: 26px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center; font-size: 0.72rem;
}
.demo-short-badge {
    background: rgba(135,206,235,0.15);
    border: 1px solid rgba(135,206,235,0.25);
    color: var(--sky); font-size: 0.66rem;
    padding: 0.12rem 0.5rem; border-radius: 100px; font-family: monospace;
}
.stat-pill {
    position: absolute; background: #fff;
    border-radius: 100px; padding: 0.45rem 0.9rem;
    box-shadow: 0 8px 24px rgba(9,21,53,0.15);
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 600; color: var(--navy-dark);
    animation: float 5s ease-in-out infinite; z-index: 3;
}
.stat-pill.p1 { top: -14px; left: -30px; animation-delay: -1s; }
.stat-pill.p2 { bottom: 30px; right: -30px; animation-delay: -3s; }
.stat-pill .pill-icon {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}

/* ─── STATS STRIP ─── */
.stats-strip { background: var(--navy-deep); padding: 2rem 0; }
.stat-item { text-align: center; }
.stat-num {
    font-family: 'DM Serif Display', serif; font-size: 2.4rem;
    color: var(--sky); line-height: 1; margin-bottom: 0.2rem;
}
.stat-label {
    font-size: 0.75rem; color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.stat-div { width: 1px; height: 38px; background: rgba(135,206,235,0.15); align-self: center; }

/* ─── FEATURES ─── */
.features { padding: 6rem 0; }
.section-label {
    font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 0.65rem;
}
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.9rem,3.5vw,3rem);
    color: var(--navy-deep); letter-spacing: -1px; line-height: 1.1;
}
.section-sub {
    font-size: 0.97rem; color: var(--text-mid); line-height: 1.75; max-width: 500px;
}
.feature-card {
    background: #fff; border: 1px solid rgba(37,99,235,0.1);
    border-radius: 20px; padding: 1.75rem; height: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(9,21,53,0.09);
    border-color: rgba(37,99,235,0.2);
}
.feature-icon {
    width: 50px; height: 50px; background: rgba(135,206,235,0.2);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--navy); margin-bottom: 1.1rem;
}
.feature-title { font-weight: 700; font-size: 1rem; color: var(--navy-dark); margin-bottom: 0.45rem; }
.feature-desc { font-size: 0.86rem; color: var(--text-mid); line-height: 1.7; }

/* ─── HOW IT WORKS ─── */
.how {
    background: linear-gradient(160deg, var(--sky-pale) 0%, #ddeefa 100%);
    padding: 6rem 0;
}
.step-num {
    font-family: 'DM Serif Display', serif; font-size: 3.5rem;
    color: rgba(37,99,235,0.13); line-height: 1; margin-bottom: -0.4rem;
}
.step-title { font-weight: 700; font-size: 1.05rem; color: var(--navy-dark); margin-bottom: 0.35rem; }
.step-desc { font-size: 0.86rem; color: var(--text-mid); line-height: 1.7; }
.step-line {
    width: 2px; height: 36px;
    background: linear-gradient(to bottom, var(--sky), transparent);
    margin: 0.5rem 0 0.5rem 1.6rem;
}
.shortener-demo {
    background: var(--navy-deep); border-radius: 24px; padding: 2.25rem;
    box-shadow: 0 30px 80px rgba(9,21,53,0.2);
}
.demo-section-label {
    font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.5); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.input-group-shorten {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(135,206,235,0.18);
    border-radius: 13px; padding: 0.45rem; display: flex; gap: 0.45rem;
}
.input-shorten {
    background: transparent !important; border: none !important;
    color: #fff !important; padding: 0.45rem 0.7rem; font-size: 0.85rem; flex: 1; outline: none;
}
.input-shorten::placeholder { color: rgba(255,255,255,0.3) !important; }
.btn-shorten {
    background: var(--sky); color: var(--navy-dark);
    border: none; border-radius: 9px; padding: 0.45rem 1.1rem;
    font-weight: 700; font-size: 0.82rem; white-space: nowrap; transition: background 0.2s;
}
.btn-shorten:hover { background: var(--sky-light); }
.result-box {
    background: rgba(135,206,235,0.07); border: 1px solid rgba(135,206,235,0.18);
    border-radius: 11px; padding: 0.85rem 1rem;
    display: flex; align-items: center; justify-content: space-between; margin-top: 0.85rem;
}
.result-url { font-family: monospace; color: var(--sky); font-size: 0.88rem; }
.btn-copy {
    background: rgba(135,206,235,0.12); border: 1px solid rgba(135,206,235,0.22);
    color: var(--sky); border-radius: 7px; padding: 0.28rem 0.7rem;
    font-size: 0.75rem; cursor: pointer; transition: background 0.2s;
}
.btn-copy:hover { background: rgba(135,206,235,0.25); }
.demo-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 1.4rem 0; }
.mini-profile {
    text-align: center; background: rgba(255,255,255,0.04);
    border-radius: 14px; padding: 1.25rem;
}
.mini-profile-avatar { font-size: 1.6rem; margin-bottom: 0.35rem; }
.mini-profile-name { color: #fff; font-weight: 700; font-size: 0.9rem; }
.mini-profile-handle { color: var(--sky); font-size: 0.72rem; margin-bottom: 0.85rem; }
.mini-link {
    background: rgba(255,255,255,0.07); border-radius: 8px;
    padding: 0.5rem 0.75rem; color: #fff; font-size: 0.78rem; margin-bottom: 0.4rem;
}

/* ─── CTA ─── */
.cta-section { padding: 5.5rem 0; }
.cta-box {
    background: var(--navy-deep); border-radius: 30px;
    padding: 4rem 2rem; text-align: center;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(135,206,235,0.1) 0%, transparent 70%);
    top: -200px; right: -80px; pointer-events: none;
}
.cta-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem,4.5vw,3.4rem); color: #fff;
    letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 0.9rem;
    position: relative; z-index: 1;
}
.cta-title em { font-style: italic; color: var(--sky); }
.cta-sub {
    color: rgba(255,255,255,0.5); font-size: 1rem;
    margin-bottom: 2rem; position: relative; z-index: 1;
}
.btn-cta {
    background: var(--sky); color: var(--navy-dark);
    border: none; border-radius: 100px; padding: 0.88rem 2.2rem;
    font-weight: 800; font-size: 0.95rem; transition: all 0.25s;
    box-shadow: 0 8px 28px rgba(135,206,235,0.25);
    text-decoration: none; position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-cta:hover {
    background: var(--white); transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(135,206,235,0.3); color: var(--navy-dark);
}

/* ─── FOOTER ─── */
footer {
    background: var(--navy-deep);
    border-top: 1px solid rgba(135,206,235,0.08); padding: 2.25rem 0;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand-logo { width: 28px; height: 28px; }
.footer-brand-name { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: #fff; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 0.3rem; }
.footer-links a {
    color: rgba(255,255,255,0.45); text-decoration: none;
    font-size: 0.8rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--sky); }

/* ─── ANIMATIONS ─── */
.fade-up {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 991px) {
    .stat-pill { display: none; }
    .hero-demo { margin-top: 2.5rem; }
}
@media (max-width: 767px) {
    .hero-title { letter-spacing: -1px; }
    .stat-div { display: none; }
}