:root {
    /* Color Palette */
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #ff3b30;
    --accent-orange: #ff9f0a;
    --accent-yellow: #ffd60a;
    --glass-bg: rgba(25, 25, 28, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-bottom: 70px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Fade edges — content fades out as it scrolls under navbar / footer */
body::before,
body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 90px;
    pointer-events: none;
    z-index: 99;
}

body::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(5, 5, 5, 0.8) 40%, transparent 100%);
}

body::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(5, 5, 5, 0.8) 40%, transparent 100%);
}

/* Background Blobs for dynamic aesthetic */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.2) 0%, rgba(20, 20, 20, 0) 70%);
}

.shape-2 {
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 159, 10, 0.15) 0%, rgba(20, 20, 20, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Typography elements */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 50%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.25);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.5), rgba(0, 0, 0, 0), rgba(255, 214, 10, 0.5));
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-glow:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Header Pill */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
}

.navbar {
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

.logo-icon-box {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 1.2rem;
    color: var(--accent-yellow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
}

.mobile-menu.open {
    pointer-events: all;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 80px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 20px 20px;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateY(0);
}

.mobile-menu-panel a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.mobile-menu-panel a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-yellow);
}

.mobile-menu-panel .btn-install-mobile {
    margin-top: 12px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    padding: 16px;
    font-size: 1rem;
}

.nav-links a:not(.btn-install) {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:not(.btn-install):hover {
    color: var(--accent-yellow);
}

.btn-install {
    background-color: var(--glass-bg);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-install:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 159, 10, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 0 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Mockup */
.hero-mockup {
    width: 380px;
    padding: 24px;
    text-align: left;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(5deg) scale(1);
    transition: transform 0.5s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.mockup-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.mockup-control {
    margin-bottom: 20px;
}

.mockup-control label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-group {
    display: flex;
    gap: 10px;
}

.pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.active-pill {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    border-color: transparent;
    font-weight: 600;
}

.select-box {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(25, 25, 28, 0.6);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer Pill */
.footer-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    z-index: 100;
    color: #a0a0a0;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
}

.footer {
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

.footer-brand span {
    color: #ffffff;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

/* Hide Default Footer Bottom */
.footer-bottom {
    display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 22, 0.7);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 159, 10, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* =====================
   Responsive — Tablet (≤ 900px)
===================== */
@media (max-width: 900px) {
    .hero {
        padding: 130px 20px 80px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }
}

/* =====================
   Responsive — Mobile (≤ 768px)
===================== */
@media (max-width: 768px) {

    /* Give body enough room so fixed footer doesn't cover content */
    body {
        padding-bottom: 75px;
    }

    /* Navbar */
    .navbar-wrapper {
        padding: 0.6rem 1.2rem;
        top: 12px;
        width: calc(100% - 24px);
    }

    /* Show hamburger, hide desktop links */
    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 100px 16px 60px;
        text-align: center;
        gap: 36px;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 28px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Mockup */
    .hero-mockup {
        width: 100%;
        max-width: 340px;
        transform: none;
        padding: 20px;
    }

    .hero-mockup:hover {
        transform: none;
    }

    /* Features */
    .features {
        padding: 60px 16px 80px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    /* Footer — allow it to grow taller for two-line layout */
    .footer-wrapper {
        padding: 1rem 1.2rem;
        bottom: 12px;
        width: calc(100% - 24px);
        height: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-brand p {
        display: none;
        /* hide 'Made with love' on mobile to save space */
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Scroll-to-top — raise it above the taller mobile footer */
    .scroll-to-top {
        bottom: 55px;
        right: 1rem;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Contact page form card */
    .glass-card[style*="max-width: 600px"] {
        padding: 24px 18px;
    }
}

/* =====================
   Responsive — Small Mobile (≤ 480px)
===================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .btn-install {
        display: none;
    }

    .legal-content {
        padding: 24px 16px;
        margin: 100px auto 60px;
    }
}

/* Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 159, 10, 0.2);
}

.form-control::placeholder {
    color: rgba(160, 160, 160, 0.5);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    display: none;
}

.form-status:not(:empty) {
    display: block;
}

.form-status.success {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.2);
}

.form-status.error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}