/* ============================================
   THUMIFY — Global Design System
   Theme: Red (#FF0000) + White + Dark
   Font: Inter, Space Grotesk
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Palette */
    --red-50: #FFF5F5;
    --red-100: #FFE3E3;
    --red-200: #FFC9C9;
    --red-300: #FFA8A8;
    --red-400: #FF6B6B;
    --red-500: #FF0000;
    --red-600: #E60000;
    --red-700: #CC0000;
    --red-800: #990000;
    --red-900: #660000;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --black: #0A0A0A;

    /* Dark mode surface */
    --surface-dark: #0D0D0D;
    --surface-card: #1A1A1A;
    --surface-card-hover: #222222;
    --surface-elevated: #2A2A2A;
    --surface-border: rgba(255,255,255,0.08);
    --surface-border-hover: rgba(255,255,255,0.15);

    /* Semantic */
    --primary: var(--red-500);
    --primary-hover: var(--red-600);
    --primary-glow: rgba(255, 0, 0, 0.25);
    --primary-subtle: rgba(255, 0, 0, 0.08);
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF0000 0%, #FF4444 50%, #FF0000 100%);
    --gradient-dark: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(255,0,0,0.15) 0%, transparent 60%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #FF6B6B 50%, #FF0000 100%);
    --gradient-cta: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 64px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(255,0,0,0.3);
    --shadow-glow-sm: 0 0 20px rgba(255,0,0,0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Layout */
    --navbar-height: 72px;
    --container-max: 1280px;
    --container-narrow: 960px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--surface-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    text-align: center;
    animation: slideDown 0.5s var(--ease-out);
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.announcement-bar p {
    margin: 0;
}

.announcement-bar a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar a:hover {
    opacity: 0.9;
}

.announcement-close {
    color: white;
    opacity: 0.7;
    font-size: 16px;
    padding: 4px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.announcement-close:hover {
    opacity: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--surface-border);
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-display);
    z-index: 10;
}

.brand-text {
    color: var(--white);
}

.brand-highlight {
    color: var(--red-500);
}

.logo-icon {
    display: flex;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.navbar-brand:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: var(--primary-subtle);
}

.nav-link.active {
    color: var(--red-400);
}

.nav-link i {
    font-size: 12px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: var(--text-secondary);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-right {
    left: auto;
    right: 0;
    transform: translateY(8px);
}

.nav-dropdown:hover .dropdown-right,
.nav-dropdown.open .dropdown-right {
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-dropdown-menu a:hover {
    background: var(--primary-subtle);
    color: var(--white);
}

.nav-dropdown-menu a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    color: var(--red-400);
}

.nav-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--surface-border);
    margin: 6px 0;
}

.dropdown-user-info {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-user-info strong {
    font-size: 14px;
    color: var(--white);
}

.dropdown-user-info small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Credits Badge */
.credits-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-subtle);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--red-400);
    white-space: nowrap;
}

.credits-badge i {
    color: var(--red-500);
    animation: pulse 2s infinite;
}

/* User Avatar */
.user-avatar-btn {
    padding: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.user-avatar-btn:hover .user-avatar {
    transform: scale(1.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left var(--duration-slow) var(--ease-out);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,0,0,0.4);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--surface-border-hover);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--red-400);
    color: var(--red-400);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.btn-dark {
    background: var(--surface-card);
    color: var(--white);
    border: 1px solid var(--surface-border);
}

.btn-dark:hover {
    background: var(--surface-card-hover);
    border-color: var(--surface-border-hover);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--surface-dark), transparent);
    pointer-events: none;
}

