:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --dark-bg: #052e16;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

.navbar-brand { letter-spacing: -0.5px; }

/* ===== Hero ===== */
.hero-section {
    background: #021a0b;
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 60% at 20% 50%, rgba(22, 163, 74, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(22, 163, 74, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 163, 74, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 163, 74, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.15), transparent);
    height: 1px;
    width: 100%;
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 6px 16px 6px 8px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-block;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light), #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
    color: white;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.hero-trust-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 28px;
    max-width: 480px;
    line-height: 1.6;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
    padding-top: 20px;
}

/* Chat Widget */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 96px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(22, 163, 74, 0.5); }
.chat-fab.active { background: #dc2626; box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }

.chat-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1000;
    width: 360px;
    max-height: 520px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-header {
    background: linear-gradient(135deg, var(--dark-bg), #166534);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.chat-header-title { font-weight: 700; font-size: 0.95rem; }
.chat-header-status { font-size: 0.75rem; opacity: 0.7; }
.chat-close {
    background: none; border: none; color: white; font-size: 24px;
    cursor: pointer; opacity: 0.7; padding: 0; line-height: 1;
}
.chat-close:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafb;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    max-height: 340px;
}
.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: msgIn 0.3s ease-out;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg-bot {
    align-self: flex-start;
    background: white;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    border-top: 1px solid #e5e7eb;
    background: white;
}
.chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
    width: 40px; height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chat-send:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
    .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 80px; max-height: 60vh; }
    .chat-fab { right: 80px; }
}

/* Terminal */
.terminal-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.terminal-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }

.terminal-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    margin-left: 8px;
}

.terminal-body {
    padding: 20px;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    min-height: 340px;
}

.terminal-line {
    opacity: 0;
    animation: terminalFadeIn 0.4s ease-out forwards;
}

.terminal-prompt {
    color: var(--primary-light);
}

.terminal-command {
    color: rgba(255, 255, 255, 0.9);
}

.terminal-output {
    color: rgba(255, 255, 255, 0.55);
}

.terminal-success {
    color: var(--primary-light);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary-light);
    animation: cursorBlink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes terminalFadeIn {
    to { opacity: 1; }
}

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

.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.7s; }
.terminal-line:nth-child(3) { animation-delay: 1.1s; }
.terminal-line:nth-child(4) { animation-delay: 1.6s; }
.terminal-line:nth-child(5) { animation-delay: 2.0s; }
.terminal-line:nth-child(6) { animation-delay: 2.5s; }
.terminal-line:nth-child(7) { animation-delay: 3.0s; }
.terminal-line:nth-child(8) { animation-delay: 3.5s; }
.terminal-line:nth-child(9) { animation-delay: 4.0s; }
.terminal-line:nth-child(10) { animation-delay: 4.5s; }
.terminal-line:nth-child(11) { animation-delay: 5.0s; }
.terminal-line:nth-child(12) { animation-delay: 5.6s; }

/* Glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    width: 600px; height: 600px;
    background: rgba(34, 197, 94, 0.08);
    top: -300px; left: -200px;
    animation: glowFloat 25s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px; height: 400px;
    background: rgba(22, 163, 74, 0.06);
    bottom: -200px; right: -100px;
    animation: glowFloat 30s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
}

/* ===== Features / Cards ===== */
.feature-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; margin-bottom: 1.5rem;
}

.card {
    transition: var(--transition);
    border: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.1) !important;
}

.service-card {
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    border-left-width: 6px;
    transform: translateX(4px);
}

/* ===== Section Titles ===== */
.section-title { color: var(--dark-bg); }
.section-title::after {
    content: "";
    display: block;
    width: 60px; height: 4px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== CTA / Contact ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg), #166534);
}

.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: white; }

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

.bg-primary-subtle { background-color: rgba(22, 163, 74, 0.1) !important; }
.bg-success-subtle { background-color: rgba(22, 163, 74, 0.1) !important; }
.bg-info-subtle { background-color: rgba(22, 163, 74, 0.1) !important; }
.text-success { color: var(--primary) !important; }
.text-info { color: var(--primary) !important; }

/* ===== Footer ===== */
.footer-linux { background: var(--dark-bg); color: rgba(255,255,255,0.8); }

.footer-linux a {
    transition: var(--transition);
}
.footer-linux a:hover {
    color: var(--primary-light) !important;
}

/* ===== Pill Icon ===== */
.pill-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float .pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Form ===== */
.cta-section form input:focus,
.cta-section form textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-section { min-height: auto; padding: 100px 0 60px; }
    .terminal-card { margin-top: 40px; }
}

@media (max-width: 768px) {
    .hero-section { padding: 80px 0 40px; }
    .hero-actions { flex-direction: column; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
    .hero-stats { gap: 24px; }
    .hero-stat-value { font-size: 1.4rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 22px; bottom: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-glow { animation: none !important; }
    .terminal-line { opacity: 1; animation: none; }
    .terminal-cursor { animation: none; opacity: 1; }
    .fade-in { opacity: 1; transform: none; }
}
