@import "at.main.css";

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #4a90e2;
    --primary-light: #93c5ff;
    --primary-dark: #0867d4;
    --secondary: #8b5cf6;
    --accent: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
    --gradient-subtle: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-hover-bg: #f8fafc;
    --navbar-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md:
        0 6px 16px -4px rgba(0, 0, 0, 0.1), 0 3px 6px -3px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 12px 28px -6px rgba(0, 0, 0, 0.12),
        0 6px 10px -4px rgba(0, 0, 0, 0.07);
    --shadow-xl:
        0 20px 40px -8px rgba(0, 0, 0, 0.14),
        0 10px 16px -6px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);

    /* --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
    --font-sans:
        "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;

    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --section-py: 5rem;
    --navbar-height: 70px;

    /*
    *  Global Font Weight
    */
    --f-500: 500;
    --f-600: 600;
    --f-700: var(--f-600);
    --f-800: var(--f-600);
    --f-900: var(--f-600);
}

[data-theme="dark"] {
    --bg-primary: #0a0f1e;
    --bg-secondary: #111827;
    --bg-tertiary: #1e2a3a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #8b9db8;
    --border-color: #1e2a3a;
    --card-bg: #111827;
    --card-hover-bg: #1e2a3a;
    --navbar-bg: rgba(10, 15, 30, 0.98);
    --input-bg: #111827;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);

    /* Override Bootstrap CSS variables so its components also adapt to dark mode */
    --bs-body-color: #f1f5f9;
    --bs-body-bg: #0a0f1e;
    --bs-secondary-color: rgba(148, 163, 184, 0.85);
    --bs-tertiary-color: rgba(139, 157, 184, 0.75);
    --bs-border-color: #1e2a3a;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
    --bs-heading-color: #f1f5f9;
    --bs-link-color: #93c5ff;
    --bs-link-hover-color: #bfdbfe;
    --bs-code-color: #93c5ff;
    --bs-success: #34d399;
    --bs-success-rgb: 52, 211, 153;
    --bs-info: #38bdf8;
    --bs-info-rgb: 56, 189, 248;
    --bs-warning: #fbbf24;
    --bs-warning-rgb: 251, 191, 36;
    --bs-danger: #f87171;
    --bs-danger-rgb: 248, 113, 113;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    overflow-x: hidden;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--f-600);
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1.1rem;
}
h6 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: var(--f-600);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: var(--f-700);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: var(--f-600);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}
.btn-outline:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
}
.btn-ghost:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--gradient-subtle);
    color: var(--primary);
}

.card-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}
.card-glow:hover::before {
    opacity: 1;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--f-600);
}
.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}
.badge-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.badge-new {
    background: var(--gradient);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--f-600);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-control option {
    background: var(--bg-primary);
}
textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR — full Bootstrap override ===== */
nav.navbar {
    /* Override Bootstrap's position:relative and reset padding */
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    min-height: var(--navbar-height);
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: unset !important;
    padding: 0 1.5rem !important;

    /* Visual */
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid var(--border-color) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: var(--transition);

    /* Override Bootstrap's own navbar CSS variables so all its
     child selectors (nav-link, navbar-brand, etc.) use our colors */
    --bs-navbar-color: var(--text-primary);
    --bs-navbar-hover-color: var(--primary);
    --bs-navbar-disabled-color: var(--text-muted);
    --bs-navbar-active-color: var(--primary);
    --bs-navbar-brand-color: var(--text-primary);
    --bs-navbar-brand-hover-color: var(--primary);
    --bs-nav-link-padding-x: 0.85rem;
    --bs-nav-link-padding-y: 0.5rem;
}

[data-theme="dark"] nav.navbar {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
nav.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] nav.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* Brand */
.brand {
    display: flex !important;
    align-items: center;
    gap: 1px;
    font-size: 1.35rem;
    font-weight: var(--f-700);
    color: var(--text-primary) !important;
    letter-spacing: -0.03em;
    text-decoration: none !important;
    flex-shrink: 0;
    padding: 0 !important;
    margin-right: 0 !important;
}
.brand:hover {
    color: var(--primary) !important;
}

.brand span:last-child {
    color: var(--primary);
}

/* Logo square */
.logo-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 30px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Nav list — Bootstrap sets flex-direction:column and padding-x:0 here */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important; /* Bootstrap forces column — fix it */
    align-items: center !important;
    gap: 0.25rem;
    flex-wrap: nowrap;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none;
}

/* Nav links — Bootstrap sets color via --bs-navbar-color (was 65% opacity).
   We already fixed the variable above; these rules are an extra safety net. */
nav.navbar .navbar-nav .nav-link,
nav.navbar .nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none !important;
    opacity: 1 !important;
    line-height: 1.4;
}
nav.navbar .navbar-nav .nav-link:hover,
nav.navbar .navbar-nav .nav-link.active,
nav.navbar .nav-link:hover,
nav.navbar .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(99, 102, 241, 0.1);
    opacity: 1 !important;
}