/* Animated grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    animation: gridFloat 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-subtle);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--red-400);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-badge i {
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    animation: fadeInUp 0.6s var(--ease-out) 0.5s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--red-500);
    top: -100px;
    right: -150px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--red-700);
    bottom: -50px;
    left: -100px;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(255,100,100,0.5);
    top: 30%;
    left: 10%;
    animation-delay: 5s;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-dark {
    background: var(--surface-dark);
}

.section-card {
    background: var(--surface-card);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-subtle);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--red-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    border-color: rgba(255,0,0,0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255,0,0,0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--red-400);
    margin-bottom: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover .feature-icon {
    background: var(--red-500);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-glow-sm);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card .feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--red-400);
    transition: gap var(--duration-fast) var(--ease-out);
}

.feature-card:hover .feature-link {
    gap: 10px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    counter-reset: step;
}

.step-card {
    position: relative;
    text-align: center;
    padding: var(--space-xl);
    counter-increment: step;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-glow-sm);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.step-card:hover .step-number {
    transform: scale(1.15);
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Connector line between steps */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--red-500), transparent);
    display: none;
}

@media (min-width: 768px) {
    .step-card:not(:last-child)::after {
        display: block;
    }
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.pricing-card.featured {
    border-color: rgba(255,0,0,0.3);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.pricing-price {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--surface-border);
}

.pricing-features li:last-child {
    border: none;
}

.pricing-features li i {
    color: var(--success);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.pricing-features li i.fa-lock {
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,0,0,0.1) 0%, transparent 60%);
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,0,0,0.08);
    filter: blur(120px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 14px;
    margin-bottom: var(--space-md);
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.testimonial-author-info strong {
    font-size: 14px;
    color: var(--white);
    display: block;
}

.testimonial-author-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   AUTH FORMS
   ============================================ */
.auth-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.auth-card h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: var(--space-xs);
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-dark);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 14px;
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

.form-input:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 14px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--red-400);
    font-weight: 600;
}

.form-footer a:hover {
    color: var(--red-500);
    text-decoration: underline;
}

.auth-credits-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--primary-subtle);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--red-400);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #FCA5A5;
}

.alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #86EFAC;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--surface-border);
}

.dashboard-welcome h1 {
    font-size: 28px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--red-400);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.generations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.generation-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.generation-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-2px);
}

.generation-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.generation-card .shimmer-wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.generation-card-info {
    padding: var(--space-md);
}

.generation-card-info p {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.generation-card-info small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   FEATURE PAGES (YT, IG, Editor)
   ============================================ */
.feature-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.feature-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.feature-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: var(--primary-subtle);
    border: 1px solid rgba(255,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--red-400);
    margin: 0 auto var(--space-lg);
}

.feature-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.feature-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--surface-card);
    border-top: 1px solid var(--surface-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: rgba(255,0,0,0.04);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--surface-dark);
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
    background: var(--red-500);
    border-color: var(--red-500);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--red-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--surface-border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-credits-cta a {
    color: var(--red-400);
    font-weight: 600;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding: var(--space-3xl) 0;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: var(--space-lg);
}

.legal-page h2 {
    font-size: 22px;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.legal-page p, .legal-page li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-page ul {
    padding-left: var(--space-xl);
}

.legal-page .update-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.contact-info-card i {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-400);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-red { color: var(--red-400) !important; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes gridFloat {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-border);
    border-top-color: var(--red-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 9999;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    animation: pulse 2s infinite;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s var(--ease-out);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13,13,13,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-md);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all var(--duration-normal) var(--ease-out);
        z-index: 200; /* High enough to cover everything */
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-menu .nav-link {
        font-size: 18px;
        padding: 12px 24px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }

    /* Only flatten dropdowns INSIDE the hamburger menu — NOT the user avatar dropdown */
    .navbar-menu .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 var(--space-lg);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* User dropdown keeps floating behaviour on mobile — hide by default */
    .user-dropdown .nav-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        transform: translateY(4px);
        background: var(--surface-elevated);
        border: 1px solid var(--surface-border);
        border-radius: var(--radius-lg);
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: var(--shadow-xl);
        z-index: 1001;
        min-width: 200px;
    }

    .user-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .hero-stat-number {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .btn-xl {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* Keep credits visible on mobile but smaller */
    .credits-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .announcement-bar {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ============================================
   MISSING / ADDITIONAL STYLES
   ============================================ */

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

/* Button group center */
.btn-group.justify-center {
    justify-content: center;
}

/* Google sign-in button (global reuse) */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
    text-decoration: none;
    margin-top: var(--space-lg);
    letter-spacing: -0.01em;
}
.google-signin-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}
.google-signin-btn:active {
    transform: translateY(0);
}

/* Prompt textarea */
.prompt-area {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-dark);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 14px;
    resize: vertical;
    min-height: 90px;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.6;
}
.prompt-area:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
.prompt-area::placeholder { color: var(--text-muted); }

/* Aspect ratio badge */
.aspect-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--surface-border);
}

