:root {
    --bg: #09090b;
    --bg-elevated: #111113;
    --fg: #fafafa;
    --muted: #71717a;
    --accent: #a855f7;
    --accent-dark: #7c3aed;
    --accent-darker: #4c1d95;
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.02);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Geist",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background grid pattern */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        black 40%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Gradient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-darker);
    top: -200px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fg);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-dark) 100%
    );
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero */
.hero {
    padding: 180px 0 120px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: clamp(48px, 10vw, 88px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 24px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent) 0%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 15px;
}

/* Preview */
.preview {
    margin-top: 80px;
    position: relative;
}

.preview-window {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 200px rgba(168, 85, 247, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3f3f46;
}

.preview-dot:first-child {
    background: #ef4444;
}
.preview-dot:nth-child(2) {
    background: #eab308;
}
.preview-dot:nth-child(3) {
    background: #22c55e;
}

.preview-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 400px;
}

.preview-sidebar {
    border-right: 1px solid var(--border);
    padding: 20px;
}

.preview-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.preview-sidebar-header img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.preview-sidebar-header span {
    font-weight: 700;
    font-size: 15px;
}

.preview-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.preview-contact:hover {
    background: rgba(255, 255, 255, 0.03);
}

.preview-contact.active {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--accent-dark) 0%,
        var(--accent-darker) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.preview-contact-info {
    flex: 1;
    min-width: 0;
}

.preview-contact-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.preview-contact-preview {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.preview-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.preview-chat-header .preview-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.preview-chat-name {
    font-weight: 700;
    font-size: 16px;
}

.preview-chat-status {
    font-size: 12px;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-chat-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.preview-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.preview-message.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}

.preview-message.outgoing {
    align-self: flex-end;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-dark) 100%
    );
    border-bottom-right-radius: 4px;
}

.preview-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: fit-content;
    align-self: flex-end;
}

.preview-typing span {
    width: 6px;
    height: 6px;
    background: var(--muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.preview-typing span:nth-child(2) {
    animation-delay: 0.2s;
}
.preview-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

/* Features */
.features {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.2) 0%,
        rgba(124, 58, 237, 0.2) 100%
    );
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* How it works */
.how-it-works {
    padding: 120px 0;
}

/* Install options */
.install-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.install-option {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.install-option:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.1);
}

.install-option:hover::before {
    opacity: 1;
}

.install-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.install-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.install-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.2) 0%,
        rgba(124, 58, 237, 0.2) 100%
    );
    color: var(--accent);
    border-radius: 100px;
}

.install-option pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    overflow-x: auto;
    position: relative;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}

.install-option pre::-webkit-scrollbar {
    height: 8px;
}

.install-option pre::-webkit-scrollbar-track {
    background: var(--bg);
}

.install-option pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.install-option pre::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.3);
}

.install-option pre:hover {
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(168, 85, 247, 0.1);
}

.install-option pre::before {
    content: "bash";
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 11px;
    color: var(--muted);
    font-family: "Geist Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.install-option pre .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Geist", sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.install-option pre .copy-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--fg);
    transform: translateY(-1px);
}

.install-option pre .copy-btn:active {
    transform: translateY(0);
}

.install-option pre .copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.install-option pre .copy-btn svg {
    width: 14px;
    height: 14px;
}

.install-option pre code {
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    color: var(--fg);
    line-height: 1.8;
    display: block;
    padding: 16px 20px 20px;
    background: transparent;
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.install-option pre code::selection {
    background: rgba(168, 85, 247, 0.3);
}

.install-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.install-desc {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--fg);
    line-height: 1.6;
}

.install-note a {
    color: var(--accent);
    text-decoration: none;
}

.install-note a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

.footer-made-by {
    color: var(--muted);
    font-size: 14px;
}

.footer-made-by a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-made-by a:hover {
    color: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}
.delay-4 {
    animation-delay: 0.4s;
}
