@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0B0F1A;
    --bg-secondary: #161D2F;
    --bg-card: #161D2F;
    --border-solid: #2A3350;
    --text-primary: #E8ECF4;
    --text-secondary: #8B95AD;
    --accent: #003EBB;
    --accent-hover: #1A5FD6;
    --accent-bg: rgba(0, 62, 187, 0.1);
    --shadow-brut: 4px 4px 0px #000000;
    --shadow-brut-sm: 2px 2px 0px #000000;
    --shadow-brut-accent: 4px 4px 0px #002266;
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    --bg-primary: #F0F2F7;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-solid: #C5CDE0;
    --text-primary: #0B0F1A;
    --text-secondary: #4A5568;
    --shadow-brut: 4px 4px 0px #C5CDE0;
    --shadow-brut-sm: 2px 2px 0px #C5CDE0;
    --shadow-brut-accent: 4px 4px 0px #003EBB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-solid);
    padding: 16px 0;
    transition: background 0.3s ease;
}

[data-theme="light"] .header {
    background: rgba(240, 242, 247, 0.85);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 2px solid var(--border-solid);
    box-shadow: var(--shadow-brut-sm);
    object-fit: contain;
    background: #fff;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-solid);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-brut-sm);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brut);
}

.theme-toggle:active {
    transform: translate(0, 0);
    box-shadow: none;
}

/* Button variants */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-brut-accent);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #002266;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 6px 6px 0px #003EBB;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-pill {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-bg);
    border: 2px solid var(--border-solid);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-brut-sm);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 800px;
    margin-inline: auto;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-highlight {
    background: var(--accent);
    color: #fff !important;
    padding: 2px 16px;
    border: 3px solid var(--text-primary);
    box-shadow: 6px 6px 0px var(--text-primary);
    display: inline-block;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(-2deg);
    margin: 0 8px;
}

.hero-highlight:hover {
    transform: rotate(3deg) scale(1.05);
    box-shadow: 8px 8px 0px var(--text-primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-browser {
    margin-top: 60px;
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-solid);
    background: var(--bg-secondary);
    box-shadow: 8px 8px 0px var(--border-solid);
    overflow: hidden;
    position: relative;
}

.browser-header {
    height: 48px;
    border-bottom: 2px solid var(--border-solid);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-solid);
}

.dot.r {
    background: #FF5F56;
}

.dot.y {
    background: #FFBD2E;
}

.dot.g {
    background: #27C93F;
}

.browser-content {
    background: var(--bg-primary);
    aspect-ratio: 2/1;
    /* Reduced height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.demo-slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.slide-content {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 3px solid var(--border-solid);
    border-radius: var(--radius-lg);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

[data-theme="light"] .slide-content {
    box-shadow: 12px 12px 0px rgba(197, 205, 224, 0.5);
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.9;
}

.slider-controls {
    display: none;
    /* Deprecated, removed from HTML structure */
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 2px 2px 0 var(--text-primary);
    transition: transform 0.1s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn.prev-btn {
    left: 16px;
}

.slider-btn.next-btn {
    right: 16px;
}

.slider-btn:active {
    box-shadow: none;
    background: var(--accent-hover);
}

/* Demo UI CSS Abstractions */
.demo-ui {
    width: 280px;
    height: 160px;
    /* Reduced from 200px */
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-solid);
    border-radius: var(--radius);
    margin: 0 auto 20px;
}

.faux-tweet {
    height: 48px;
    background: var(--bg-card);
    border: 2px solid var(--border-solid);
    border-radius: var(--radius);
}

.faux-reply {
    height: 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border-solid);
    border-radius: 12px;
    width: 80%;
    margin-left: auto;
}

.faux-reply.highlight {
    background: var(--accent);
    border: 2px solid var(--text-primary);
    width: 90%;
    box-shadow: 4px 4px 0 var(--text-primary);
}

.faux-textarea {
    flex-grow: 1;
    background: var(--bg-card);
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.typing-line {
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    width: 100%;
    opacity: 0.5;
}

.typing-line.short {
    width: 60%;
}

.faux-btn {
    height: 32px;
    background: var(--accent);
    border-radius: var(--radius);
    width: 100%;
    border: 2px solid var(--border-solid);
}

.capture-box {
    flex-grow: 1;
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: repeating-linear-gradient(45deg,
            var(--bg-primary),
            var(--bg-primary) 10px,
            var(--bg-card) 10px,
            var(--bg-card) 20px);
}

.capture-box .faux-tweet.solid {
    width: 100%;
    height: 80px;
    background: var(--bg-secondary);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .capture-box .faux-tweet.solid {
    box-shadow: 8px 8px 0 rgba(197, 205, 224, 0.5);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-solid);
    border-bottom: 2px solid var(--border-solid);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-brut);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--border-solid);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-brut-sm);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    border-bottom: 2px solid var(--border-solid);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 3px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-brut);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--border-solid);
}

.pricing-card.pro {
    border-color: var(--accent);
    box-shadow: 6px 6px 0px var(--accent);
}

.pricing-card.pro:hover {
    box-shadow: 10px 10px 0px var(--accent);
}

.pro-badge {
    position: absolute;
    top: -16px;
    right: 32px;
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--border-solid);
    box-shadow: var(--shadow-brut-sm);
}

.pricing-header {
    margin-bottom: 32px;
    text-align: center;
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.btn-pricing {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border: 3px solid var(--border-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-brut-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brut);
}

.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-solid);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

/* Simple Page Layout (Privacy, Terms) */
.page-content {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.page-content .last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.prose {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

.prose h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.prose p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.prose ul,
.prose ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}