/* 
   High Power Technical Solutions - Unified Design System 
   v2.0 - Rebuilt 2026
*/

:root {
    /* --- Modern Palette --- */
    --bg-primary: #050505;
    /* Deepest Black */
    --bg-secondary: #0a0a0a;
    /* Slightly lighter for sections */
    --bg-card: rgba(20, 20, 20, 0.6);
    /* Glassy Card */

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Brand Accents */
    --accent-gold: #D4AF37;
    --accent-gold-light: #f3d467;
    --accent-gold-dim: rgba(212, 175, 55, 0.2);

    --accent-blue: #007AFF;
    /* Electric Blue */
    --accent-blue-light: #5ac8fa;
    --accent-blue-dim: rgba(0, 122, 255, 0.2);

    /* Functional */
    --success: #34c759;
    --error: #ff3b30;
    --border-color: rgba(255, 255, 255, 0.1);

    /* --- Typography --- */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* --- Spacing --- */
    --container-width: 1200px;
    --section-padding: 100px;
    --header-height: 80px;

    /* --- Effects --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);

    --glass-blur: blur(20px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================= Reset & Base ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= Utilities ================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-gold);
}

.text-blue {
    color: var(--accent-blue);
}

/* Infrastructure Tags */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-gold {
    background: var(--accent-gold-dim);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.badge-blue {
    background: var(--accent-blue-dim);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.badge-success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.grid {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

/* ================= Components ================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px var(--accent-gold-dim);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-gold-dim);
}

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

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

/* Glass Card */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* ================= Page Specific ================= */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    filter: blur(200px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: block;
}

/* Pricing */
.pricing-card.featured {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.05);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0;
    font-family: var(--font-heading);
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i {
    color: var(--success);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 50px;
    text-align: center;
}


/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Product Foundry Specifics */
.infra-card {
    border: 2px solid var(--accent-blue);
    background: linear-gradient(145deg, rgba(0, 122, 255, 0.1), rgba(0, 0, 0, 0));
}

.product-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.advantage-item {
    padding: 24px;
    border-left: 2px solid var(--accent-gold);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}

.advantage-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.advantage-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1.2);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .hamburger {
        display: block;
        color: var(--text-primary);
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}