:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --accent-pink: #ff007f;
    --accent-glow: rgba(0, 242, 254, 0.25);
    --bg-dark: #070a0f;
    --bg-card: rgba(15, 22, 33, 0.75);
    --bg-card-hover: rgba(22, 32, 48, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.35);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.25s var(--ease-out-expo);
    --transition-normal: 0.45s var(--ease-out-expo);
    --max-width: 1200px;
    --navbar-height: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* CUSTOM CURSOR RING */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out-expo), height 0.2s var(--ease-out-expo), border-color 0.2s, background-color 0.2s, transform 0.15s ease;
    box-shadow: 0 0 12px var(--primary-color);
}

.custom-cursor.active {
    width: 36px;
    height: 36px;
    border-color: var(--accent-pink);
    background-color: rgba(255, 0, 127, 0.15);
    box-shadow: 0 0 18px var(--accent-pink);
}

.custom-cursor.spinning {
    animation: spinCursor 0.6s linear infinite;
    border-style: dashed;
    border-color: #55ff55;
    box-shadow: 0 0 20px #55ff55;
}

@keyframes spinCursor {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* SOCCER BALL CURSOR EASTER EGG */
.custom-cursor.soccer-ball {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor.soccer-ball::after {
    content: '⚽';
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    animation: ballRoll 0.8s linear infinite;
}

@keyframes ballRoll {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ZEFTY FLYING ROBOT COMPANION */
.zefty-bot, .friend-bot {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 42px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: filter 0.3s ease, opacity 0.4s ease;
}

.friend-bot {
    width: 34px;
    height: 32px;
    opacity: 0;
}

.friend-bot.spawned {
    opacity: 1;
}

.bot-antenna {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #475569;
}

.antenna-light {
    position: absolute;
    top: -5px;
    left: -2.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: antennaPulse 1.5s infinite ease-in-out;
    transition: background 0.2s, box-shadow 0.2s;
}

@keyframes antennaPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.bot-head {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 242, 254, 0.2);
    animation: botBob 2.5s infinite ease-in-out;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

@keyframes botBob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.bot-screen {
    width: 100%;
    height: 100%;
    background: #020617;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
    position: relative;
    overflow: hidden;
}

.bot-eye {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
    transition: transform 0.08s ease-out, height 0.15s ease, width 0.15s ease, background 0.2s, box-shadow 0.2s, border-radius 0.2s, clip-path 0.2s;
    transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
}

.bot-paper {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    width: 22px;
    height: 14px;
    background: #f8fafc;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.bot-paper::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 2px;
    background: #94a3b8;
    box-shadow: 0 4px 0 #94a3b8;
}

.zefty-bot.anim-read .bot-paper {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

/* EMOTION & ANIMATION ROUTINE STATES */
.zefty-bot.state-blink .bot-eye,
.zefty-bot.state-click .bot-eye,
.friend-bot.state-click .bot-eye {
    height: 2px !important;
    border-radius: 2px;
    box-shadow: 0 0 10px #55ff55;
    background: #55ff55;
}

.zefty-bot.state-hover .bot-head,
.zefty-bot.emotion-excited .bot-head,
.zefty-bot.emotion-happy .bot-head,
.friend-bot.emotion-excited .bot-head {
    border-color: var(--accent-pink);
    box-shadow: 0 0 22px rgba(255, 0, 127, 0.6);
}

.zefty-bot.state-hover .antenna-light,
.zefty-bot.emotion-excited .antenna-light,
.zefty-bot.emotion-happy .antenna-light,
.friend-bot.emotion-excited .antenna-light {
    background: var(--accent-pink);
    box-shadow: 0 0 14px var(--accent-pink);
}

.zefty-bot.state-hover .bot-eye,
.zefty-bot.emotion-excited .bot-eye,
.friend-bot.emotion-excited .bot-eye {
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.zefty-bot.emotion-happy .bot-eye,
.friend-bot.emotion-happy .bot-eye {
    background: #55ff55;
    box-shadow: 0 0 10px #55ff55;
    border-radius: 50% 50% 0 0;
    height: 5px;
    width: 9px;
}

.zefty-bot.emotion-sad .bot-eye {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    border-radius: 0 0 50% 50%;
    height: 5px;
    width: 8px;
}

.zefty-bot.emotion-sad .bot-head {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.zefty-bot.emotion-sad .antenna-light {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.zefty-bot.emotion-angry .bot-eye {
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
    height: 8px;
    width: 8px;
}

.zefty-bot.emotion-angry .bot-head {
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.6);
}

.zefty-bot.emotion-angry .antenna-light {
    background: #ff3333;
    box-shadow: 0 0 12px #ff3333;
}

.zefty-bot.anim-roll .bot-head {
    animation: botRoll 0.8s ease-in-out;
}

@keyframes botRoll {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.zefty-bot.anim-knock .bot-head {
    animation: botKnock 0.5s ease-in-out 2;
}

@keyframes botKnock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.zefty-bot.anim-dance .bot-head,
.friend-bot.anim-dance .bot-head {
    animation: botDance 0.4s ease-in-out infinite alternate;
}

@keyframes botDance {
    0% { transform: translateY(-4px) rotate(-14deg); }
    100% { transform: translateY(4px) rotate(14deg); }
}

.bot-glow {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
    z-index: -1;
    filter: blur(6px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(7, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-name .highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hero-section {
    position: relative;
    padding-top: calc(var(--navbar-height) + 5rem);
    padding-bottom: 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0f1926 0%, #070a0f 70%);
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-container {
    max-width: 850px;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #030810;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.templates-section {
    padding: 6rem 1.5rem;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-top: 0.3rem;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.template-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: var(--bg-card-hover);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    z-index: 5;
}

.card-badge.free {
    background: rgba(85, 255, 85, 0.15);
    color: #55ff55;
    border: 1px solid rgba(85, 255, 85, 0.3);
}

.card-badge.premium {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.card-preview {
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(7, 10, 15, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.card-preview.alt {
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.15), rgba(7, 10, 15, 0.9));
}

.preview-icon {
    font-size: 3.5rem;
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.card-actions .btn {
    flex: 1;
}

.footer-section {
    background: #030508;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 1.25rem;
}

.footer-contact-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.footer-contact-info a {
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: rgba(7, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition-normal);
    }

    .nav-menu.open {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

.pricing-section {
    padding: 4rem 1.5rem 6rem 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: var(--bg-card-hover);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.08) 0%, rgba(15, 22, 33, 0.85) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #030810;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.25rem 0.85rem;
    border-radius: 30px;
    letter-spacing: 1px;
}

.plan-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.2rem 0 0.75rem 0;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

.plan-features li {
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.plan-features li span {
    color: #55ff55;
    font-weight: 800;
}

.plan-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.plan-features li.disabled span {
    color: var(--text-muted);
}