/* Section card with subtle separator */
.section + .section-card {
    border-top: 1px solid var(--surface-border);
}

/* Platform grid (homepage) */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}
.platform-card {
    padding: var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}
.platform-card:hover {
    border-color: rgba(255,0,0,0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.platform-card i {
    font-size: 28px;
    color: var(--red-400);
    margin-bottom: var(--space-sm);
    display: block;
}
.platform-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* History item thumbnail (studio sidebar) */
.history-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s var(--ease-out);
    background: var(--surface-dark);
}
.history-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.history-item:hover {
    border-color: var(--surface-border-hover);
}
.history-item.active {
    border-color: var(--red-500);
    box-shadow: 0 0 12px rgba(255,0,0,0.25);
}
.history-item-info {
    padding: 6px 8px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--surface-card);
}

/* Responsive: contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .google-signin-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS — Applied across all pages
   ============================================================ */

/* Viewport & base */
@media (max-width: 768px) {

    /* ── Navbar ── */
    .navbar-brand .brand-text { font-size: 18px; }

    /* === MOBILE NAV MENU === */
    /* Show hamburger button */
    .navbar-toggle {
        display: flex !important;
    }

    /* Hide the nav links by default on mobile */
    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Just below the navbar */
        left: 0;
        right: 0;
        height: calc(100vh - var(--navbar-height));
        background: #0A0A0A; /* Solid dark background to hide hero */
        border-top: 1px solid var(--surface-border);
        padding: 16px 8px;
        gap: 4px;
        z-index: 999;
        overflow-y: auto;
        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        pointer-events: none;
    }

    /* Show menu when toggled */
    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Nav links full-width on mobile */
    .navbar-menu .nav-link {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: var(--radius-md);
        width: 100%;
        color: var(--text-primary);
    }
    .navbar-menu .nav-link:hover,
    .navbar-menu .nav-link.active {
        background: var(--primary-subtle);
        color: var(--white);
    }

    /* Features dropdown on mobile — stays inline (no absolute) */
    .navbar-menu .nav-dropdown {
        width: 100%;
    }
    .navbar-menu .nav-dropdown-toggle {
        width: 100%;
        padding: 14px 20px;
        text-align: left;
        font-size: 16px;
        color: var(--text-primary);
        border-radius: var(--radius-md);
    }
    .navbar-menu .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
        background: rgba(255,255,255,0.02);
        border: none;
        border-radius: var(--radius-md);
        box-shadow: none;
        padding: 0 0; /* 0 when closed */
        margin: 4px 12px;
    }
    .navbar-menu .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: 8px 0; /* Add padding when open */
        pointer-events: auto;
    }
    .navbar-menu .nav-dropdown-menu a {
        padding: 10px 36px;
        border-radius: 0;
        font-size: 14px;
    }

    /* Hamburger → X animation */
    .navbar-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .navbar-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Announce bar compact on mobile */
    .announcement-bar { font-size: 12px; padding: 8px 0; }
    .announcement-bar .container { flex-wrap: nowrap; gap: 8px; }



    /* ── Hero ── */
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: clamp(28px, 8vw, 48px); line-height: 1.15; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    .hero-actions .btn { width: 100%; max-width: 360px; justify-content: center; }
    .hero-stats { gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
    .hero-stat-number { font-size: 28px; }

    /* ── Sections ── */
    .section { padding: var(--space-2xl) 0; }
    .section-title { font-size: clamp(22px, 6vw, 32px); }
    .section-subtitle { font-size: 14px; }

    /* ── Feature grid ── */
    .features-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .feature-card { padding: var(--space-lg); }

    /* ── Steps ── */
    .steps-grid { grid-template-columns: 1fr; }

    /* ── Pricing ── */
    .pricing-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .pricing-card { padding: var(--space-lg); }
    .pricing-price { font-size: 48px; }

    /* ── CTA Section ── */
    .cta-content h2 { font-size: clamp(24px, 7vw, 40px); }
    .cta-content p { font-size: 14px; }
    .btn-xl { font-size: 15px; padding: 14px 24px; }
    .btn-group.justify-center { flex-direction: column; align-items: center; }
    .btn-group.justify-center .btn { width: 100%; max-width: 360px; justify-content: center; }

    /* ── Testimonials ── */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* ── Platform cards ── */
    .platform-grid { grid-template-columns: 1fr 1fr; }

    /* ── Dashboard ── */
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .generations-grid { grid-template-columns: 1fr 1fr; }

    /* ── Form inputs & buttons — min 44px touch targets ── */
    .btn { min-height: 44px; }
    .form-input { min-height: 44px; font-size: 16px; } /* 16px prevents iOS auto-zoom */
    textarea.form-input { min-height: 100px; font-size: 16px; }

    /* ── Footer ── */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

    /* ── Tables → Scrollable ── */
    table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* ── Container padding ── */
    .container { padding-inline: var(--space-md); }

    /* ── Auth pages (login/register) ── */
    .auth-card { margin: var(--space-xl) var(--space-md); padding: var(--space-xl); }
}

