/* design-system.css */
:root {
    --bg-base: #000000;
    --bg-card: #09090B;
    --border-color: #27272A;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --accent: #FAFAFA;
    --success: #FAFAFA;
    --warning: #A1A1AA;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

p {
    margin-top: 0;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

a:hover {
    color: var(--accent);
}

.subtitle {
    font-size: 1.25rem;
    max-width: 700px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Monospace Tags */
.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Base Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar-wrapper {
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.nav-links a {
    margin: 0 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

/* Layout Padding */
section {
    padding: 8rem 0;
}

.section-darker {
    background-color: #030303;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    border: 1px solid transparent;
}

.btn.lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #EDEDED;
    color: #09090B;
}

.btn-primary:hover {
    background-color: #FAFAFA;
}

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

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.full-width {
    width: 100%;
}

/* Active scale down effect for all buttons (50ms sharp) */
.btn:active {
    transform: scale(0.98);
    transition: transform 50ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typing Cursor */
.typing-cursor {
    animation: blink 1s step-end infinite;
    display: inline-block;
    color: var(--text-secondary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Card Styles */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease-out, transform 0.2s ease-out;
}

/* Spotlight hover base setup */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before {
    opacity: 0;
}

/* Hero elements */
.trust-badge {
    margin-top: 3rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Grid layout for features / workflows */
.grid {
    display: grid;
    gap: 4rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li span {
    position: absolute;
    left: 0;
    color: var(--success);
}

.feature-list li strong {
    color: var(--text-primary);
}

/* Pricing specific */
.price-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.price-val span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.highlight-card {
    border-color: var(--text-primary);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--text-primary);
    color: var(--bg-base);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.pricing-desc {
    min-height: 48px;
}

/* Timeline/Workflow */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    gap: 3rem;
    padding: 3rem;
}

.step-num {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent);
    flex-shrink: 0;
}

.step-content p {
    margin-bottom: 0;
}

/* Icons */
.icon-circle {
    font-size: 2.5rem;
    background-color: var(--bg-card);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

/* Hero graphic animation */
.hero-graphic {
    background: #050505;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
    max-width: 1200px;
    margin: 8rem auto 0;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: fit-content;
}

.workflow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    width: 100%;
}

.workflow-node {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 14px;
    min-width: 180px;
    font-family: var(--font-mono);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.workflow-node:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    background: #111114;
}

.node-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.node-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Specific Node adjustments */
.writer {
    min-width: 280px;
}

.pipeline {
    min-width: 210px;
}

.pipeline-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.action-item .status-icon {
    display: inline-block;
    width: 1.4rem;
    margin-right: 0.4rem;
}

.action-item.sync span::after {
    content: "_";
    animation: blinkCursor 1s step-end infinite;
    opacity: 0.5;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Animation Timings (10s Total Cycle) */
.action-item.analyze {
    animation: pulseAnalyze 10s infinite;
}

.action-item.analyze .status-icon::before {
    content: "📋";
    animation: iconAnalyze 10s infinite;
}

.action-item.branch {
    animation: pulseBranch 10s infinite;
}

.action-item.branch .status-icon::before {
    content: "🌿";
    animation: iconBranch 10s infinite;
}

.action-item.write {
    animation: pulseWrite 10s infinite;
}

.action-item.write .status-icon::before {
    content: "✍️";
    animation: iconWrite 10s infinite;
}

.action-item.sync {
    animation: pulseSync 10s infinite;
}

.action-item.sync .status-icon::before {
    content: "🌱";
    animation: iconSync 10s infinite;
}

.action-item.build {
    animation: pulseBuild 10s infinite;
}

.action-item.build .status-icon::before {
    content: "⚙️";
    animation: iconBuild 10s infinite;
}

.action-item.lint {
    animation: pulseLint 10s infinite;
}

.action-item.lint .status-icon::before {
    content: "🔍";
    animation: iconLint 10s infinite;
}

@keyframes pulseAnalyze {

    0%,
    9% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }

    10%,
    18% {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    19%,
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }
}

@keyframes iconAnalyze {

    0%,
    9% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    10%,
    18% {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.1);
    }

    19%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

@keyframes pulseBranch {

    0%,
    18% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }

    19%,
    27% {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    28%,
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }
}

@keyframes iconBranch {

    0%,
    18% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    19%,
    27% {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.1);
    }

    28%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

@keyframes pulseWrite {

    0%,
    27% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }

    28%,
    36% {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    37%,
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }
}

@keyframes iconWrite {

    0%,
    27% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    28%,
    36% {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.1);
    }

    37%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

@keyframes pulseSync {

    0%,
    36% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }

    37%,
    45% {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    46%,
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }
}

@keyframes iconSync {

    0%,
    36% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    37%,
    45% {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.1);
    }

    46%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

@keyframes pulseBuild {

    0%,
    54% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }

    55%,
    66% {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    67%,
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }
}

@keyframes iconBuild {

    0%,
    54% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    55%,
    66% {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.1);
    }

    67%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

@keyframes pulseLint {

    0%,
    66% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }

    67%,
    78% {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    79%,
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
    }
}

@keyframes iconLint {

    0%,
    66% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    67%,
    78% {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.1);
    }

    79%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

@keyframes iconStatus {

    0%,
    10% {
        opacity: 0.6;
        filter: grayscale(1);
    }

    11%,
    20% {
        opacity: 1;
        filter: grayscale(0);
    }

    21%,
    100% {
        content: "✅";
        opacity: 1;
        filter: grayscale(0);
        color: #10b981;
    }
}

/* Connecting Paths */
.workflow-path {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.glow-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
}

.glow-dot.path-1 {
    animation: lineFlow1 10s infinite linear;
}

.glow-dot.path-2 {
    animation: lineFlow2 10s infinite linear;
}

.glow-dot.path-3 {
    animation: lineFlow3 10s infinite linear;
}

@keyframes lineFlow1 {
    0% {
        left: -40px;
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    10% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes lineFlow2 {

    0%,
    44% {
        left: -40px;
        opacity: 0;
    }

    46% {
        opacity: 1;
    }

    54% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes lineFlow3 {

    0%,
    78% {
        left: -40px;
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    88% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* PR Status Animation */
.pr-dyn {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.pr-dyn::after {
    content: "Open";
    color: var(--warning);
    animation: prStatusChange 10s infinite;
}

@keyframes prStatusChange {

    0%,
    85% {
        content: "Open";
        color: var(--warning);
    }

    88%,
    100% {
        content: "Merged ✓";
        color: #10b981;
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-graphic {
        padding: 2.5rem 1.5rem;
        max-width: 95%;
    }

    .workflow-visual {
        gap: 0.75rem;
    }

    .workflow-path {
        width: 30px;
    }
}

@media (max-width: 768px) {
    .hero-graphic {
        width: auto;
        max-width: 100%;
        margin-top: 4rem;
    }

    .workflow-visual {
        flex-direction: column;
        gap: 2rem;
    }

    .workflow-path {
        width: 2px;
        height: 50px;
    }

    .glow-dot {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, transparent, #fff, transparent);
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }

    @keyframes lineFlow {
        0% {
            top: -30px;
            opacity: 0;
        }

        5% {
            opacity: 1;
        }

        15% {
            top: 100%;
            opacity: 0;
        }

        100% {
            top: 100%;
            opacity: 0;
        }
    }
}

/* Footer elements */
.footer-links a {
    margin: 0 10px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 6rem;
}

.mt-4 {
    margin-top: 6rem;
}

.mr-2 {
    margin-right: 1rem;
}

.mr-4 {
    margin-right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

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

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

    /* Workflow visual for mobile already handled in hero animation block above */
}