:root {
    --bg-dark: #050505;
    /* Deep black/grey from reference */
    --card-bg: #0f1115;
    /* Slightly lighter for cards */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent-primary: #54f5bb;
    /* Neon green from reference */
    --accent-secondary: #49c6ff;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;
    /* Reference uses clean sans for everything */
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Warm orange glow top-left, Cool blue glow top-right */
    background-image:
        radial-gradient(circle at 20% 20%, rgba(180, 100, 50, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 100, 180, 0.15) 0%, transparent 50%);
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.pill-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 30%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0;
    text-transform: none;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--text-main);
    color: var(--bg-dark);
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    /* Fully rounded */
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
}

.cta-button.small {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #54f5bb, #49c6ff);
    /* Horizontal gradient matching reference */
    color: #05060c;
    /* Dark text for contrast */
}

.cta-button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(84, 245, 187, 0.3);
}

.secondary-button {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    padding: 8rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-header {
    max-width: 900px;
    margin-bottom: 4rem;
}

.hero-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 540px;
}

.hero-subtitle {
    font-size: 1.2rem;
    /* Slightly larger */
    margin-bottom: 3rem;
    max-width: 540px;
    color: #9ca3af;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual / Mockup - Updated to match card style */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    /* Removed 3D tilt for a cleaner, flatter look like the reference */
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    /* Subtler dots */
}

.comment-box {
    background: #050505;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.comment-text {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-family: monospace;
    /* Tech feel */
    min-height: 3em;
    /* Reserve space for 2 lines to prevent jumping */
}

.comment-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background: linear-gradient(90deg, #54f5bb, #49c6ff);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    color: #05060c;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 245, 187, 0.2);
}

/* Features / Cards - Matching the reference "01. SLACK WEBHOOK" style */
.features {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-header {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: none;
    /* Hiding standard h3 to use the header style */
}

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

/* How It Works - Using the same card style */
.how-it-works {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.browser-window {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: var(--card-bg);
}

.browser-header {
    background: #1a1d24;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

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

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.address-bar {
    flex: 1;
    background: #050505;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lock-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.browser-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.extension-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.2s ease;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(84, 245, 187, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(84, 245, 187, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(84, 245, 187, 0);
    }
}

.extension-icon.active {
    background: rgba(84, 245, 187, 0.15);
    box-shadow: 0 0 0 1px var(--accent-primary);
    animation: pulse-glow 2s infinite;
}

.pcc-icon-inner {
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: relative;
}

.pcc-icon-inner::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    border-radius: 50%;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: #333;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.video-content {
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-content video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
}

.step-number {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.step h3 {
    font-size: 1.1rem;
    /* Smaller, cleaner headers */
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Product Hunt CTA */
.product-hunt-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
}

.product-hunt-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 5%;
    margin-top: 4rem;
    background: var(--bg-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 2rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    margin-top: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    nav { display: none }
    .hero { padding-top: 4rem }
    .hero-header h1 { font-size: 3rem }
}
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-header {
        text-align: center;
        margin: 0 auto 3rem;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .ui-mockup {
        margin-top: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    nav,
    .hero,
    .features,
    .how-it-works,
    .instructions,
    .footer-content {
        max-width: 1380px;
    }
}

/* Instructions Section */
.instructions {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.instructions-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.intro-text {
    margin-bottom: 3rem;
    max-width: 600px;
}

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

.setup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
}

.setup-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

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

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

.workflow-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
}

.workflow-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.workflow-steps {
    list-style-position: inside;
    counter-reset: workflow-counter;
    padding-left: 0;
}

.workflow-steps li {
    list-style: none;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.workflow-steps li::before {
    counter-increment: workflow-counter;
    content: counter(workflow-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: 700;
}

.workflow-steps code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-main);
    font-size: 0.9em;
}