/* --- 1. THEME TOKENS --- */
/* Default: silver-grey with light neon parrot green. Neon is used as a fill/highlight (with dark text on it), never as text on silver. */
:root {
    --neon: #7fff3a;
    --glow: rgba(127, 255, 58, 0.45);
    --glow-soft: rgba(127, 255, 58, 0.18);
    --on-neon: #0d0f10;
    --icon: #0d0f10;
    --void-bg: #c9cdd2;
    --bg-grad: linear-gradient(160deg, #e4e7ea 0%, #ccd0d4 50%, #b8bdc2 100%);
    --mesh-glow: rgba(255, 255, 255, 0.55);
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-hover-bg: #15181a;
    --shadow: rgba(0, 0, 0, 0.1);
    --text-main: #16181a;
    --text-soft: #2e3236;
    --text-muted: #50565c;
    --heading: #0d0f10;
    --line: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(236, 238, 240, 0.85);
    --nav-border: rgba(0, 0, 0, 0.08);
    --nav-link: #2e3236;
    --input-bg: rgba(255, 255, 255, 0.7);
    --input-focus: #fff;
    --border-soft: rgba(0, 0, 0, 0.12);
    --slow: 0.7s;
    color-scheme: light;
}

[data-theme="dark"] {
    --icon: #7fff3a;
    --void-bg: #141618;
    --bg-grad: linear-gradient(160deg, #1f2225 0%, #131517 60%, #0b0c0d 100%);
    --mesh-glow: rgba(127, 255, 58, 0.05);
    --card-bg: rgba(40, 44, 48, 0.6);
    --card-border: rgba(127, 255, 58, 0.12);
    --card-hover-bg: #0a0c0b;
    --shadow: rgba(0, 0, 0, 0.45);
    --text-main: #e6e6e6;
    --text-soft: #d0d3d6;
    --text-muted: #a3a8ad;
    --heading: #fff;
    --line: rgba(255, 255, 255, 0.07);
    --nav-bg: rgba(20, 22, 24, 0.9);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-link: #c4c8cc;
    --input-bg: #151819;
    --input-focus: #1b1f21;
    --border-soft: #33383c;
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--void-bg) var(--bg-grad) fixed;
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    overflow-x: hidden;
    transition: background-color var(--slow), color var(--slow);
}

.ambient-mesh {
    position: fixed; inset: 0; z-index: -2;
    background: radial-gradient(circle at 50% 25%, var(--mesh-glow) 0%, transparent 65%);
}

.floating-glow {
    position: fixed; width: 800px; height: 800px; background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: -1; animation: floatBG 40s infinite ease-in-out;
}

@keyframes floatBG {
    0% { transform: translate(-50%, -50%) translate(20vw, 20vh); }
    50% { transform: translate(-50%, -50%) translate(80vw, 80vh); }
    100% { transform: translate(-50%, -50%) translate(20vw, 20vh); }
}

/* --- 2. CARDS --- */
.tilt-wrapper { position: relative; transform-style: preserve-3d; perspective: 1000px; height: 100%; }

.tilt-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 40px 32px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px var(--shadow);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.4s ease-out, background var(--slow), border-color var(--slow), box-shadow var(--slow), color var(--slow);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover: any card turns dark charcoal with a neon glow, and its text switches to the light palette */
.tilt-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--neon);
    box-shadow: 0 0 40px var(--glow);
    --text-main: #e6e6e6; --text-soft: #d8d8d8; --text-muted: #a8a8a8; --heading: #fff;
    --line: rgba(255, 255, 255, 0.08); --icon: #7fff3a;
    color: var(--text-main);
}

.card-content-float { transform: translateZ(30px); pointer-events: none; flex-grow: 1; width: 100%; }
.card-content-float a { pointer-events: auto; }

.icon-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--neon); color: var(--on-neon); font-size: 1.4rem;
    box-shadow: 0 0 22px var(--glow); margin-bottom: 20px;
}
.icon-chip-lg { width: 88px; height: 88px; font-size: 2.3rem; margin-bottom: 28px; }

.card-title { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); margin-bottom: 12px; border: 0; padding: 0; }
h2.card-title::after { display: none; }
.card-text { font-size: 1.1rem; line-height: 1.6; color: var(--text-soft); max-width: 420px; margin: 0 auto; }

