:root {
    --bg: #09090b;
    --fg: #fafafa;
    --fg-muted: #a1a1aa;
    --border: #27272a;
    --primary: #fafafa;
    --primary-inv: #09090b;
    --accent: #3b82f6;
    /* Subtle blue for focuses/accents if needed */
    --card-bg: #18181b;
    --card-hover: #27272a;

    --font-heading: 'Cal Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 32px;
        font-size: 0.95rem;
        color: var(--fg-muted);
    }

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-bg);
    border-color: var(--border);
}

.btn-outline {
    border-color: var(--border);
    color: var(--fg);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--fg-muted);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--fg-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 60px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* Hero Visual / Mockup */
.hero-visual {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.browser-mockup {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.browser-mockup:hover {
    transform: rotateX(0deg);
}

.browser-header {
    background: #27272a;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #3f3f46;
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #52525b;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #eab308;
}

.dots span:nth-child(3) {
    background: #22c55e;
}

.nav-bar {
    flex: 1;
    height: 24px;
    background: #18181b;
    border-radius: 4px;
    max-width: 400px;
}

.browser-body {
    height: 480px;
    background: #09090b;
    display: flex;
}

.app-ui {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 60px;
    border-right: 1px solid #27272a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-item {
    width: 100%;
    aspect-ratio: 1;
    background: #27272a;
    border-radius: 6px;
}

.ui-item.active {
    background: #fff;
}

.main-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
}

.key-combo {
    font-family: monospace;
    background: #27272a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #a1a1aa;
}

.site-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    width: 32px;
    height: 32px;
    background: #27272a;
    border-radius: 6px;
}

.lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line {
    height: 6px;
    background: #27272a;
    border-radius: 3px;
    width: 100%;
}

.line.short {
    width: 60%;
}

.blur-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg);
    position: relative;
    border-top: 1px solid #18181b;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--fg-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #3f3f46;
    background: var(--card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #27272a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

/* Demo Section */
.demo-section {
    padding: 100px 0;
    border-top: 1px solid #18181b;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.steps li {
    display: flex;
    gap: 24px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 4px;
}

.steps h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.steps p {
    color: var(--fg-muted);
}

.demo-preview {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.keyboard-visual {
    display: flex;
    gap: 12px;
}

.key {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-bottom-width: 4px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.key.accent {
    background: #fff;
    color: #000;
    border-color: #e4e4e7;
}

.arrow-down {
    color: var(--fg-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.browser-window {
    width: 100%;
    background: #27272a;
    border-radius: 8px;
    padding: 12px;
}

.url-bar {
    background: #18181b;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--fg-muted);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid #18181b;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    color: var(--fg-muted);
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 640px) {
    .footer-links {
        flex-direction: row;
        justify-content: space-between;
    }
}

.link-group h4 {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: var(--fg);
}

.link-group a {
    display: block;
    margin-bottom: 12px;
    color: var(--fg-muted);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--fg);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    border-top: 1px solid #18181b;
    padding-top: 32px;
    color: #52525b;
    font-size: 0.85rem;
}

kbd {
    background-color: #27272a;
    border-radius: 3px;
    border: 1px solid #3f3f46;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.05) inset;
    display: inline-block;
    font-size: .85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
    margin: 0 2px;
}