/* Actions group */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 1rem;
}
.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.mobile-menu .nav-link {
    display: block !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius) !important;
    font-size: 1rem;
    color: var(--text-primary) !important;
    opacity: 1 !important;
    text-decoration: none !important;
}
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(99, 102, 241, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    margin-top: 0.75rem;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: var(--f-700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 4rem) 0 5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.12;
}
.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}
.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}
.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 40%;
    right: 20%;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

.hero-announce {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.hero-announce .dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    margin-bottom: 1.25rem;
    font-weight: var(--f-900);
    letter-spacing: -0.04em;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}
.hero-stat .stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--f-800);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* ===== CODE MOCKUP ===== */
.code-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: var(--transition-slow);
}
.code-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(0deg);
}

.mockup-header {
    background: var(--bg-tertiary);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup-dot.red {
    background: #ff5f57;
}
.mockup-dot.yellow {
    background: #febc2e;
}
.mockup-dot.green {
    background: #28c840;
}

.mockup-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-left: 0.5rem;
}

.mockup-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.line-num {
    color: var(--text-muted);
    user-select: none;
    min-width: 20px;
    text-align: right;
}
.code-keyword {
    color: #c084fc;
}
.code-string {
    color: #34d399;
}
.code-comment {
    color: var(--text-muted);
    font-style: italic;
}
.code-function {
    color: #60a5fa;
}
.code-variable {
    color: #f9a8d4;
}
.code-number {
    color: #fb923c;
}
.code-operator {
    color: var(--text-secondary);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--section-py) 0;
}

.feature-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.feature-card:hover::after {
    transform: scaleX(1);
}
.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.fi-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}
.fi-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.fi-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
}
.fi-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}
.fi-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}
.fi-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: var(--f-700);
    margin-bottom: 0.6rem;
}
.feature-card p {
    font-size: 0.9rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--f-900);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.steps-section {
    padding: var(--section-py) 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    height: 100%;
}
.step-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-num {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: var(--f-800);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: var(--section-py) 0;
    background: var(--bg-secondary);
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}
.testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--f-700);
    font-size: 1rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: var(--f-700);
    font-size: 0.9rem;
    color: var(--text-primary);
}
.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: var(--section-py) 0;
}

.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-toggle-label {
    font-size: 0.9rem;
    font-weight: var(--f-600);
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.save-badge {
    font-size: 0.75rem;
    font-weight: var(--f-700);
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.pricing-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.pricing-card.featured {
    border-color: var(--primary);
    background: var(--gradient-subtle);
    box-shadow: var(--shadow-glow);
}
.pricing-card.featured:hover {
    transform: translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: var(--f-700);
    padding: 0.3rem 1.25rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.plan-name {
    font-size: 1rem;
    font-weight: var(--f-700);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1rem 0 0.5rem;
}
.price-currency {
    font-size: 1.3rem;
    font-weight: var(--f-700);
    color: var(--text-primary);
}
.price-amount {
    font-size: 3rem;
    font-weight: var(--f-900);
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}
.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.plan-features {
    margin-bottom: 2rem;
}
.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.plan-feature:last-child {
    border-bottom: none;
}
.plan-feature i {
    color: var(--success);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.plan-feature.disabled {
    opacity: 0.4;
}
.plan-feature.disabled i {
    color: var(--text-muted);
}

/* ===== DOWNLOAD PAGE ===== */
.download-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}
.download-card:hover::before {
    transform: scaleX(1);
}
.download-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.download-card:hover .download-icon {
    background: var(--gradient-subtle);
    border-color: rgba(99, 102, 241, 0.3);
}

.download-version {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

/* ===== TEAM SECTION ===== */
.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1.25rem;
    font-weight: var(--f-700);
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: var(--f-600);
    margin-bottom: 0.5rem;
}
.team-bio {
    font-size: 0.875rem;
}
.team-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--primary),
        var(--secondary),
        transparent
    );
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.425rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: var(--f-600);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.05rem;
    font-weight: var(--f-700);
    margin-bottom: 0.5rem;
}
.timeline-desc {
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}
.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    background: var(--card-bg);
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-weight: var(--f-600);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    gap: 1rem;
    transition: var(--transition);
}
.faq-question:hover {
    background: var(--bg-secondary);
}
.faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}
.faq-item.active .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-py) 0;
}
.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-2xl);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
        repeat;
}
.cta-box h2,
.cta-box p {
    color: white;
    position: relative;
    z-index: 1;
}
.cta-box p {
    opacity: 0.85;
}
.cta-box .btn-white {
    background: white;
    color: var(--primary);
    position: relative;
    z-index: 1;
    font-weight: var(--f-700);
}
.cta-box .btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}
.cta-box .btn-ghost-white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}
.cta-box .btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: calc(var(--navbar-height) + 4rem) 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    margin-bottom: 1rem;
}
.page-hero p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.legal-content p {
    margin-bottom: 1rem;
}
.legal-content ul {
    padding-left: 1.5rem;
    list-style: disc;
    margin-bottom: 1rem;
}
.legal-content ul li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
    font-size: 0.95rem;
}
.legal-content strong {
    color: var(--text-primary);
}
.legal-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.legal-toc h5 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.legal-toc a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}
.legal-toc a:hover {
    color: var(--primary);
}

