:root {
    --primary: #D90429;
    /* RedPad Red */
    --primary-dim: #EF233C;
    --bg: #0D1117;
    /* Slate Dark */
    --surface: #161B22;
    --surface-hover: #1F242C;
    --border: #30363D;
    --text: #F0F6FC;
    --text-muted: #8B949E;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dim);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background-color: var(--surface);
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    perspective: 1000px;
    /* For 3D elements */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--primary);
}

/* Screenshot Showcase */
.screenshot-showcase {
    padding: 2rem 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    perspective: 2000px;
}

.app-frame {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #161B22;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.app-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -12px rgba(217, 4, 41, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.app-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 12px 12px;
    /* Bottom corners only */
}

/* Window Chrome (Header) */
.window-chrome {
    background: #252a33;
    /* Darker title bar */
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #1e2229;
    height: 48px;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

/* Mock Tabs */
.window-tabs {
    display: flex;
    gap: 4px;
    align-self: flex-end;
    /* Align tabs to bottom of header */
    height: 100%;
    align-items: flex-end;
}

.window-tab {
    background: transparent;
    color: #8b949e;
    padding: 6px 16px;
    font-size: 13px;
    font-family: var(--font-mono);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    height: 36px;
    margin-bottom: -11px;
    /* Overlap with border */
    position: relative;
    top: 11px;
    transition: all 0.2s ease;
}

.window-tab.active {
    background: #161B22;
    /* Matches frame bg/ image bg */
    color: #fff;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.window-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    /* Active tab indicator */
    border-radius: 2px 2px 0 0;
}

.window-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.tab-icon {
    font-size: 1.1em;
}

.main-shot {
    width: 100%;
    max-width: 1000px;
    z-index: 10;
}

.secondary-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
}

@media (max-width: 768px) {
    .secondary-shots {
        grid-template-columns: 1fr;
    }
}

/* Features Grid */
.features {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
}

.made-with {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.made-with span {
    color: var(--primary);
}

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

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

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.prompt {
    color: var(--primary);
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--text-muted);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}