:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #ff4d4d;
    --accent-glow: rgba(255, 77, 77, 0.15);
    --secondary: #3b82f6;
    --secondary-glow: rgba(59, 130, 246, 0.15);
    --glass: rgba(15, 23, 42, 0.03);
    --glass-border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.container.narrow {
    max-width: 800px;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease-in-out;
}

/* Header */
.header {
    padding: clamp(18px, 4vw, 32px) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw + 0.6rem, 2.2rem);
    letter-spacing: -1px;
}

.logo-icon-img {
    width: clamp(34px, 6vw, 48px);
    height: clamp(34px, 6vw, 48px);
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    padding: clamp(110px, 20vw, 180px) 0 clamp(56px, 10vw, 100px);
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.1vw + 0.75rem, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.btn-blue {
    background-color: var(--secondary);
    color: #fff;
}

.btn-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--secondary-glow);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.05);
    transform: translateY(-5px);
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Features */
.features {
    padding: clamp(56px, 10vw, 100px) 0;
    background: linear-gradient(to bottom, var(--bg), var(--bg-alt));
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw + 1rem, 3rem);
    margin-bottom: clamp(32px, 6vw, 60px);
    font-weight: 800;
}

.section-lede {
    margin-bottom: clamp(32px, 6vw, 48px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--glass-border);
    padding: clamp(32px, 6vw, 60px) clamp(24px, 5vw, 40px);
    border-radius: 24px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.feature-card:hover {
    background: #fff;
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.how-it-works {
    padding: clamp(56px, 10vw, 100px) 0;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 800;
    background: var(--glass);
    border-radius: 8px;
    color: var(--secondary);
    border: 1px solid var(--glass-border);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
}

/* Visual Mockup */
.visual {
    position: relative;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, 80%);
    height: 260px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.code-popup-mockup {
    position: relative;
    z-index: 1;
    background: var(--secondary);
    border-radius: 18px;
    padding: 18px 26px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 30px 70px rgba(59, 130, 246, 0.35);
    animation: float 6s ease-in-out infinite;
}

.code-popup-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #fff;
}

.code-popup-text {
    text-align: left;
}

.code-value {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.code-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0px); }
}

/* CTA */
.cta {
    padding: clamp(64px, 12vw, 120px) 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(235, 77, 77, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--glass-border);
    padding: clamp(40px, 8vw, 80px) clamp(24px, 5vw, 40px);
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.cta-title {
    font-size: clamp(2rem, 4.5vw + 1rem, 3.5rem);
    margin-bottom: 24px;
    font-weight: 800;
}

.cta-subtitle {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
}

.shadow-glow {
    box-shadow: 0 10px 40px rgba(255, 77, 77, 0.2);
}

.cta-meta {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.install-note {
    display: block;
    margin: clamp(28px, 6vw, 48px) auto 0;
    max-width: 540px;
    padding: clamp(20px, 4vw, 28px) clamp(20px, 5vw, 32px);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    text-align: left;
    line-height: 1.55;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.install-note * {
    text-align: left;
}

.install-note strong {
    color: var(--text);
    font-weight: 600;
}

.install-note-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}

.install-note-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.install-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

.install-steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 0 12px 38px;
    line-height: 1.55;
}

.install-steps li + li {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--text);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    padding: clamp(40px, 8vw, 60px) 0 clamp(28px, 5vw, 40px);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
}

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

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 560px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Legal Page Styles */
.hero-mini {
    padding: clamp(110px, 20vw, 160px) 0 clamp(36px, 6vw, 60px);
    text-align: center;
}

.hero-title.small {
    font-size: clamp(1.75rem, 4.5vw + 1rem, 3rem);
}

.text-block {
    padding: clamp(36px, 6vw, 60px) 0;
}

.text-block h2 {
    font-size: clamp(1.4rem, 2vw + 1rem, 1.8rem);
    margin-bottom: 24px;
    color: var(--text);
}

.text-block p {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.legal-separator {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 60px 0;
}

.legal-page .footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

