:root {
    --bg-deep: #020604;
    --bg-card: rgba(6, 18, 12, 0.65);
    --bg-card-hover: rgba(12, 30, 20, 0.85);
    --border-emerald: rgba(0, 245, 155, 0.3);
    --border-emerald-glow: rgba(0, 245, 155, 0.7);
    --accent-green: #00ff9d;
    --accent-emerald-bright: #00f59b;
    --accent-sage: #8affd1;
    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.6);
    --accent-cyber-blue: #00e5ff;
    --text-light: #e0f2eb;
    --text-muted: #82a898;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, .logo-text, .terminal-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animations for Changing Colors & Layouts */
@keyframes rgbShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 10px var(--border-emerald-glow), inset 0 0 10px rgba(0, 245, 155, 0.1); border-color: var(--accent-emerald-bright); }
    50% { box-shadow: 0 0 25px var(--accent-cyber-blue), inset 0 0 15px rgba(0, 229, 255, 0.2); border-color: var(--accent-cyber-blue); }
    100% { box-shadow: 0 0 10px var(--border-emerald-glow), inset 0 0 10px rgba(0, 245, 155, 0.1); border-color: var(--accent-emerald-bright); }
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Layered Backgrounds */
.bg-layer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: -2;
    background: radial-gradient(circle at center, rgba(4, 13, 9, 0.7) 0%, rgba(2, 6, 4, 1) 100%);
}

.ambient-glows {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: -1;
    background: radial-gradient(circle at 15% 20%, rgba(0, 245, 155, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
    animation: rgbShift 12s infinite alternate ease-in-out;
}

/* Header & Navigation */
header {
    padding: 1rem 4%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(2, 6, 4, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-emerald);
    box-shadow: 0 4px 30px rgba(0, 245, 155, 0.1);
}

.brand-wrapper { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }

.logo-image { height: 40px; width: auto; border-radius: 8px; object-fit: contain; filter: drop-shadow(0 0 8px var(--accent-emerald-bright)); }

.logo-text {
    font-size: 1.45rem; font-weight: 800;
    background: linear-gradient(135deg, #ffffff 10%, var(--accent-emerald-bright) 50%, var(--accent-cyber-blue) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(0, 245, 155, 0.3);
}

nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
nav a { color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 0.45rem 0.85rem; border-radius: 8px; transition: all 0.3s ease; position: relative; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent-emerald-bright); transition: all 0.3s ease; transform: translateX(-50%); }
nav a:hover::after, nav a.active::after { width: 80%; box-shadow: 0 0 10px var(--accent-emerald-bright); }
nav a:hover, nav a.active { color: var(--accent-emerald-bright); background: rgba(0, 245, 155, 0.08); }
.nav-cta { background: transparent; color: var(--accent-emerald-bright) !important; border: 1px solid var(--border-emerald); border-radius: 4px; }
.nav-cta:hover { background: rgba(0, 245, 155, 0.15); box-shadow: 0 0 15px rgba(0, 245, 155, 0.4); }

/* Containers & Badges */
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; position: relative; z-index: 10; }
.page-header { text-align: center; margin-bottom: 4rem; padding: 1.5rem 0; }
.page-tag, .section-tag { color: var(--accent-cyber-blue); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.page-title, .section-title { font-size: clamp(2.2rem, 6vw, 3.8rem); color: #fff; margin-bottom: 1rem; text-shadow: 0 0 15px rgba(255,255,255,0.2); }
.page-subtitle { color: var(--text-muted); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }

/* Compliance Badge */
.compliance-badge {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.4rem;
    background: rgba(251, 191, 36, 0.05); border: 1px solid var(--accent-gold); border-radius: 4px;
    color: var(--accent-gold); font-size: 0.88rem; font-weight: 700; margin-top: 1rem;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2); text-transform: uppercase; letter-spacing: 0.05em;
}

/* Terminal Loader Component */
#terminalLoader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 10000; display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.terminal-window {
    width: 90%; max-width: 680px; background: #040a07; border: 1px solid var(--accent-emerald-bright);
    box-shadow: 0 0 40px rgba(0, 245, 155, 0.3); overflow: hidden;
}
.terminal-bar { background: #020604; padding: 0.8rem 1.2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--border-emerald); }
.terminal-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; box-shadow: 0 0 8px #ff5f56; } 
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 8px #ffbd2e; } 
.dot-green { background: #27c93f; box-shadow: 0 0 8px #27c93f; }
.terminal-title { color: var(--accent-emerald-bright); font-size: 0.85rem; font-family: monospace; }
.terminal-body { padding: 1.8rem; font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--accent-emerald-bright); min-height: 200px; text-shadow: 0 0 5px var(--accent-emerald-bright); }
.terminal-line { margin-bottom: 0.6rem; opacity: 0; animation: fadeInLine 0.1s forwards; }
@keyframes fadeInLine { to { opacity: 1; } }

/* Hero Section */
.hero { text-align: center; margin-bottom: 5rem; padding: 2.5rem 1rem; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.2rem;
    background: rgba(0, 245, 155, 0.1); border: 1px solid var(--border-emerald-glow); border-radius: 4px;
    color: var(--accent-emerald-bright); font-size: 0.85rem; font-weight: 700; margin-bottom: 1.8rem;
    box-shadow: 0 0 20px rgba(0, 245, 155, 0.2); letter-spacing: 0.1em;
}
.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.15; margin-bottom: 1.4rem;
    background: linear-gradient(180deg, #ffffff 20%, var(--accent-sage) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 span { background: linear-gradient(135deg, var(--accent-emerald-bright), var(--accent-cyber-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(0, 245, 155, 0.5)); }
.hero p { color: var(--text-light); font-size: 1.2rem; max-width: 740px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

/* Grids & Techy Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 3.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; margin-bottom: 4rem; }

.card {
    background: linear-gradient(145deg, rgba(6, 18, 12, 0.8), rgba(2, 6, 4, 0.95));
    border: 1px solid var(--border-emerald); border-radius: 12px;
    padding: 2.5rem 2rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 155, 0.1), transparent);
    transition: 0.5s; z-index: 1; pointer-events: none;
}
.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-8px) scale(1.02); animation: borderPulse 2s infinite alternate; z-index: 2; }
.card h3 { font-size: 1.45rem; color: #fff; margin-bottom: 0.8rem; position: relative; z-index: 2; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; position: relative; z-index: 2; }

.price-tag { font-size: 2.4rem; font-weight: 800; color: var(--accent-emerald-bright); margin: 1rem 0 0.5rem; text-shadow: 0 0 15px rgba(0, 245, 155, 0.4); }
.price-tag span { font-size: 0.95rem; color: var(--accent-cyber-blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.icon-box {
    width: 55px; height: 55px; border-radius: 8px; background: rgba(0, 245, 155, 0.05);
    border: 1px solid var(--accent-emerald-bright); display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem; margin-bottom: 1.2rem; box-shadow: inset 0 0 10px rgba(0,245,155,0.2);
}

.feature-list { list-style: none; margin: 1.2rem 0 2rem; flex-grow: 1; position: relative; z-index: 2; }
.feature-list li { margin-bottom: 0.8rem; color: var(--text-light); font-size: 0.92rem; display: flex; align-items: center; gap: 0.65rem; }
.feature-list li::before {
    content: ">>"; color: var(--accent-cyber-blue); font-family: monospace; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}

/* Owner Profile Section */
.owner-card {
    display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border-emerald-glow); border-radius: 12px;
    padding: 2.5rem; backdrop-filter: blur(20px); margin-bottom: 5rem; box-shadow: 0 0 30px rgba(0, 245, 155, 0.1);
}
.owner-img-wrapper { position: relative; width: 100%; height: 320px; border-radius: 8px; overflow: hidden; border: 2px solid var(--accent-emerald-bright); box-shadow: 0 0 25px rgba(0, 245, 155, 0.3); }
.owner-img-wrapper::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 245, 155, 0.1) 2px, rgba(0, 245, 155, 0.1) 4px); pointer-events: none; }
.owner-img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.1); }

/* Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center; padding: 1rem 2.2rem;
    background: transparent; color: var(--accent-emerald-bright); border: 1px solid var(--accent-emerald-bright);
    font-family: monospace; font-weight: 700; font-size: 1rem; border-radius: 4px; cursor: pointer;
    text-decoration: none; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.1em;
    box-shadow: 0 0 10px rgba(0, 245, 155, 0.2), inset 0 0 10px rgba(0, 245, 155, 0.1); position: relative; z-index: 2; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-emerald-bright); z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: #000; box-shadow: 0 0 20px rgba(0, 245, 155, 0.6); }

.btn-gold { border-color: var(--accent-gold); color: var(--accent-gold); box-shadow: 0 0 10px rgba(251, 191, 36, 0.2), inset 0 0 10px rgba(251, 191, 36, 0.1); }
.btn-gold::before { background: var(--accent-gold); }
.btn-gold:hover { color: #000; box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }

.btn-secondary { border-color: var(--accent-cyber-blue); color: var(--accent-cyber-blue); box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), inset 0 0 10px rgba(0, 229, 255, 0.1); }
.btn-secondary::before { background: var(--accent-cyber-blue); }
.btn-secondary:hover { color: #000; box-shadow: 0 0 20px rgba(0, 229, 255, 0.6); }

/* Calculator Section */
.calc-box { background: var(--bg-card); border: 1px solid var(--accent-cyber-blue); border-radius: 12px; padding: 3rem; margin-top: 4rem; backdrop-filter: blur(25px); box-shadow: 0 0 40px rgba(0, 229, 255, 0.15); animation: floatElement 6s ease-in-out infinite; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.calc-option { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.calc-option input[type="checkbox"] { appearance: none; width: 20px; height: 20px; border: 1px solid var(--accent-emerald-bright); background: rgba(0,0,0,0.5); cursor: pointer; position: relative; }
.calc-option input[type="checkbox"]:checked { background: var(--accent-emerald-bright); box-shadow: 0 0 10px var(--accent-emerald-bright); }
.calc-option input[type="checkbox"]:checked::after { content: '✓'; position: absolute; color: #000; font-size: 14px; top: -1px; left: 3px; font-weight: bold; }
.calc-option label { color: #e0f2eb; font-weight: 500; cursor: pointer; font-family: monospace; font-size: 1rem; }

/* AI Assistant Widget (Gemini Style) */
.ai-fab {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background: #000; border: 2px solid var(--accent-emerald-bright);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 245, 155, 0.5), inset 0 0 10px rgba(0, 245, 155, 0.5); cursor: pointer; z-index: 999;
    transition: transform 0.3s ease; animation: borderPulse 3s infinite; font-size: 1.8rem;
}
.ai-fab:hover { transform: scale(1.1) rotate(15deg); }
.ai-chat-modal {
    position: fixed; bottom: 105px; right: 30px; width: 400px; max-width: 90vw; height: 550px;
    background: rgba(2, 6, 4, 0.95); border: 1px solid var(--accent-emerald-bright); border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 245, 155, 0.3); z-index: 999; display: none; flex-direction: column; overflow: hidden; backdrop-filter: blur(20px);
}
.ai-chat-header {
    background: #000; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border-emerald);
    display: flex; justify-content: space-between; align-items: center; color: var(--accent-emerald-bright); font-family: monospace; font-size: 1.1rem; text-shadow: 0 0 5px var(--accent-emerald-bright);
}
.ai-chat-messages { flex: 1; padding: 1.2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--accent-emerald-bright) #000; }
.chat-msg { max-width: 85%; padding: 0.85rem 1.2rem; border-radius: 8px; font-size: 0.92rem; line-height: 1.6; font-family: monospace; }
.msg-bot { background: rgba(0, 245, 155, 0.05); border: 1px solid var(--accent-emerald-bright); color: var(--text-light); align-self: flex-start; box-shadow: 0 0 10px rgba(0, 245, 155, 0.1); }
.msg-user { background: rgba(0, 229, 255, 0.1); border: 1px solid var(--accent-cyber-blue); color: #fff; align-self: flex-end; box-shadow: 0 0 10px rgba(0, 229, 255, 0.1); }
.ai-chat-input { display: flex; border-top: 1px solid var(--border-emerald); background: #000; padding: 0.5rem; }
.ai-chat-input input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border-emerald); padding: 0.9rem 1rem; color: #fff; outline: none; font-size: 0.9rem; font-family: monospace; border-radius: 4px; }
.ai-chat-input input:focus { border-color: var(--accent-emerald-bright); box-shadow: 0 0 10px rgba(0, 245, 155, 0.2); }
.ai-chat-input button { background: transparent; border: 1px solid var(--accent-emerald-bright); color: var(--accent-emerald-bright); padding: 0 1.2rem; cursor: pointer; font-family: monospace; font-weight: 700; margin-left: 0.5rem; border-radius: 4px; transition: 0.3s; }
.ai-chat-input button:hover { background: var(--accent-emerald-bright); color: #000; box-shadow: 0 0 15px rgba(0, 245, 155, 0.5); }

/* Forms & Contact */
.contact-link {
    display: flex; align-items: center; gap: 1.2rem; color: var(--text-light); text-decoration: none;
    padding: 1.5rem; border-radius: 8px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-emerald);
    backdrop-filter: blur(12px); transition: all 0.3s ease;
}
.contact-link:hover { animation: borderPulse 1.5s infinite; transform: scale(1.02); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border-emerald); border-radius: 4px;
    font-size: 1rem; outline: none; transition: all 0.3s; background: rgba(0, 0, 0, 0.6); color: var(--accent-emerald-bright); font-family: monospace;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent-cyber-blue); box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); filter: blur(4px); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Responsive adjustments */
@media (max-width: 850px) {
    .owner-card { grid-template-columns: 1fr; text-align: center; }
    .owner-img-wrapper { height: 260px; max-width: 260px; margin: 0 auto; }
    .calc-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; gap: 1rem; padding: 1.2rem; }
    nav { justify-content: center; }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-title, .section-title { font-size: 2rem; }
    .container { padding: 2rem 1rem; }
    .ai-chat-modal { width: 90vw; right: 5vw; bottom: 100px; }
}