/* ==========================================================================
   AitechID Media Downloader - Style System (Cosmic Tech & Glassmorphism)
   ========================================================================== */

/* --- 1. Design System Tokens --- */
:root {
    /* Color Palette (HSL Tailored) */
    --clr-bg: hsl(224, 71%, 4%);             /* Deep slate-black */
    --clr-bg-card: hsla(222, 47%, 11%, 0.6); /* Translucent glass card background */
    --clr-bg-card-hover: hsla(222, 47%, 16%, 0.8);
    --clr-primary: hsl(238, 83%, 66%);       /* Electric Indigo */
    --clr-primary-glow: hsla(238, 83%, 66%, 0.35);
    --clr-primary-light: hsl(238, 83%, 75%);
    --clr-secondary: hsl(271, 91%, 65%);     /* Cyber Purple */
    --clr-secondary-glow: hsla(271, 91%, 65%, 0.3);
    --clr-success: hsl(150, 84%, 44%);       /* Mint Green */
    --clr-success-glow: hsla(150, 84%, 44%, 0.25);
    --clr-cyan: hsl(188, 90%, 50%);          /* Cyan highlight */
    --clr-cyan-glow: hsla(188, 90%, 50%, 0.3);
    
    --clr-text-primary: hsl(210, 40%, 98%);  /* Clean off-white */
    --clr-text-secondary: hsl(217, 19%, 68%);/* Slate grey */
    --clr-text-muted: hsl(215, 14%, 45%);    /* Darker grey */
    
    --clr-border: hsla(238, 83%, 66%, 0.15); /* Glass borders */
    --clr-border-active: hsla(238, 83%, 66%, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Elevation / Shadows */
    --shadow-glow: 0 0 25px var(--clr-primary-glow);
    --shadow-glow-success: 0 0 25px var(--clr-success-glow);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- 2. Global Resets & HTML Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

code {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--clr-cyan);
}

/* --- 3. Ambient Ambient Glow Backgrounds --- */
.glow-bg-orb {
    position: absolute;
    width: 40vw;
    height: 40vw;
    min-width: 350px;
    min-height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: pulseOrbs 10s infinite alternate ease-in-out;
}

.orb-1 {
    top: 5%;
    right: -10%;
    background: var(--clr-primary);
}

.orb-2 {
    top: 45%;
    left: -15%;
    background: var(--clr-secondary);
    animation-delay: -3s;
}

.orb-3 {
    bottom: 5%;
    right: 15%;
    background: var(--clr-cyan);
    animation-delay: -6s;
}

@keyframes pulseOrbs {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(3%, 5%); opacity: 0.18; }
}

/* --- 4. Custom Components & Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-primary);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-border-active);
    transform: translateY(-2px);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Glassmorphism Container */
.glass-frame {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Typography Gradient */
.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 5. Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    height: 70px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--clr-primary));
    animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--clr-primary)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 12px var(--clr-cyan)); }
}

.nav-logo .highlight {
    color: var(--clr-primary-light);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-cyan));
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--clr-text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

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

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 0.9rem;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary-light);
    letter-spacing: 0.5px;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--clr-text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

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

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--clr-text-primary);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, var(--clr-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual .glass-frame {
    padding: 16px;
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 420px;
    width: 100%;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 60%);
    top: -10%;
    left: -10%;
    z-index: -1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.badge-top-right {
    top: 32px;
    right: -20px;
}

.badge-bottom-left {
    bottom: 32px;
    left: -20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--clr-success);
    animation: pulseGreen 1.5s infinite alternate;
}

@keyframes pulseGreen {
    0% { transform: scale(1); box-shadow: 0 0 2px var(--clr-success); }
    100% { transform: scale(1.3); box-shadow: 0 0 10px var(--clr-success); }
}

/* --- 7. Section Shared Styles --- */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-secondary);
}

