/* ==========================================================================
   LANDING PAGE SPECIFIC STYLES
   Extends skeleton-theme.css
   ========================================================================== */

/* --- Matrix Canvas --- */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.3; /* Adjusted for better visibility of text */
    pointer-events: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--surface-300);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotateY(0) rotateX(0);
}

/* --- Video Facade --- */
.video-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-700);
    background: var(--surface-900);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-container iframe,
.video-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border: none;
}

.play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(5, 150, 105, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(5, 150, 105, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-500);
}

/* --- Features Grid --- */
.features-section {
    padding: 100px 0;
}

.feature-img-lg {
    height: 80px; 
    width: auto; 
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Increased size for MDM logo as requested */
.feature-img-xl {
    height: 100px; /* Bigger than 80px */
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-hover:hover .feature-img-lg,
.feature-card-hover:hover .feature-img-xl {
    transform: scale(1.1);
}

/* Ensures cards in grid align properly with content */
.feature-list {
    text-align: left;
    margin-top: 1rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--surface-300);
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-list i {
    color: var(--primary-400);
    margin-top: 0.2rem; /* Align icon with first line of text */
    flex-shrink: 0;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 100px 0;
    position: relative;
}

.pricing-card-highlight {
    border: 2px solid var(--primary-500);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(5, 150, 105, 0.1) 100%);
    overflow: visible !important; /* Allow badge to sit outside */
}

.pricing-badge {
    position: absolute;
    top: -15px; 
    right: 50%; 
    transform: translateX(50%); /* Center badge */
    background: var(--primary-500);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    white-space: nowrap;
    z-index: 10;
}

/* --- Resellers --- */
.reseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.reseller-card {
    background: var(--surface-800);
    border: 1px solid var(--surface-700);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.reseller-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.verified-badge {
    position: absolute;
    top: 10px; right: 10px;
    color: var(--primary-400);
    font-size: 1.2rem;
    opacity: 0.8;
}

.reseller-logo {
    height: 90px;
    width: 90px;
    object-fit: contain; /* Changed to cover circular shape if needed, but contain is safer for logos */
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--surface-900);
    padding: 10px;
    border: 1px solid var(--surface-700);
}

/* --- Floating Action Button --- */
.fab {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 60px; height: 60px;
    background: #25d366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    z-index: 100;
}

.fab:hover { transform: scale(1.1); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero { text-align: center; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-image-container { margin-top: 3rem; transform: none; }
    .hero-img { transform: none; }
}

/* ==========================================================================
   CONSOLE / TERMINAL THEME (TUI)
   Overrides for "Markdown in Terminal" look
   ========================================================================== */

.console-theme {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    line-height: 1.6 !important;
    padding: 2rem !important;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

/* Terminal Header Bar Simulation */
.console-theme::before {
    content: "root@arepatool-server:~/docs# cat instructions.md";
    display: block;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: #6a9955;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #444;
    opacity: 0.8;
}

/* Global resets within console theme to kill the "Card" look */
.console-theme * {
    font-family: inherit !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* Hide Icons to reduce visual noise */
.console-theme i, 
.console-theme svg,
.console-theme .w-10, 
.console-theme .w-11, 
.console-theme .w-12,
.console-theme img {
    display: none !important;
}

/* Typography Overrides - Markdown Style */
.console-theme h5, 
.console-theme h6,
.console-theme .step-header {
    color: #569cd6 !important; /* VS Code Blue */
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    text-transform: none !important;
    border: none !important;
}

.console-theme h5::before, 
.console-theme .step-header::before {
    content: "## ";
    color: #569cd6;
    opacity: 0.7;
}

.console-theme h6::before {
    content: "### ";
    color: #569cd6;
    opacity: 0.7;
}

/* Text Colors Mapping */
.console-theme strong, 
.console-theme b, 
.console-theme .font-bold {
    color: #ce9178 !important; /* VS Code String/Orange color for emphasis */
    font-weight: normal !important;
}

.console-theme strong::before,
.console-theme strong::after {
    content: "**";
    color: #608b4e; /* Dim Green */
    opacity: 0.5;
}

.console-theme .text-primary-400,
.console-theme .text-primary-500,
.console-theme .text-blue-400,
.console-theme .text-blue-500 {
    color: #9cdcfe !important; /* Light Blue */
}

.console-theme .text-green-400,
.console-theme .text-green-500 {
    color: #b5cea8 !important; /* Light Green */
}

.console-theme .text-orange-400,
.console-theme .text-orange-500 {
    color: #ce9178 !important; /* Orange */
}

.console-theme .text-red-400,
.console-theme .text-red-500 {
    color: #f44747 !important; /* Red */
}

/* Badges / Code snippets */
.console-theme .badge,
.console-theme code {
    background-color: #333 !important;
    color: #d7ba7d !important; /* Yellowish */
    padding: 0 4px !important;
    border: 1px solid #444 !important;
    font-size: 0.9em !important;
}

.console-theme .badge::before,
.console-theme .badge::after,
.console-theme code::before,
.console-theme code::after {
    content: "`";
    color: #888;
}

/* Buttons -> Link style */
.console-theme .btn {
    display: inline-block !important;
    width: auto !important;
    padding: 0 !important;
    margin-top: 0.5rem !important;
    color: #4ec9b0 !important;
    text-decoration: underline !important;
    border: none !important;
    background: none !important;
}

.console-theme .btn::before {
    content: "[LINK] ";
    text-decoration: none;
    color: #888;
}

/* Cards as Blockquotes */
.console-theme .card,
.console-theme .p-4,
.console-theme .p-5,
.console-theme .p-6,
.console-theme .rounded-xl,
.console-theme .rounded-2xl {
    padding: 0 !important;
    margin-bottom: 1rem !important;
    border-left: 3px solid #444 !important;
    padding-left: 1rem !important;
    display: block !important; /* Kill Flex/Grid */
}

/* Kill Grid/Flex layout completely to stack text */
.console-theme .grid,
.console-theme .grid-2,
.console-theme .flex,
.console-theme .flex-center,
.console-theme .items-center {
    display: block !important;
    width: 100% !important;
}

/* List items simulation */
.console-theme .mb-8, 
.console-theme .space-y-4 > div,
.console-theme .space-y-3 > div {
    margin-bottom: 1.5rem !important;
}

/* Add bullet points to 'cards' that were steps */
.console-theme .space-y-4 > div,
.console-theme .space-y-3 > div {
    position: relative;
}

/* Specific fix for numbered steps if we can identify them */
.console-theme .space-y-4 > div::before,
.console-theme .space-y-3 > div::before {
    content: "> ";
    color: #6a9955;
    margin-right: 0.5rem;
}