/* Links: dark text with a thick neon underline (readable on silver, still neon) */
.card-link, .lead a, .faq a {
    color: var(--heading); font-weight: 700; text-decoration: underline; text-decoration-color: var(--neon);
    text-decoration-thickness: 3px; text-underline-offset: 5px; transition: text-shadow var(--slow);
}
.card-link { display: inline-block; margin-top: 18px; text-transform: uppercase; letter-spacing: 1px; }
.card-link:hover { text-shadow: 0 0 10px var(--glow); }

/* --- 3. LAYOUT & TYPOGRAPHY --- */
.section { padding: 110px 0; position: relative; }
.section.tight { padding-top: 40px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 30px; }

h1, h2, h3 { font-family: 'Orbitron', sans-serif; text-transform: uppercase; color: var(--heading); letter-spacing: 1.5px; }
h1 {
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 4.6rem);
    line-height: 1.1;
    overflow-wrap: break-word;
}
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 20px; }
h2::after, .page-head h1::after {
    content: ''; display: block; width: 64px; height: 5px; border-radius: 3px;
    background: var(--neon); box-shadow: 0 0 14px var(--glow); margin: 18px auto 0;
}

/* Marker-style neon highlight behind dark text */
.hl { background: linear-gradient(transparent 62%, var(--neon) 62%); padding: 0 0.12em; }
[data-theme="dark"] .hl { background: none; color: var(--neon); text-shadow: 0 0 20px var(--glow); }

.page-head { padding: 170px 0 10px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 22px; }
.lead { font-size: 1.25rem; line-height: 1.7; color: var(--text-soft); max-width: 780px; margin: 0 auto; }
.section-intro { margin-bottom: 50px; }
.center-cta { margin-top: 55px; }

/* --- 4. NAVIGATION --- */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; min-height: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    z-index: 9999;
    display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 32px;
    box-shadow: 0 8px 30px var(--shadow);
    transition: background var(--slow), border-color var(--slow);
}

.nav-logo { font-family: 'Orbitron'; font-weight: 900; color: var(--heading); display: flex; align-items: center; gap: 12px; font-size: 1rem; letter-spacing: 1px; white-space: nowrap; text-decoration: none; }
.nav-logo i { color: var(--icon); font-size: 1.4rem; filter: drop-shadow(0 0 6px var(--neon)); }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--nav-link); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; white-space: nowrap; transition: color var(--slow); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--heading); text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links .nav-cta { background: var(--neon); color: var(--on-neon); padding: 10px 20px; border-radius: 999px; transition: box-shadow var(--slow); }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { color: var(--on-neon); text-decoration: none; box-shadow: 0 0 20px var(--glow); }

.theme-toggle {
    background: transparent; border: 1px solid var(--border-soft); color: var(--heading);
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: border-color var(--slow), box-shadow var(--slow);
}
.theme-toggle:hover { border-color: var(--neon); box-shadow: 0 0 14px var(--glow); }