/* --- 8. Telegram Bot Simulator --- */
.simulator-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.tg-simulator {
    background-color: #17212b; /* Telegram web dark bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 520px;
}

.tg-header {
    background-color: #242f3d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.tg-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tg-avatar-text {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.tg-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #52ae54;
    border: 2px solid #242f3d;
    border-radius: 50%;
}

.tg-chat-info {
    display: flex;
    flex-direction: column;
}

.tg-bot-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tg-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    color: #7f91a4;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: lowercase;
}

.tg-bot-status {
    font-size: 0.8rem;
    color: #6c7883;
}

.tg-bot-status.typing {
    color: #52ae54;
    font-weight: 500;
}

.tg-action-btn {
    color: #7f91a4;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.tg-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Chat Screen area */
.tg-chat-screen {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-image: radial-gradient(circle at 10% 20%, rgba(26, 37, 48, 0.9) 0%, rgba(13, 21, 29, 0.9) 90%);
}

/* Custom Scrollbar for chat screen */
.tg-chat-screen::-webkit-scrollbar {
    width: 6px;
}
.tg-chat-screen::-webkit-scrollbar-track {
    background: transparent;
}
.tg-chat-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.tg-date-stamp {
    align-self: center;
    background-color: rgba(0, 0, 0, 0.25);
    color: #7f91a4;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 100px;
    margin: 8px 0;
}

.tg-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.tg-msg-bubble {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    word-break: break-word;
}

.tg-msg-bubble p {
    margin-bottom: 6px;
}
.tg-msg-bubble p:last-child {
    margin-bottom: 0;
}

.tg-bot-msg {
    align-self: flex-start;
}

.tg-bot-msg .tg-msg-bubble {
    background-color: #242f3d;
    color: #f5f5f5;
    border-bottom-left-radius: 2px;
}

.tg-user-msg {
    align-self: flex-end;
}

.tg-user-msg .tg-msg-bubble {
    background-color: #2b5278; /* Telegram blue user bubble */
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.tg-time {
    display: block;
    text-align: right;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    user-select: none;
}

/* Inline Keyboards Simulation */
.tg-inline-keyboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.tg-inline-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #5288c1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tg-inline-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.tg-inline-btn.btn-action-verify {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(255,255,255,0.1);
}

.tg-inline-btn.btn-action-verify:hover {
    filter: brightness(1.15);
}

.tg-inline-btn.btn-action-download {
    color: #fff;
    background-color: #2b5278;
    border-color: rgba(255,255,255,0.05);
}

.tg-inline-btn.btn-action-download:hover {
    background-color: #376796;
}

/* Typing indicator */
.tg-typing {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background-color: rgba(23, 33, 43, 0.5);
    color: #7f91a4;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.tg-typing .dot {
    width: 6px;
    height: 6px;
    background-color: #7f91a4;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.tg-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.tg-typing .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Controls bottom panel */
.tg-controls {
    background-color: #242f3d;
    padding: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-input-bar {
    background-color: #17212b;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tg-input-placeholder {
    color: #6c7883;
    font-size: 0.88rem;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 90%;
}

.tg-send-btn {
    color: #7f91a4;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.tg-send-btn:not(:disabled) {
    color: #5288c1;
}

.tg-send-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Presets panel */
.tg-link-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-label {
    font-size: 0.78rem;
    color: #7f91a4;
    font-weight: 500;
}

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

.preset-btn {
    background-color: #17212b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preset-btn:hover {
    background-color: #202b36;
    border-color: rgba(255, 255, 255, 0.15);
}

.preset-icon {
    font-size: 0.9rem;
}

.tg-keyboard-markup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.hidden {
    display: none !important;
}

/* --- 9. Features Bento Grid --- */
.features-section {
    background-color: rgba(255, 255, 255, 0.01);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--clr-bg-card-hover);
    border-color: var(--clr-border-active);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.feature-icon {
    width: 24px;
    height: 24px;
}

/* Icon specific theme overlays */
.color-blue {
    background: rgba(59, 130, 246, 0.1);
    color: hsl(217, 91%, 60%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.color-purple {
    background: rgba(168, 85, 247, 0.1);
    color: hsl(270, 91%, 65%);
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.color-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: hsl(188, 86%, 53%);
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.color-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: hsl(150, 84%, 44%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.color-orange {
    background: rgba(249, 115, 22, 0.1);
    color: hsl(25, 95%, 53%);
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.color-pink {
    background: rgba(236, 72, 153, 0.1);
    color: hsl(330, 81%, 60%);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-desc {
    color: var(--clr-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 10. How It Works Section --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border) 20%, var(--clr-border) 80%, transparent);
    z-index: 0;
}

.step-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-md);
    padding: 32px;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: var(--transition-normal);
}

.step-card:hover {
    border-color: var(--clr-border-active);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--clr-bg-card), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--clr-primary-light);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.step-card.highlight-step {
    background: linear-gradient(180deg, var(--clr-bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: hsla(238, 83%, 66%, 0.3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.05);
}

.step-card.highlight-step .step-number {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px var(--clr-primary-glow);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-description {
    color: var(--clr-text-secondary);
    font-size: 0.95rem;
}

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

.faq-item {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--clr-border-active);
}

.faq-trigger {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: var(--clr-text-primary);
    transition: background var(--transition-fast);
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    padding-right: 16px;
}

.faq-icon {
    color: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1);
}

.faq-content-inner {
    padding: 0 24px 24px 24px;
    color: var(--clr-text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-content-inner p {
    margin-bottom: 12px;
}
.faq-content-inner p:last-child {
    margin-bottom: 0;
}

.faq-content-inner ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style-type: disc;
}

.faq-content-inner li {
    margin-bottom: 6px;
}

/* Accordion Active States */
.faq-item.active {
    background: var(--clr-bg-card-hover);
    border-color: var(--clr-border-active);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-content {
    max-height: 1000px; /* Large value to accommodate content */
    transition: max-height var(--transition-normal) cubic-bezier(1, 0, 1, 0);
}

/* --- 12. Final CTA Section --- */
.cta-section {
    padding: 60px 0 100px 0;
}

.cta-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.cta-glass-card {
    background: linear-gradient(135deg, var(--clr-bg-card) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(24px);
    border-radius: var(--border-radius-lg);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-secondary);
    margin-bottom: 40px;
}

/* --- 13. Footer Styling --- */
.footer {
    background-color: hsl(224, 71%, 2%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 40px 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.footer-logo .highlight {
    color: var(--clr-primary-light);
}

.footer-desc {
    color: var(--clr-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-primary);
    margin-bottom: 8px;
}

.footer-links-col a {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
}

.footer-links-col a:hover {
    color: var(--clr-primary-light);
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.partner-link::after {
    content: 'Affiliate';
    font-size: 0.65rem;
    background-color: var(--clr-secondary);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    max-width: 700px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--clr-primary-glow);
    border-color: var(--clr-primary);
    color: white;
    transform: translateY(-2px);
}

/* --- 14. Responsive Layout Breakpoints --- */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Drawer style */
    .mobile-toggle {
        display: flex;
        z-index: 1100;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--clr-border);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-normal);
        z-index: 1050;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    /* Hamburger Menu Animation */
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-cta {
        display: none; /* Hide top CTA on mobile navbar to save space */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-visual .glass-frame {
        max-width: 320px;
    }
    
    .presets-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-card {
        padding: 24px;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tg-simulator {
        height: 480px;
    }
    
    .tg-chat-screen {
        padding: 12px;
    }
    
    .tg-message {
        max-width: 90%;
    }
    
    .tg-bot-msg .tg-msg-bubble {
        padding: 8px 12px;
    }
    
    .floating-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .badge-top-right {
        right: -5px;
    }
    
    .badge-bottom-left {
        left: -5px;
    }
}