@media (max-width: 480px) {
    /* ── Hero ── */
    .hero-badge { font-size: 12px; padding: 6px 12px; }
    .hero h1 { font-size: clamp(24px, 9vw, 36px); }

    /* ── Platform grid → single column ── */
    .platform-grid { grid-template-columns: 1fr; }

    /* ── Dashboard stats → 2-col ── */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .generations-grid { grid-template-columns: 1fr; }

    /* ── Footer ── */
    .footer-grid { grid-template-columns: 1fr; }

    /* ── Pricing badge ── */
    .pricing-badge { font-size: 11px; }

    /* ── w-full buttons ── */
    .w-full { width: 100%; }
}

/* Smooth scroll for the whole site */
html { scroll-behavior: smooth; }

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--red-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ══════════════════════════════════════
   GLOBAL SKELETON SHIMMER
   Pro loading effect for all images & cards
   ══════════════════════════════════════ */

/* Shimmer background placeholder */
.skeleton {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.03) 20%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: globalShimmer 1.8s ease-in-out infinite;
}
@keyframes globalShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Shimmer wrapper for any image — wraps img with a loading placeholder */
.shimmer-wrap {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}
.shimmer-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #1a1a1a;
    transition: opacity 0.3s ease;
}
.shimmer-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 20%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: globalShimmer 1.8s ease-in-out infinite;
    transition: opacity 0.3s ease;
}
.shimmer-wrap.loaded::before,
.shimmer-wrap.loaded::after {
    opacity: 0;
    pointer-events: none;
}
.shimmer-wrap img {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.shimmer-wrap.loaded img {
    opacity: 1;
}

/* Skeleton text lines */
.skeleton-text {
    height: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    width: 70%;
    position: relative;
    overflow: hidden;
}
.skeleton-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    background-size: 200% 100%;
    animation: globalShimmer 1.8s ease-in-out infinite;
}
.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 60%; }

/* Card skeleton (full card placeholder) */
.skeleton-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}
.skeleton-card .skeleton-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}
.skeleton-card .skeleton-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    background-size: 200% 100%;
    animation: globalShimmer 1.8s ease-in-out infinite;
}
.skeleton-card .skeleton-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