/* Typewriter line under the hero */
.typed-line { font-family: 'Orbitron'; color: var(--heading); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.5rem); min-height: 1.6em; margin-bottom: 36px; letter-spacing: 1px; }
.typed-line .caret { display: inline-block; width: 3px; height: 1em; background: var(--neon); box-shadow: 0 0 8px var(--neon); margin-left: 4px; vertical-align: -0.1em; animation: blink 1.4s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- 5. HERO --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; perspective: 1000px;
    padding: 110px 0 50px;
}
.hero-text { transform-style: preserve-3d; width: 100%; min-width: 0; max-width: 100%; padding: 0 20px; }
.hero-subtext {
    font-weight: 600; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.95rem; max-width: 800px; margin: 22px auto 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.cta-btn {
    display: inline-block; padding: 15px 36px; border-radius: 999px;
    background: transparent; border: 2px solid var(--heading);
    color: var(--heading); font-family: 'Orbitron'; font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background var(--slow), color var(--slow), border-color var(--slow), box-shadow var(--slow);
}
.cta-btn:hover, .cta-solid { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.cta-btn:hover, .cta-solid:hover { box-shadow: 0 0 30px var(--glow); }

/* --- 6. GRIDS & LISTS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 32px; }

.tech-list { margin-top: 22px; width: 100%; }
.tech-list li {
    list-style: none; display: flex; justify-content: center; align-items: baseline; gap: 10px;
    font-size: 1.05rem; line-height: 1.5; padding: 9px 0;
    border-top: 1px solid var(--line);
}
.tech-list i { color: var(--icon); flex-shrink: 0; }
.tech-list a { color: inherit; text-decoration: none; transition: color var(--slow); }
.tech-list a:hover { text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 2px; }

.stat-badge {
    display: inline-block; background: var(--neon); color: var(--on-neon); padding: 5px 14px;
    font-size: 0.85rem; font-weight: 700; border-radius: 999px; margin-bottom: 14px;
}

/* FAQ (answer engine friendly: plain question + direct answer) */
.faq { max-width: 820px; margin: 30px auto 0; }
.faq details { border: 1px solid var(--card-border); border-radius: 18px; padding: 22px 26px; margin-bottom: 14px; background: var(--card-bg); transition: border-color var(--slow), box-shadow var(--slow); }
.faq details[open] { border-color: var(--neon); box-shadow: 0 0 20px var(--glow-soft); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.2rem; color: var(--heading); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: 10px; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; line-height: 1.7; font-size: 1.1rem; color: var(--text-soft); }

/* --- 7. TEAM PHOTOS --- */
.team-img-circle {
    width: 130px; height: 130px; margin: 0 auto 20px auto;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--neon);
    box-shadow: 0 0 18px var(--glow);
    background: #fff;
}
.team-img-circle img { width: 100%; height: 100%; object-fit: cover; }
.team-icon-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: #333; }

/* --- 8. CONTACT --- */
.terminal {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 22px; overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.form-body { padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
address { font-style: normal; }

.terminal-input {
    width: 100%; background: var(--input-bg); border: 1px solid var(--border-soft); border-radius: 14px;
    color: var(--text-main); padding: 15px 18px; font-family: inherit; font-size: 1.1rem; margin-bottom: 14px; resize: none;
    transition: border-color var(--slow), box-shadow var(--slow), background var(--slow);
}
.terminal-input::placeholder { color: var(--text-muted); }
.terminal-input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--glow-soft); background: var(--input-focus); }

/* --- 9. FOOTER (always charcoal so the neon reads in both themes) --- */
footer {
    padding: 60px 20px 50px; background: #0e1011;
    color: #8d949a; border-top: 1px solid rgba(127, 255, 58, 0.3); font-family: 'Orbitron'; font-size: 0.85rem;
}
footer a { color: var(--neon); text-decoration: none; font-weight: 700; transition: text-shadow var(--slow); }
footer a:hover { text-shadow: 0 0 10px var(--glow); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 30px; }

.ai-ask { max-width: 900px; margin: 0 auto 44px; }
.ai-ask h2 { font-size: 1.1rem; color: #fff; margin-bottom: 14px; }
.ai-ask h2::after { margin-top: 12px; width: 44px; height: 4px; }
.ai-ask p { margin-bottom: 20px; font-family: 'Rajdhani'; font-size: 1.05rem; }
.ai-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
footer .ai-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
    border: 1px solid rgba(127, 255, 58, 0.45); color: #e6e6e6; background: rgba(255, 255, 255, 0.03);
    transition: background var(--slow), color var(--slow), box-shadow var(--slow);
}
footer .ai-btn:hover { background: var(--neon); color: var(--on-neon); box-shadow: 0 0 25px var(--glow); text-shadow: none; }

/* --- GUIDES / ARTICLES --- */
/* Article column is centered on the page, but body text stays left-aligned so long reads are comfortable */
.post-meta { margin-top: 18px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.prose { max-width: 780px; margin: 0 auto; text-align: left; font-size: 1.15rem; line-height: 1.75; color: var(--text-soft); }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 48px 0 14px; text-align: left; }
.prose h2::after { margin: 12px 0 0; width: 48px; height: 4px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; color: var(--heading); }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--heading); font-weight: 700; }
.prose strong { color: var(--heading); }
.prose a { color: var(--heading); font-weight: 700; text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.prose .faq { margin: 0; max-width: none; }
.prose .faq summary, .prose .faq p { text-align: left; }

.takeaways { background: var(--card-bg); border: 2px solid var(--neon); border-radius: 18px; padding: 24px 28px; box-shadow: 0 0 24px var(--glow-soft); margin-bottom: 10px; }
.takeaways h2 { margin-top: 0; font-size: 1.1rem; }
.takeaways ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 20px 0 24px; border-radius: 14px; border: 1px solid var(--card-border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.02rem; background: var(--card-bg); }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: 'Orbitron'; font-size: 0.8rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--on-neon); background: var(--neon); }
.prose tr:last-child td { border-bottom: 0; }

