/* 
  REEK.CZ Premium Design System
  Theme: Deep Space & Neon Precision
*/

:root {
    /* Color Palette - Dark Mode First */
    --bg-dark: #050507;
    --bg-panel: #0E0E11;
    --bg-card: #141419;

    --primary: #B3E60B;
    /* The Reek Green - kept as legacy brand color but refined */
    --primary-dim: #8DA808;
    --primary-glow: rgba(179, 230, 11, 0.4);

    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;

    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-dim: #4B5563;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Effects */
    --shadow-glow: 0 0 20px var(--primary-glow);
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 4px 0 #8DA808;
    /* tactile feel */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8DA808, 0 10px 20px rgba(179, 230, 11, 0.2);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8DA808;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(179, 230, 11, 0.1);
    color: var(--primary);
    border: 1px solid rgba(179, 230, 11, 0.2);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 7, 0.8);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-controls,
.mobile-only-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Glows */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(179, 230, 11, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.highlight {
    color: var(--primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Products Section */
.products {
    padding: var(--space-xl) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: linear-gradient(180deg, var(--bg-card) 0%, #1a1a20 100%);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.price-tag {
    display: flex;
    align-items: baseline;
    margin: 1.5rem 0;
}

.price-tag .currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.price-tag .period {
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1rem;
}

.card-link svg {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* Features Grid */
.features-section {
    padding: var(--space-xl) 0;
    background: #0A0A0C;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Terminal Component */
.terminal-window {
    background: #0f0f12;
    border-radius: 10px;
    border: 1px solid #2a2a30;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #1a1a20;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: #ccc;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }




    50% {
        opacity: 0;
    }
}

/* Animations for specific terminals */
@keyframes htop-text {
    0% {
        content: "||||||||||     ";
        color: #27C93F;
    }

    25% {
        content: "|||||||||||||  ";
        color: #FFBD2E;
    }

    50% {
        content: "|||||||||||||||";
        color: #FF5F56;
    }

    75% {
        content: "|||||||||||    ";
        color: #27C93F;
    }

    100% {
        content: "||||||||||     ";
        color: #27C93F;
    }
}

@keyframes ipmi-fan {
    0% {
        content: "4200 RPM";
    }

    25% {
        content: "4350 RPM";
    }

    50% {
        content: "4500 RPM";
    }

    75% {
        content: "4280 RPM";
    }

    100% {
        content: "4200 RPM";
    }
}

@keyframes ipmi-temp {
    0% {
        content: "42°C";
    }

    30% {
        content: "45°C";
    }

    60% {
        content: "48°C";
    }

    80% {
        content: "43°C";
    }

    100% {
        content: "42°C";
    }
}

@keyframes htop-vals {
    0% {
        content: "Tasks: 42, 114 thr; 1 running";
    }

    25% {
        content: "Tasks: 45, 120 thr; 2 running";
    }

    50% {
        content: "Tasks: 40, 112 thr; 1 running";
    }

    75% {
        content: "Tasks: 48, 125 thr; 3 running";
    }

    100% {
        content: "Tasks: 42, 114 thr; 1 running";
    }
}

@keyframes htop-load {
    0% {
        content: "Load average: 0.12 0.08 0.05";
    }

    33% {
        content: "Load average: 0.25 0.15 0.08";
    }

    66% {
        content: "Load average: 0.05 0.04 0.01";
    }

    100% {
        content: "Load average: 0.12 0.08 0.05";
    }
}

@keyframes htop-mem {
    0% {
        content: "||||||||       ";
        color: #27C93F;
    }

    30% {
        content: "|||||||||      ";
        color: #27C93F;
    }

    60% {
        content: "||||||||||     ";
        color: #27C93F;
    }

    100% {
        content: "||||||||       ";
        color: #27C93F;
    }
}

.anim-bar-cpu::after {
    content: "||||||||||     ";
    white-space: pre;
    animation: htop-text 3s infinite step-end;
    font-weight: bold;
}

.anim-bar-mem::after {
    content: "||||||||       ";
    white-space: pre;
    animation: htop-mem 5s infinite step-end;
    font-weight: bold;
}

.anim-val-tasks::after {
    content: "Tasks: 42, 114 thr; 1 running";
    animation: htop-vals 4s infinite step-end;
}

.anim-val-load::after {
    content: "Load average: 0.12 0.08 0.05";
    animation: htop-load 6s infinite step-end;
}

.anim-val-fan::after {
    content: "4200 RPM";
    animation: ipmi-fan 2s infinite step-end;
}

.anim-val-temp::after {
    content: "42°C";
    animation: ipmi-temp 4s infinite step-end;
}

.cursor {
    animation: blink 1s step-end infinite;
    font-weight: bold;
    color: inherit;
}

/* Responsive Terminal */
.terminal-body {
    overflow-x: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .terminal-window {
        margin-top: 2rem;
    }
}



.dot.green {
    background: #27C93F;
}

.terminal-body {
    padding: 1.5rem;
    color: #a9b7c6;
    font-size: 0.9rem;
}

.cmd {
    color: #fff;
}

.path {
    color: var(--accent-blue);
}

.success {
    color: var(--primary);
}

/* Modern Pricing Cards */
.pricing-section {
    padding: var(--space-xl) 0;
    position: relative;
}

.pricing-card-modern {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.4) 0%, rgba(10, 10, 12, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at top center, rgba(255, 255, 255, 0.03), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.pricing-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.5) 0%, rgba(15, 15, 18, 0.7) 100%);
}

.pricing-card-modern.featured {
    border: 1px solid rgba(179, 230, 11, 0.3);
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8) 0%, rgba(10, 10, 12, 0.9) 100%);
    box-shadow: 0 0 40px -10px rgba(179, 230, 11, 0.1);
}

.pricing-card-modern.featured:hover {
    border-color: rgba(179, 230, 11, 0.6);
    box-shadow: 0 0 60px -15px rgba(179, 230, 11, 0.25);
}

.pricing-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-price-wrapper {
    display: flex;
    align-items: baseline;
    margin-top: 1rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 500;
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.pricing-card-modern:hover .pricing-features li {
    color: #ccc;
}

.feature-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 12px;
    height: 12px;
}

.pricing-features li strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Badge for featured */
.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(179, 230, 11, 0.4);
    z-index: 2;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: auto;
}

/* Locations */
.locations-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.flags {
    font-size: 2rem;
    margin-right: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive */
/* Mobile Menu Toggle - Global (Hidden on Desktop) */
/* Mobile Controls Wrapper */
/* Tablet & Mobile Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .grid-3 {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Controls Styling */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 1001;
    }

    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: var(--text-main);
        transition: color 0.3s ease;
    }

    .mobile-login-btn:hover {
        color: var(--primary);
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        margin: 6px 0;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    header.mobile-open .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    header.mobile-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.mobile-open .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Fix Button Contrast in Mobile Menu */
    .nav-links .btn {
        color: #000 !important;
    }

    /* Hide desktop actions */
    .nav-actions {
        display: none !important;
    }

    .mobile-only-btn {
        display: inline-flex !important;
        width: 100%;
        max-width: 200px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.3s;
    }

    header.mobile-open .mobile-only-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    /* Mobile Menu Container for Links */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        /* Fill remaining height */
        background: var(--bg-dark);
        /* Ensure background is solid */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 4rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-top: 1px solid var(--border-subtle);
    }

    .nav-links a {
        font-size: 1.25rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Mobile Actions (Buttons) */
    .nav-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 2rem;
        background: var(--bg-panel);
        border-top: 1px solid var(--border-subtle);
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        /* Force flex on mobile */
        flex-direction: column;
        gap: 1rem;
    }

    .nav-actions .btn {
        width: 100%;
    }

    /* Active State */
    header.mobile-open .nav-links {
        transform: translateX(0);
    }

    header.mobile-open .nav-actions {
        transform: translateY(0);
    }

    header.mobile-open .nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animations for links */
    header.mobile-open .nav-links a:nth-child(1) {
        transition-delay: 0.1s;
    }

    header.mobile-open .nav-links a:nth-child(2) {
        transition-delay: 0.2s;
    }

    header.mobile-open .nav-links a:nth-child(3) {
        transition-delay: 0.3s;
    }

    header.mobile-open .nav-links a:nth-child(4) {
        transition-delay: 0.4s;
    }

    /* Other Mobile Adjustments */
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 140px;
        /* More space for header */
    }

    .grid-3,
    .split-layout,
    .footer-grid,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
        grid-column: span 1 !important;
    }

    .pricing-card-modern {
        margin-bottom: 2rem;
        padding-top: 4rem;
    }

    /* Hero Buttons */
    .hero-content>div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }

    .hero-content .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .pricing-price {
        font-size: 2.5rem;
    }
}