/* ===== CONTACT ===== */
.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
}
.contact-info-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-lg);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}
.reveal-delay-4 {
    transition-delay: 0.4s;
}
.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ===== UTILITIES ===== */
.section-py {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}
.bg-secondary-section {
    background: var(--bg-secondary);
}
.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}
.text-center {
    text-align: center;
}
.pt-nav {
    padding-top: var(--navbar-height);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 991px) {
    /* Must use !important to override the base .navbar-nav { display: flex !important } */
    .navbar-nav {
        display: none !important;
    }
    .navbar-actions .btn {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    .code-mockup {
        transform: none;
        max-width: 100%;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-announce {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    :root {
        --section-py: 3.5rem;
    }
    .hero {
        min-height: auto;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
    .cta-box .d-flex {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .mockup-body {
        padding: 1rem !important;
    }
    .code-mockup {
        font-size: 0.875rem;
    }
    /* Feature card: center icon and text on mobile */
    .feature-card {
        text-align: center;
    }
    .feature-card .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    /* General block cards with feature-icon: center icon on mobile */
    .card > .feature-icon:first-child {
        margin-left: auto;
        margin-right: auto;
    }
    /* Contact info card: center when stacked vertically */
    .contact-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .page-hero {
        padding-top: calc(var(--navbar-height) + 2.5rem);
        padding-bottom: 3rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .pricing-card {
        padding: 1.75rem;
    }
    .download-card {
        padding: 2rem 1.5rem;
    }
    .compare-table th,
    .compare-table td {
        padding: 0.75rem 0.6rem;
        font-size: 0.8rem;
    }
    .hero-stat .stat-num {
        font-size: 1.2rem;
    }
    .hero-stat .stat-label {
        font-size: 0.75rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .step-item {
        padding: 1.25rem;
    }
    .cta-box h2 {
        font-size: 1.6rem;
    }
    .footer .row .col-6 {
        flex: 0 0 50%;
    }
    .hero-announce {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    /* Reduce heavy card padding on small screens */
    .card {
        padding: 1.5rem !important;
    }
    .mockup-body {
        padding: 0.875rem !important;
    }
    /* Contact form full-width buttons on mobile */
    #contact-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== INTEGRATIONS ===== */
.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: var(--f-600);
    color: var(--text-secondary);
    transition: var(--transition);
}
.integration-badge:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary);
    transform: scale(1.05);
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.compare-table th,
.compare-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.compare-table th {
    background: var(--bg-secondary);
    font-weight: var(--f-700);
    color: var(--text-primary);
}
.compare-table td:first-child {
    text-align: left;
    color: var(--text-secondary);
}
.compare-table tr:last-child td {
    border-bottom: none;
}
.compare-table .yes {
    color: var(--success);
    font-size: 1rem;
}
.compare-table .no {
    color: var(--text-muted);
    font-size: 1rem;
}
.compare-table tr:hover td {
    background: var(--bg-secondary);
}

/* ===== NOTICE/ALERT ===== */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert-info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
}
.alert-info i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== LOADING ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
}
.btn-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-msg {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-weight: var(--f-600);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
    line-height: 1.5 !important;
}

/* ===== Home - Capture Comparison Card ===== */
.capture-col-header-good {
    font-size: 0.85rem;
    font-weight: var(--f-700);
    color: var(--primary);
}
.capture-col-header-bad {
    font-size: 0.85rem;
    font-weight: var(--f-700);
    color: var(--text-muted);
}
.capture-compare-cell {
    flex: 1;
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.capture-compare-cell .cell-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}
.capture-compare-cell .cell-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.capture-compare-cell .cell-status {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}
.capture-compare-cell-good {
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary);
}
.capture-compare-cell-bad {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.capture-compare-arrow {
    color: var(--text-muted);
    min-width: 16px;
}

/* ===== Features - Capture-Safe Comparison Card ===== */
.compare-row-label i {
    font-size: 1.5rem;
    color: var(--text-muted);
}
.compare-row-label-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.2;
}
.compare-cell {
    border-radius: var(--radius-lg);
    padding: 0.6rem 0.5rem;
    text-align: center;
    width: 100%;
}
.compare-cell i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.2rem;
}
.compare-cell span {
    font-size: 0.7rem;
    font-weight: var(--f-700);
    line-height: 1.2;
}
.compare-cell-good {
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
}
.compare-cell-bad {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ===== ENHANCED EXTENSIONS DROPDOWN ===== */
.dropdown-menu-extensions {
    min-width: 340px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--card-bg) !important;
    padding: 0rem 0 !important;
}

[data-theme="dark"] .dropdown-menu-extensions {
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7) !important;
}

.dropdown-header-custom {
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
}

.dropdown-item-custom {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.75rem 1rem !important;
    margin: 0.35rem 0.5rem !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    border-radius: var(--radius-lg) !important;
    transition: var(--transition) !important;
    border: 1px solid transparent !important;
}

.dropdown-item-custom:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dropdown-item-custom.active {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dropdown-item-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: var(--radius-lg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
    background: var(--bg-tertiary) !important;
    transition: var(--transition) !important;
}

.dropdown-item-custom:hover .dropdown-item-icon {
    background: var(--gradient-subtle) !important;
    transform: scale(1.1) !important;
}

.dropdown-item-icon.chrome-icon {
    color: #f3a500 !important;
}

.dropdown-item-icon.edge-icon {
    color: #0078d4 !important;
}

.dropdown-item-content {
    flex: 1 !important;
}

.dropdown-item-title {
    font-weight: var(--f-600) !important;
    font-size: 0.95rem !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.25rem !important;
}

.dropdown-item-custom:hover .dropdown-item-title,
.dropdown-item-custom.active .dropdown-item-title {
    color: var(--primary) !important;
}

.dropdown-item-desc {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    line-height: 1.3 !important;
}

.dropdown-item-badge {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: var(--bg-tertiary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    flex-shrink: 0 !important;
    transition: var(--transition) !important;
}

.dropdown-item-custom:hover .dropdown-item-badge,
.dropdown-item-custom.active .dropdown-item-badge {
    background: var(--primary) !important;
    color: white !important;
    transform: translateX(4px) !important;
}

.dropdown-divider {
    margin: 0   ;
    border-color: var(--border-color) !important;
}

.dropdown-item-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    border-radius: var(--radius-lg) !important;
}

.dropdown-item-link:hover {
    background: var(--bg-secondary) !important;
    color: var(--primary) !important;
    padding-left: 1.25rem !important;
}

/* Dropdown animation */
.dropdown-menu-extensions.show {
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Allow dropdown to show outside navbar */
nav.navbar {
    overflow: visible !important;
    position: relative;
    z-index: 100;
}

/* Create positioning context */
.nav-item.dropdown-wrapper {
    position: relative;
}

/* Position dropdown BELOW navbar - CRITICAL FIX */
.dropdown-menu-extensions {
    position: absolute !important;
    top: 100% !important;
    /* ← This is the magic! */
    left: 0 !important;
    margin-top: 0.5rem !important;
    z-index: 1050 !important;
}

/* ===== MOBILE EXTENSIONS MENU ===== */
.extensions-menu-wrapper {
    margin: 0.5rem 0;
}

.extensions-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: var(--f-600);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    user-select: none;
}

.extensions-menu-header:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.extensions-menu-header i:first-child {
    font-size: 1rem;
    opacity: 0.7;
}

.extensions-menu-header span {
    flex: 1;
}

.extensions-menu-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.extensions-menu-toggle:hover {
    color: var(--primary);
}

.extensions-menu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--primary);
}

.extensions-menu-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.extensions-menu-items.open {
    padding: 0.5rem 0rem;
    max-height: 300px;
}

/* Extension Item Card */
.extension-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1.5px solid transparent;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.extension-item:hover {
    background: var(--card-bg);
    border-color: var(--primary);
}

.extension-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.extension-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--bg-tertiary);
    transition: var(--transition);
}

.extension-item:hover .extension-item-icon {
    background: var(--gradient-subtle);
    transform: scale(1.05);
}

.extension-item-icon.chrome-icon {
    color: #f3a500;
}

.extension-item-icon.edge-icon {
    color: #0078d4;
}

.extension-item-info {
    flex: 1;
}

.extension-item-name {
    font-weight: var(--f-600);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.extension-item:hover .extension-item-name,
.extension-item.active .extension-item-name {
    color: var(--primary);
}

.extension-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.extension-item-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.extension-item:hover .extension-item-arrow,
.extension-item.active .extension-item-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* Responsive adjustments for very small screens */
@media (max-width: 375px) {
    .extension-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .extension-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .extension-item-name {
        font-size: 0.9rem;
    }

    .extension-item-desc {
        font-size: 0.75rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .extension-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .extension-item:hover {
    background: var(--card-bg);
}