.post-cta { margin-top: 48px; padding: 28px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--card-border); text-align: center; }
.post-cta p { margin-bottom: 18px; }

/* --- FLOATING WHATSAPP (bottom-left) + AI CHAT (bottom-right) --- */
.wa-float, .chat-fab {
    position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 10000;
    width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform var(--slow), box-shadow var(--slow);
}
.wa-float { left: 22px; background: #25d366; color: #fff; text-decoration: none; }
.chat-fab { right: 22px; background: var(--neon); color: var(--on-neon); font-size: 1.5rem; }
.wa-float:hover, .chat-fab:hover { transform: translateY(-3px); box-shadow: 0 0 28px var(--glow); }
.chat-fab.is-open i::before { content: "\f00d"; }

.chat-panel {
    position: fixed; right: 22px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 10000;
    width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 140px));
    display: flex; flex-direction: column; text-align: left;
    background: #15181a; color: #e6e6e6; border: 1px solid rgba(127, 255, 58, 0.35); border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.chat-head .icon-chip { width: 40px; height: 40px; font-size: 1rem; margin: 0; flex-shrink: 0; }
.chat-head strong { display: block; font-family: 'Orbitron'; font-size: 0.85rem; letter-spacing: 0.5px; }
.chat-head small { color: #a3a8ad; font-size: 0.9rem; }
.chat-close { margin-left: auto; background: none; border: 0; color: #e6e6e6; font-size: 1.2rem; cursor: pointer; padding: 6px; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 1.05rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bot { align-self: flex-start; background: #23272a; border-bottom-left-radius: 4px; }
.chat-bot a { color: var(--neon); font-weight: 700; }
.chat-user { align-self: flex-end; background: var(--neon); color: var(--on-neon); border-bottom-right-radius: 4px; font-weight: 600; }
.chat-typing { opacity: 0.6; animation: blink 1.4s ease-in-out infinite; }

.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-starters button {
    background: transparent; color: #e6e6e6; border: 1px solid rgba(127, 255, 58, 0.45); border-radius: 999px;
    padding: 7px 12px; font-family: 'Rajdhani'; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background var(--slow), color var(--slow);
}
.chat-starters button:hover { background: var(--neon); color: var(--on-neon); }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-form input {
    flex: 1; min-width: 0; background: #0e1011; color: #e6e6e6; border: 1px solid #33383c; border-radius: 999px;
    padding: 11px 16px; font-family: 'Rajdhani'; font-size: 1.05rem;
}
.chat-form input:focus { outline: none; border-color: var(--neon); }
.chat-form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--neon); color: var(--on-neon); cursor: pointer; }
.chat-form button:disabled { opacity: 0.5; cursor: wait; }

.chat-panel[hidden], .chat-starters[hidden] { display: none; }

/* Keep the footer's last lines clear of the floating buttons */
footer { padding-bottom: 110px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- 10. MOBILE --- */
@media screen and (max-width: 968px) {
    nav {
        top: 0; width: 100%; border-radius: 0; padding: 14px 16px;
        flex-direction: column; height: auto; gap: 12px; border-bottom: 1px solid var(--nav-border);
    }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
    .nav-logo { font-size: 0.95rem; }

    .section { padding: 70px 0; }
    .section.tight { padding-top: 24px; }
    .page-head { padding-top: 190px; }
    .hero { padding-top: 170px; }
    .container { padding: 0 18px; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 22px; }
    .form-body { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
    .tilt-card { padding: 32px 22px; }
    .lead { font-size: 1.12rem; }

    .wa-float, .chat-fab { width: 54px; height: 54px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .wa-float { left: 16px; }
    .chat-fab { right: 16px; }
    .chat-panel { right: 16px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
