:root {
    --primary: #6DE5F2;
    /* Cyan */
    --primary-dark: #144673;
    /* Navy Blue */
    --accent: #F26835;
    /* Vibrant Orange */
    --accent-muted: #BF754B;
    /* Terracotta */
    --bg: #0D0D0D;
    /* Deep Black */
    --card-bg: #151515;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

.maintenance-banner {
    background: linear-gradient(90deg, #F26835, #BF754B);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    font-weight: 700;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
}

/* Container adjustments for mobile */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Background Decorations */

/* Navigation */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(5px);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-cta {
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin-left: 1rem;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a[href="/slack/install"] {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
    margin-left: 1rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero */
header {
    padding: 8rem 0;
}

.hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-block;
}

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

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

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

.btn-secondary:hover {
    background-color: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Integrations */
.integrations {
    padding: 4rem 0;
}

.integration-banner {
    background: var(--primary-dark);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--primary);
}

.integration-banner h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.logos {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.logo-box {
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    header {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(:last-child) {
        display: none;
    }

    .nav-links a:last-child {
        display: inline-block;
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }

    .nav-links a:last-child img {
        height: 36px;
        width: auto;
    }

    /* Workflow arrows hidden on tablet/mobile */
    .workflow-arrows {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .nav-links a:last-child img {
        height: 32px;
    }
}

/* Slack Mockup UI */
:root {
    --slack-bg: #1a1d21;
    --slack-sidebar: #19171d;
    --slack-active: #1164a3;
    --slack-text: #d1d2d3;
    --slack-border: #35373b;
    --slack-hover: #27242c;
    --slack-purple: #4a154b;
}

.workflow-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1.2fr 120px 1fr;
    gap: 0;
    align-items: center;
    margin-top: 3rem;
}

/* Slack Side */
.slack-window {
    background: var(--slack-bg);
    border-radius: 12px;
    border: 1px solid var(--slack-border);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    height: 500px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.slack-sidebar {
    width: 220px;
    background: var(--slack-sidebar);
    border-right: 1px solid var(--slack-border);
    padding: 1rem 0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--slack-border);
    margin-bottom: 1rem;
}

.sidebar-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.sidebar-item {
    padding: 0.4rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.sidebar-item.active {
    background: var(--slack-active);
    color: white;
}

.slack-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slack-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--slack-border);
    font-weight: 700;
    color: white;
}

.slack-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-container {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.message {
    display: flex;
    gap: 1rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #5c3a5c;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ephemeral-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.ephemeral-info svg {
    margin-bottom: -1px;
}

.app-badge {
    background: #1d1d1d;
    color: #94a3b8;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.msg-content {
    flex: 1;
}

.msg-header {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.2rem;
}

.msg-name {
    font-weight: 800;
    color: white;
}

.msg-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.msg-text {
    color: var(--slack-text);
}

.slack-input-container {
    padding: 1rem 1.5rem 1.5rem;
}

.slack-input {
    background: transparent;
    border: 1px solid var(--slack-border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--slack-text);
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
}


.typing-cursor {
    width: 2px;
    height: 1.2rem;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
}

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

/* Workflow Arrows */
.workflow-arrows {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}

.arrow {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2px;
    width: 10px;
    height: 10px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    border-right: 3px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(45deg);
}

.arrow.active {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.arrow.active::after {
    border-color: var(--primary);
}

/* Output Side */
.output-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.output-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
    transform: translateX(20px);
}

.output-card.active {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.output-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.output-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.output-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Screenshots Section */
.screenshots-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.screenshot-caption p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .workflow-arrows {
        display: none;
    }

    .slack-window {
        height: 400px;
    }
}

@media (max-width: 600px) {

    /* Hide Slack Sidebar on mobile to show just messages */
    .slack-sidebar {
        display: none;
    }

    .slack-window {
        height: 350px;
    }

    .message {
        gap: 0.75rem;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .slack-header {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .slack-messages {
        padding: 1rem;
        gap: 1rem;
    }

    /* Larger Touch Targets for Landing Page */
    .btn,
    .nav-cta {
        padding: 1rem 2rem;
        /* Increase padding */
        min-height: 48px;
        /* Ensure good touch size */
        font-size: 1rem;
    }
}

/* Legal/Support Pages */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 80vh;
}

.legal-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-card h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-card p,
.legal-card li {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.legal-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-card a {
    color: var(--primary);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}