/* ==========================================
   MATKA LANDING PAGE - MODERN CUSTOM CSS
   ========================================== */

/* Design System & CSS Variables */
:root {
    --primary: #D4AF37; /* Gold */
    --primary-rgb: 212, 175, 55;
    --primary-hover: #F3E5AB;
    --accent: #E53E3E; /* Crimson Red */
    --accent-hover: #FC8181;
    --bg-dark: #0B0203; /* Rich Dark Plum/Black */
    --bg-card: #18090A; /* Royal Burgundy */
    --bg-card-hover: #261113;
    --text-main: #FFFFFF;
    --text-muted: #E2D4C9;
    --text-dimmed: #A08C82;
    --border-color: rgba(212, 175, 55, 0.2);
    --border-color-hover: rgba(212, 175, 55, 0.4);
    --glass-bg: rgba(24, 9, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --felt-color: #2D0B0E; /* Burgundy Table Felt */
    --felt-border: #D4AF37;
    
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #F7F5F0; /* Clean Cream/Alabaster */
    --bg-card: #FFFFFF; /* White */
    --bg-card-hover: #FFF9F2; /* Warm Cream */
    --text-main: #2C1E15; /* Charcoal Brown */
    --text-muted: #5C4E46;
    --text-dimmed: #8D7B70;
    --border-color: rgba(178, 34, 34, 0.25);
    --border-color-hover: rgba(178, 34, 34, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    
    --primary: #B22222; /* Firebrick Red */
    --primary-rgb: 178, 34, 34;
    --primary-hover: #8B0000;
    --accent: #C59B27; /* Dark Gold */
    --accent-hover: #E5C158;
    
    --felt-color: #0E3A2F; /* Green Felt for Light Theme Casino feel */
    --felt-border: #C59B27;
    
    --shadow-main: 0 10px 30px -10px rgba(141, 123, 112, 0.3);
    --shadow-glow: 0 0 25px rgba(178, 34, 34, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
}

/* Background Gradients */
.bg-blur {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.blur-1 {
    top: 5%;
    right: -10%;
    background: radial-gradient(circle, rgba(212,175,55,0.6) 0%, rgba(229,62,62,0.1) 100%);
}

.blur-2 {
    top: 50%;
    left: -10%;
    background: radial-gradient(circle, rgba(229,62,62,0.5) 0%, rgba(212,175,55,0.1) 100%);
}

/* Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    padding-bottom: 5px;
    padding-top: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(var(--bg-dark), 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background-color: rgba(var(--bg-dark), 0.92);
    border-bottom: 1.5px solid var(--primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.logo span {
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

.logo:hover span {
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(6deg);
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.6));
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.05);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #B58A1F 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}

body.light-theme .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #E23E3E 100%);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

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

.stat-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-dimmed);
}

/* Hero Visuals (3D Cards) */
.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.app-art-card {
    position: absolute;
    width: min(360px, 75vw);
    height: 460px;
    overflow: hidden;
    border: 1px solid var(--primary);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), var(--shadow-glow);
    transform: rotate(3deg);
}

.app-art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-art-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 42px 24px 30px;
    background: linear-gradient(180deg, rgba(30, 0, 2, 0.08), rgba(30, 0, 2, 0.55));
    color: #FFE8A3;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
}

.app-art-logo {
    width: 190px;
    max-width: 75%;
    object-fit: contain;
}

.card-showcase {
    position: relative;
    width: 220px;
    height: 320px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 1px;
    box-shadow: var(--shadow-main);
    transition: transform 0.5s ease;
}

.card-inner {
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 19px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #111111;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    border: 2px solid #EEEEEE;
}

.card-inner.red-card,
.card-inner.red-joker {
    color: #CC0000;
}

.card-inner.gold-card {
    background: linear-gradient(135deg, #1C170E 0%, #302611 100%);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.card-inner.card-img-wrapper {
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    border: none;
}

.queen-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px;
    display: block;
}

.suit-center {
    font-size: 5rem;
    align-self: center;
    margin: auto 0;
}

.suit-bottom {
    transform: rotate(180deg);
}

.c1 {
    transform: rotate(-15deg) translate(-40px, -20px) translateZ(0);
    z-index: 1;
    animation: float1 4s ease-in-out infinite;
}

.c2 {
    transform: rotate(5deg) translate(20px, 10px) translateZ(50px);
    z-index: 3;
    animation: float2 5.5s ease-in-out infinite;
}

.c3 {
    transform: rotate(20deg) translate(80px, -10px) translateZ(10px);
    z-index: 2;
    animation: float3 4.8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: rotate(-15deg) translate(-40px, -20px); }
    50% { transform: rotate(-17deg) translate(-45px, -30px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(5deg) translate(20px, 10px); }
    50% { transform: rotate(3deg) translate(20px, -5px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(20deg) translate(80px, -10px); }
    50% { transform: rotate(22deg) translate(85px, -20px); }
}

/* Sections Base */
.features-section, .modes-section, .simulator-section, .tech-section, .faq-section, .cta-section {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-dimmed);
    font-size: 1.1rem;
}

/* Features Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-main);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background-color: var(--bg-card-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Game Modes Section */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mode-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
}

.mode-image {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease;
}

.mode-card:hover .mode-image {
    transform: scale(1.08) rotate(3deg);
}

.mode-card:hover {
    transform: translateY(-4px);
    background-color: var(--bg-card-hover);
    border-color: var(--primary);
}

.mode-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 4px 12px;
    border-radius: 12px;
    background-color: rgba(229, 62, 62, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.mode-badge.gold-badge {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    border-color: var(--border-color);
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-top: 16px;
    margin-bottom: 12px;
}

.mode-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 80%;
    margin-bottom: 24px;
}

.mode-mini-visual {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.mini-card {
    background-color: #FFFFFF;
    border-radius: 6px;
    width: 45px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.suit-red {
    color: #CC0000;
}

.suit-black {
    color: #111111;
}

.mini-card-stack {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.mini-card-stack span {
    background-color: var(--bg-dark);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.full-width-mode {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.full-mode-info {
    flex: 1.2;
}

.full-width-mode .mode-image {
    position: static;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

.full-mode-visual {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px dashed var(--border-color);
    padding-left: 40px;
}

.crown-svg {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.gold-crown {
    width: 50px;
    height: 50px;
    color: var(--primary);
    animation: crownGlow 2.5s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(var(--primary-rgb), 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.9)); transform: scale(1.08); }
}

.pool-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Product Visuals */
.app-visuals-section {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
}

.app-visuals-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.app-visual {
    position: relative;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-main);
}

.app-visual img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.app-visual:hover img {
    transform: scale(1.04);
}

.app-visual figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 232, 163, 0.3);
    border-radius: 10px;
    background: rgba(11, 2, 3, 0.72);
    color: #FFE8A3;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Interactive Simulator Section */
.sim-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.sim-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dimmed);
}

.picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.picker-btn {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 0;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.picker-btn:hover {
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.picker-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

body.light-theme .picker-btn.active {
    color: #FFFFFF;
}

.suit-grid {
    grid-template-columns: repeat(2, 1fr);
}

.suit-btn {
    font-size: 0.9rem;
}

.bet-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bet-input-wrap input {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    outline: none;
}

.bet-input-wrap input:focus {
    border-color: var(--primary);
}

.coin-suffix {
    position: absolute;
    right: 16px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Simulator Dealer Felt Table */
.live-dealer-table {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: var(--felt-color);
    border: 8px solid var(--felt-border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.5s ease, border 0.5s ease;
}

.table-felt {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.status-banner {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: #FFF;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.draw-zone {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto 0;
}

.deck-stack {
    position: relative;
    width: 100px;
    height: 145px;
}

.deck-card {
    position: absolute;
    width: 100px;
    height: 145px;
    border-radius: 12px;
    border: 2px solid #FFF;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: repeating-linear-gradient(
        45deg,
        #8B0000,
        #8B0000 10px,
        #4A0000 10px,
        #4A0000 20px
    );
}

.c-back-1 { transform: rotate(-3deg); top: 0; left: 0; }
.c-back-2 { transform: rotate(1deg); top: -2px; left: 4px; }
.c-back-3 { transform: rotate(4deg); top: -4px; left: 8px; }

.draw-card-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slot-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* Animated Card Container for flipping */
.sim-card-container {
    width: 100px;
    height: 145px;
    position: relative;
    perspective: 600px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.sim-card-container.reveal {
    transform: rotateY(180deg);
}

.sim-card-front, .sim-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.sim-card-front {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-card-bg-pattern {
    font-size: 3rem;
}

.sim-card-back {
    background-color: #FFFFFF;
    border: 2px solid #FFF;
    color: #111;
    transform: rotateY(180deg);
    position: relative;
}

.sim-card-back.red-suit {
    color: #CC0000;
}

.card-val-top {
    position: absolute;
    top: 8px;
    left: 8px;
    line-height: 1;
}

.card-suit-mid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    line-height: 1;
}

.card-val-bottom {
    position: absolute;
    bottom: 8px;
    right: 8px;
    transform: rotate(180deg);
    line-height: 1;
}

.user-stats-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    margin-top: 20px;
}

.user-stats-bar strong {
    color: #FFF;
}

/* Technical Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.tech-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-main);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tech-logo {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.tech-card h3 {
    font-size: 1.4rem;
}

.tech-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-card li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-card li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Architecture Diagram */
.architecture-diagram {
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.architecture-diagram h3 {
    margin-bottom: 32px;
}

.diagram-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-node {
    flex: 1;
    min-width: 200px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-node.highlight-node {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(229, 62, 62, 0.05) 100%);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.node-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.node-subtitle {
    font-size: 0.8rem;
    color: var(--text-dimmed);
}

.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.arrow-label {
    font-size: 0.75rem;
    color: var(--text-dimmed);
    margin-bottom: 4px;
}

.arrow-line {
    font-weight: bold;
    letter-spacing: -2px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 24px;
}

.faq-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-bottom: 24px;
}

/* FAQ open state */
.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 300px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* CTA & Commands */
.cta-section {
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.cta-card p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.cta-commands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.cmd-box {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.cmd-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dimmed);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cmd-box code {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-subtext {
    color: var(--text-dimmed);
    font-size: 0.8rem;
}

/* Mobile Menu Overlay Drawer */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
}



/* ==========================================
   APP TOUR / MOBILE CAROUSEL SECTION
   ========================================== */
.app-tour-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.tour-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

/* Stepper / Details list */
.tour-stepper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.step-item.active {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .step-item.active {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dimmed);
    transition: color 0.3s ease;
}

.step-item.active .step-number {
    color: var(--primary);
}

.step-text h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.step-item.active .step-text h3 {
    color: var(--primary);
}

.step-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile phone mockup */
.tour-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 290px;
    height: 590px;
    border-radius: 40px;
    background-color: #000000;
    border: 12px solid #222222;
    box-shadow: var(--shadow-main), 0 0 0 4px #111111, 0 15px 50px rgba(0,0,0,0.8);
    overflow: visible;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Phone details */
.phone-speaker {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #555555;
    border-radius: 2px;
    z-index: 15;
}

.phone-camera {
    position: absolute;
    top: 12px;
    left: 35%;
    width: 10px;
    height: 10px;
    background-color: #111111;
    border-radius: 50%;
    z-index: 15;
    border: 1px solid #333333;
}

/* Side buttons */
.phone-button {
    position: absolute;
    background-color: #333333;
    border-radius: 2px;
}

.phone-button.power {
    top: 120px;
    right: -15px;
    width: 3px;
    height: 60px;
}

.phone-button.volume-up {
    top: 100px;
    left: -15px;
    width: 3px;
    height: 45px;
}

.phone-button.volume-down {
    top: 155px;
    left: -15px;
    width: 3px;
    height: 45px;
}

/* Phone Screen */
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background-color: #0b0203;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.phone-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Carousel Slider */
.carousel-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-main);
}

.ctrl-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ctrl-btn:hover {
    background-color: var(--primary);
    color: #000000;
    border-color: var(--primary);
    transform: scale(1.05);
}

body.light-theme .ctrl-btn:hover {
    color: #ffffff;
}

.carousel-indicator {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.indicator-divider {
    color: var(--text-dimmed);
    font-weight: 400;
}

.total-count {
    color: var(--text-dimmed);
    font-size: 0.9rem;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        width: 100%;
    }
    
    .sim-wrapper {
        grid-template-columns: 1fr;
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width-mode {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .full-width-mode .mode-image {
        flex-basis: auto;
    }
    
    .full-mode-visual {
        border-left: none;
        border-top: 1px dashed var(--border-color);
        padding-left: 0;
        padding-top: 30px;
        width: 100%;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .diagram-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .cta-commands {
        grid-template-columns: 1fr;
    }

    .app-visuals-grid {
        grid-template-columns: 1fr 1fr;
    }

    .app-visual-wide {
        grid-column: span 2;
    }

    .tour-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }
    
    .tour-stepper {
        order: 2;
        width: 100%;
    }
    
    .tour-visual {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu toggled */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        padding: 30px;
        align-items: center;
        box-shadow: var(--shadow-main);
    }
    
    .navbar.active .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .navbar.active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar.active .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .app-art-card {
        position: relative;
        width: min(320px, 82vw);
        height: 400px;
    }

    .card-showcase {
        display: none;
    }

    .mode-image {
        width: 82px;
        height: 82px;
        right: 16px;
        bottom: 18px;
    }

    .app-visuals-section {
        padding: 70px 0;
    }

    .app-visuals-grid {
        grid-template-columns: 1fr;
    }

    .app-visual-wide {
        grid-column: auto;
    }

    .app-visual,
    .app-visual img {
        min-height: 300px;
    }
    
    .cta-card {
        padding: 40px 20px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .step-item {
        padding: 15px;
        gap: 15px;
    }

    .step-number {
        font-size: 1.25rem;
    }

    .step-text h3 {
        font-size: 1.05rem;
    }
}

/* Walkthrough Info Bar styles */
.tour-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px auto 40px;
    max-width: 1200px;
    width: 100%;
}

.info-bar-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-main);
    position: relative;
    overflow: hidden;
}

.info-bar-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.info-bar-icon {
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-bar-card:hover .info-bar-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-bar-icon svg {
    width: 22px;
    height: 22px;
}

.info-bar-text {
    flex-grow: 1;
}

.info-bar-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.info-bar-text p {
    font-size: 0.8rem;
    color: var(--text-dimmed);
    margin: 0;
    line-height: 1.3;
}

/* Highlight Golden Card */
.info-bar-card.highlight-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(24, 9, 10, 0.7) 100%);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.info-bar-card.highlight-card .info-bar-icon {
    background: var(--primary);
    color: #0b0203;
}

body.light-theme .info-bar-card.highlight-card .info-bar-icon {
    color: #ffffff;
}

/* Force light text on the dark gradient card for legibility */
.info-bar-card.highlight-card .info-bar-text h4 {
    color: #ffffff;
}

.info-bar-card.highlight-card .info-bar-text p {
    color: #e2d4c9;
}

@media (max-width: 992px) {
    .tour-info-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 10px auto 30px;
    }
}

@media (max-width: 576px) {
    .tour-info-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Card Simulator Picker Grid and Custom Red-Suit styling */
.card-picker-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 10px;
}

.picker-btn.red-suit {
    color: #CC0000;
    border-color: rgba(204, 0, 0, 0.25);
}

.picker-btn.red-suit:hover {
    border-color: #CC0000;
    background-color: rgba(204, 0, 0, 0.05);
}

.picker-btn.red-suit.active {
    background: #CC0000;
    color: #FFFFFF;
    border-color: #CC0000;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.4);
}
