/* Design System & Branding - TPS (Trust PLC Solution) */
:root {
    --bg-primary: #090a0f;
    --bg-secondary: #11141d;
    --bg-card: rgba(18, 22, 32, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #06b6d4;
    --accent-cyan-light: rgba(6, 182, 212, 0.12);
    --accent-cyan-glow: rgba(6, 182, 212, 0.35);
    
    --accent-blue: #0284c7;
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-cyan-glow: 0 0 35px rgba(6, 182, 212, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dynamic Grid Background & Ambient Industrial Glows */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 85%);
    animation: gridPulse 8s infinite ease-in-out;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.ambient-glow {
    position: fixed;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 650px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(2, 132, 199, 0.05) 45%, rgba(9, 10, 15, 0) 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowFloat 10s infinite ease-in-out alternate;
}

.ambient-glow.secondary {
    top: 40%;
    left: 80%;
    width: 600px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(9, 10, 15, 0) 70%);
}

@keyframes glowFloat {
    0% { transform: translateX(-50%) translateY(0) scale(1); }
    100% { transform: translateX(-50%) translateY(30px) scale(1.08); }
}

/* Header Navbar */
.navbar {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.logo:hover .logo-wrapper {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    background-color: rgba(6, 182, 212, 0.1);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo-details {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 2px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    animation: statusDotPulse 2s infinite ease-out;
}

@keyframes statusDotPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 5;
    padding: 60px 0 80px;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-cyan-light);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(8px);
}

.badge-icon {
    animation: pulse 1.5s infinite ease-in-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 20px;
    max-width: 880px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.7;
}

/* Console Card (Hello World Interactive Terminal) */
.console-card {
    width: 100%;
    max-width: 740px;
    background: rgba(14, 17, 24, 0.95);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-cyan-glow);
    overflow: hidden;
    margin-bottom: 56px;
    text-align: left;
    border: 1px solid rgba(6, 182, 212, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.console-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.8;
}

.console-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.3);
}

.console-header {
    background-color: #121620;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control.red { background-color: #ff5f56; box-shadow: 0 0 8px rgba(255, 95, 86, 0.4); }
.control.yellow { background-color: #ffbd2e; box-shadow: 0 0 8px rgba(255, 189, 46, 0.4); }
.control.green { background-color: #27c93f; box-shadow: 0 0 8px rgba(39, 201, 63, 0.4); }

.console-title {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.console-badge {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    background-color: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    padding: 3px 10px;
    border-radius: 4px;
}

.console-body {
    padding: 28px;
    font-family: var(--font-code);
    font-size: 14.5px;
    line-height: 1.95;
    color: #f8fafc;
}

.code-keyword { color: #f472b6; font-weight: 600; }
.code-string { color: #38bdf8; }
.code-comment { color: #64748b; font-style: italic; }
.code-func { color: #c084fc; }
.code-param { color: #fbbf24; }
.code-val { color: #34d399; font-weight: 600; }

.console-output {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    font-weight: 500;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--accent-green);
    margin-right: 10px;
    font-weight: 700;
}

.cursor {
    animation: cursorBlink 1s infinite;
    color: var(--accent-cyan);
    margin-left: 2px;
    font-weight: 700;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
    margin-bottom: 56px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(6, 182, 212, 0.15);
    background: rgba(22, 27, 39, 0.85);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    background-color: var(--accent-cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
    background-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.pillar-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hero Actions & Buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 34px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    background-color: rgba(9, 10, 15, 0.95);
    backdrop-filter: blur(12px);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-badge {
    font-family: var(--font-code);
    font-size: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
}

/* Responsiveness */
@media (max-width: 640px) {
    .nav-status {
        display: none;
    }
    
    .console-body {
        font-size: 12.5px;
        padding: 18px;
    }
    
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
