/* ==========================================================================
   TETRION GROUP - DESIGN SYSTEM & COLOR SCHEME
   Derived from Logo: Deep Ocean Navy (#0b172a), Mint Teal (#40c0b0), Cyan (#00f2fe)
   ========================================================================== */

:root {
    --bg-dark: #08101e;
    --bg-card: rgba(16, 36, 62, 0.7);
    --bg-card-hover: rgba(24, 50, 84, 0.85);
    --border-color: rgba(64, 192, 176, 0.18);
    --border-glow: rgba(64, 192, 176, 0.4);

    --teal-main: #40c0b0;
    --teal-dark: #2a8a7e;
    --navy-deep: #10243e;
    --cyan-glow: #00f2fe;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-dark);
    line-height: 1.6;
}

/* Canvas background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ambient glow orbs matching logo colors */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}
.orb-navy {
    top: -15%;
    left: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #103050, transparent);
}
.orb-teal {
    bottom: -15%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #40c0b0, transparent);
}

/* Internal Banner */
.internal-banner {
    position: relative;
    z-index: 101;
    background: linear-gradient(90deg, rgba(64, 192, 176, 0.15), rgba(16, 48, 80, 0.4), rgba(64, 192, 176, 0.15));
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    text-align: center;
}
.banner-content {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1200px;
}
.banner-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--teal-main);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
}
.banner-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 100;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 16, 30, 0.8);
    backdrop-filter: blur(12px);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}
.logo-img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(64, 192, 176, 0.3));
    transition: var(--transition);
}
.brand-logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(64, 192, 176, 0.6));
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-main);
}
.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--teal-main);
    margin-top: -2px;
}

/* Nav Status */
.nav-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(64, 192, 176, 0.08);
    border: 1px solid rgba(64, 192, 176, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
}
.status-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-main);
    box-shadow: 0 0 10px var(--teal-main);
}
.status-pill-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal-main);
}

/* Main Layout */
.main-layout {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem 2rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-display-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-large {
    height: 180px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(64, 192, 176, 0.45));
    animation: gentleFloat 5s ease-in-out infinite alternate;
}
.logo-aura {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 192, 176, 0.25), transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

@keyframes gentleFloat {
    0% { transform: translateY(-6px); }
    100% { transform: translateY(6px); }
}

.hero-header-box {
    max-width: 750px;
    margin-bottom: 4rem;
}
.badge-internal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal-main);
    margin-bottom: 1.5rem;
}
.badge-icon { font-size: 0.9rem; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--teal-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.hero-description {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.code-highlight {
    font-family: var(--font-mono);
    color: var(--teal-main);
    background: rgba(64, 192, 176, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(16px);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}
.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(64, 192, 176, 0.12);
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(64, 192, 176, 0.1);
    border: 1px solid rgba(64, 192, 176, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-main);
    margin-bottom: 1.5rem;
}
.card-icon-box svg {
    width: 24px;
    height: 24px;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-main);
}
.info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}
.meta-label { color: var(--text-dim); }
.meta-val { font-weight: 600; }
.text-teal { color: var(--teal-main); }
.text-cyan { color: var(--cyan-glow); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    width: 100%;
}
.btn-teal {
    background: var(--teal-main);
    color: #06101e;
    box-shadow: 0 0 15px rgba(64, 192, 176, 0.3);
}
.btn-teal:hover {
    background: #50d0c0;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(64, 192, 176, 0.5);
}
.btn-full { width: 100%; }

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-card {
    background: #0d1a2d;
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { color: var(--teal-main); }
.modal-header { text-align: center; margin-bottom: 1.75rem; }
.modal-logo { height: 40px; width: auto; margin-bottom: 0.75rem; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.modal-header p { font-size: 0.85rem; color: var(--text-muted); }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.15rem; }
.form-group label { font-size: 0.78rem; font-family: var(--font-mono); color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    background: #06101e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--teal-main);
    box-shadow: 0 0 10px rgba(64, 192, 176, 0.25);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0a1f33;
    border: 1px solid var(--teal-main);
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 300;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-icon { color: var(--teal-main); font-weight: bold; }
.toast-text { font-size: 0.88rem; color: var(--text-main); }

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 2rem;
    background: #050b15;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.footer-left { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--text-main); }
.footer-desc { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.footer-right { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }

@media (max-width: 768px) {
    .banner-text { display: none; }
    .hero-title { font-size: 2.5rem; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
}
