/* 
  Cyberpunk Tactical Dashboard Theme 
  Brand: ArticleFlow
  Style: Dark, HUD, Monospace details, Orange accents
*/

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-panel: #0f0f0f;
    --bg-panel-hover: #161616;

    --border-color: #333333;
    --border-active: #555555;

    --accent-primary: #ff6600;
    /* Safety Orange */
    --accent-secondary: #ff9933;
    --accent-glow: rgba(255, 102, 0, 0.4);

    --text-main: #e0e0e0;
    --text-muted: #888888;
    --text-dim: #444444;

    --success: #00ff66;

    /* Typography */
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Effects */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --glow-text: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Grid Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(50, 50, 50, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 50, 50, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-accent {
    color: var(--accent-primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    font-size: 1.05rem;
    padding: 16px 15px;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .btn-large {
        width: 100%;
    }
}

/* HUD Panel / Card */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    border-radius: var(--radius-sm);
}

/* HUD Corners Effect */
.hud-corners::before,
.hud-corners::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.hud-corners::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.hud-corners::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.panel:hover .hud-corners::before,
.panel:hover .hud-corners::after {
    width: 20px;
    height: 20px;
}

/* Sections */
section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

/* Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 28px;
    /* Reduced from 35px */
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .logo-img {
        height: 22px;
        /* Reduced from 24px */
    }
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: blink 2s infinite;
}

/* Hero */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 24px;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(255, 102, 0, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    border-color: var(--text-dim);
    background: var(--bg-panel-hover);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

/* Proof Section (Dashboard) */
.proof-dashboard {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.proof-dashboard::before {
    content: "SYSTEM VIEW // LIVE";
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.metric-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-icon {
    font-family: var(--font-mono);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Animations */
@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Utility */
.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 4rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .metric-row {
        gap: 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }
}

/* Pricing Grid Responsive */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small Button for Header/Nav */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .btn-sm {
        padding: 6px 10px !important;
        /* Force smaller padding */
        font-size: 0.75rem !important;
        font-weight: 600;
        white-space: nowrap;
        min-height: 32px;
        /* Ensure touch target isn't too small but visually compact */
        display: inline-flex;
        align-items: center;
    }
}

/* Pricing Switcher */
.pricing-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.switcher-container {
    background: #111;
    padding: 2px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    position: relative;
}

.switcher-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.switcher-btn.active {
    color: #000;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.save-badge-switcher {
    position: absolute;
    top: -18px;
    right: -10px;
    background: var(--success);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    transform: rotate(10deg);
    animation: bounce 2s infinite;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(10deg);
    }

    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

/* Pricing Grid Visibility Switch */
.price-yearly,
.yearly-savings-label,
.price-yearly-total {
    display: none;
}

#pricing.billing-yearly .price-yearly,
#pricing.billing-yearly .yearly-savings-label,
#pricing.billing-yearly .price-yearly-total {
    display: inline;
}

#pricing.billing-yearly .price-monthly {
    display: none;
}

.price-yearly-total {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 400;
}