/* style.css - shared across all CrimsonTech pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #030303;
    color: #f0f0f0;
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(180, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 2rem auto;
    background: #0a0a0f;
    border: 1px solid #2a2a2a;
    border-radius: 2.5rem;
    padding: 2.5rem;
}

/* navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #0f0f0f;
    padding: 1rem 2rem;
    border-radius: 60px;
    border: 1px solid #2a2a2a;
}
.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, #dc143c, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.nav-links a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
    background: #dc143c;
    color: white;
    border-color: #dc143c;
}

/* badge row */
.badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.est-badge {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #dc143c;
    padding: 0.3rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
}
.distinguish-note {
    background: #1a0f0f;
    border: 1px solid #dc143c;
    color: #dc143c;
    padding: 0.3rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: #dc143c;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0.2rem 0 0.5rem;
}
@media (max-width:700px){ h1{font-size:3.5rem;} }

.tagline {
    font-size: 1.2rem;
    color: #ccc;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.tagline span {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 0.2rem 1.2rem;
    color: #dc143c;
}

/* identity panel */
.identity-panel {
    background: #0f0f0f;
    border-left: 5px solid #dc143c;
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem 0 2.5rem;
}
.identity-panel h2 {
    color: #dc143c;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}
.company-description {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.company-col {
    flex: 1 1 250px;
}
.company-col p {
    color: #ccc;
    font-size: 1.05rem;
}
.crimsonware-note {
    background: #1a0f0f;
    border: 1px solid #dc143c;
    border-radius: 20px;
    padding: 1.2rem;
    margin-top: 1rem;
}
.crimsonware-note i { color: #dc143c; margin-right: 10px; }
.badge-cli {
    background: #2a1a1a;
    color: #dc143c;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.8rem;
}

/* product grid (security projects) */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dc143c;
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: #dc143c; }
.product-icon { font-size: 3.2rem; color: #dc143c; margin-bottom: 0.8rem; }
.product-card h3 { font-size: 1.8rem; color: #dc143c; margin-bottom: 0.7rem; }
.product-card p { color: #999; font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.update-badge {
    font-size: 0.75rem;
    color: #dc143c;
    background: #2a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 8px;
}
.product-badge {
    display: inline-block;
    border: 1.5px solid #dc143c;
    color: #dc143c;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    cursor: pointer;
}
.product-badge i { margin-right: 6px; }
.product-badge:hover { background: #dc143c; color: white; }
.gold-badge { border-color: #666; color: #999; cursor: default; }
.gold-badge:hover { background: transparent; color: #999; }

/* hosting pricing grid (from second file) */
.hosting-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dc143c;
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}
.pricing-card {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: 0.3s;
}
.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #dc143c;
    box-shadow: 0 20px 40px rgba(220,20,60,0.2);
}
.pricing-card.featured {
    border: 2px solid #dc143c;
    transform: scale(1.02);
}
.pricing-card.featured::before {
    content: "BEST VALUE";
    position: absolute;
    top: 15px;
    right: -30px;
    background: #dc143c;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: bold;
}
.price {
    font-size: 3rem;
    font-weight: bold;
    color: #dc143c;
    margin: 20px 0;
}
.price small { font-size: 1rem; color: #888; }
.pricing-card h3 { font-size: 1.8rem; margin-bottom: 20px; }
.pricing-card ul { list-style: none; margin: 30px 0; }
.pricing-card li { margin: 15px 0; color: #ccc; display: flex; align-items: center; gap: 10px; }
.pricing-card li::before { content: "✓"; color: #dc143c; font-weight: bold; }
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000, #dc143c);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.btn:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(220,20,60,0.4); }

/* features grid */
.features { margin: 80px 0; }
.features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.feature-item {
    text-align: center;
    padding: 30px;
    background: #151520;
    border-radius: 15px;
}
.feature-item div { font-size: 3rem; color: #dc143c; margin-bottom: 20px; }

/* payment notice */
.payment-notice {
    background: linear-gradient(135deg, #1a1a25, #151520);
    border: 2px solid #dc143c;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 0 30px rgba(220,20,60,0.2);
}
.notice-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}
.notice-icon {
    font-size: 4rem;
    background: #202030;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #dc143c;
}
.notice-text h3 { color: #dc143c; font-size: 1.5rem; margin-bottom: 10px; }
.notice-text p { color: #ccc; font-size: 1.1rem; }
.notice-small { color: #888 !important; font-size: 0.9rem !important; margin-top: 10px; font-style: italic; }

/* contact section */
.contact-section {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 2rem;
    margin: 2.5rem 0 2rem;
}
.contact-section h3 {
    color: #dc143c;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.contact-item {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 1.5rem;
}
.contact-item:hover { border-color: #dc143c; }
.contact-label { color: #666; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; }
.contact-email a {
    color: #dc143c;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
}
.contact-email a:hover { text-decoration: underline; }

/* trademark / footer */
.trademark {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 50px;
    padding: 1rem 2rem;
    margin: 2rem 0 1.5rem;
    text-align: center;
    color: #999;
}
.trademark strong { color: #dc143c; }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer a { color: #dc143c; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* portfolio specific */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.portfolio-item {
    background: #151520;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: 0.3s;
}
.portfolio-item:hover { border-color: #dc143c; transform: translateY(-5px); }
.portfolio-preview {
    height: 200px;
    background: #1e1e2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.portfolio-preview a { text-decoration: none; color: inherit; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.portfolio-info { padding: 25px; }
.portfolio-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: #dc143c; }
.portfolio-info p { color: #aaa; margin-bottom: 15px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
    background: #2a2a35;
    color: #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.status-badge {
    display: inline-block;
    background: #2a2a35;
    color: #ffaa00;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 10px;
    vertical-align: middle;
}
.status-badge.live { background: #1a3a1a; color: #00ff00; }

/* responsive */
@media (max-width:800px) {
    .container { padding: 1.5rem; }
    .nav { flex-direction: column; }
    .nav-links a { margin: 0 5px; }
    .pricing-card.featured { transform: scale(1); }
    .notice-content { flex-direction: column; text-align: center; }
}