/* ═══════════════════════════════════════════════════════════
   Antigravety — Main Stylesheet
   "Sarkari Kaam, Aasaan Kaam"
   ═══════════════════════════════════════════════════════════ */

/* ─── Google Fonts Import ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;700;800;900&display=swap');

/* ─── CSS Custom Properties (Design Tokens) ──────────── */
:root {
    /* Brand Colors (Apple Premium Style - Clean, high contrast) */
    --saffron: #FF5E00;
    --saffron-light: #FF8033;
    --saffron-dark: #D44E00;
    --saffron-50: rgba(255, 94, 0, 0.05);
    
    --india-blue: #0066CC;
    --india-blue-light: #3399FF;
    --india-blue-dark: #004499;
    --india-blue-50: rgba(0, 102, 204, 0.05);
    
    --violet: #5856D6;
    --violet-light: #8E8E93;
    --violet-dark: #4342B2;
    
    --green: #34C759;
    --green-50: rgba(52, 199, 89, 0.05);
    
    /* Neutrals - Premium light mode tokens by default */
    --white: #FFFFFF;
    --black: #1D1D1F;
    --gray-50: #F5F5F7;
    --gray-100: #E8E8ED;
    --gray-200: #D2D2D7;
    --gray-800: #424245;
    --gray-900: #1D1D1F;
    
    /* Surfaces */
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --border-color: #E2E2E7;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows & Effects */
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 8px 30px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-spring: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
}

/* DARK MODE THEME - Elegant Carbon */
[data-theme="dark"] {
    --bg-nav: rgba(5, 5, 10, 0.7);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

a {
    color: var(--india-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--violet-light);
}

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

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    outline: none;
}

/* ─── Apple-Style Utilities & Surfaces ────────────────── */
.glass {
    background: var(--bg-nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
}

.text-gradient {
    background: linear-gradient(135deg, var(--saffron), #FF2D55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium micro-interactions and transitions */
.hover-premium {
    transition: transform var(--transition-spring), box-shadow var(--transition-spring), border-color var(--transition-spring);
}
.hover-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}


/* ─── Navigation ───────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--saffron);
    text-decoration: none;
}

.nav-logo span {
    background: linear-gradient(135deg, var(--saffron), var(--india-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

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

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

.nav-tools-dropdown {
    position: relative;
}

.nav-tools-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-md);
    min-width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    pointer-events: none;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dropdown-item-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dropdown-item-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition-fast);
    border: none;
}

.lang-btn.active {
    background: var(--white);
    color: var(--saffron);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--saffron);
    border-color: var(--saffron);
}

.btn-secondary:hover {
    background: var(--saffron-50);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 166, 81, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.45);
}

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

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: var(--radius-xl);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Tool Cards ───────────────────────────────────────── */
.tool-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--india-blue));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-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: var(--space-md);
    position: relative;
    overflow: hidden;
}

.tool-card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.12;
    background: currentColor;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-card-arrow {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.tool-card:hover .tool-card-arrow {
    background: var(--saffron);
    color: var(--white);
    transform: translateX(4px);
}

/* ─── Drag & Drop Zone ─────────────────────────────────── */
.drag-zone {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--gray-50);
    overflow: hidden;
}

.drag-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.03), rgba(0, 51, 153, 0.03));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.drag-zone:hover,
.drag-zone.drag-over {
    border-color: var(--saffron);
    background: var(--saffron-50);
}

.drag-zone:hover::before,
.drag-zone.drag-over::before {
    opacity: 1;
}

.drag-zone.drag-over {
    border-style: solid;
    transform: scale(1.01);
}

.drag-zone-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
    animation: float 3s ease-in-out infinite;
}

.drag-zone-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.drag-zone-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.drag-zone-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: 10px 24px;
    background: var(--saffron);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
}

.drag-zone-btn:hover {
    background: var(--saffron-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.drag-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ─── Preset Buttons ───────────────────────────────────── */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
}

.preset-btn:hover {
    border-color: var(--saffron);
    background: var(--saffron-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-btn.active {
    border-color: var(--saffron);
    background: var(--saffron-50);
    box-shadow: var(--shadow-glow-saffron);
}

.preset-btn-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.preset-btn-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.preset-btn-specs {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ─── Progress Ring ────────────────────────────────────── */
.progress-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: var(--gray-200);
}

.progress-ring-circle {
    fill: none;
    stroke: var(--saffron);
    stroke-linecap: round;
    transition: stroke-dashoffset var(--transition-slow);
}

.progress-ring-text {
    position: absolute;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ─── Before/After Comparison ──────────────────────────── */
.comparison-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    user-select: none;
}

.comparison-before,
.comparison-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.comparison-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.comparison-reduction {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 12px;
    background: var(--green-50);
    color: var(--green-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ─── Toast Notifications ──────────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + var(--space-md));
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 10000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--info);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    pointer-events: all;
    max-width: 400px;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

/* ─── Modal ────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 9001;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* ─── Trust Badge ──────────────────────────────────────── */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--green-50), #E6F3FF);
    border: 1px solid var(--green);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-dark);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFF5EB 0%, #F0F4FF 50%, #E8FFF0 100%);
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 106, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 51, 153, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(0, 166, 81, 0.05) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
    background-image: 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='%23003399' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--saffron);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--saffron-100);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--saffron), var(--india-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--saffron);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

/* ─── Section Styles ───────────────────────────────────── */
.section {
    padding: var(--space-3xl) 0;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px 14px;
    background: var(--saffron-50);
    color: var(--saffron);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Tool Page Layout ─────────────────────────────────── */
.tool-page {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    min-height: 100vh;
}

.tool-page-header {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--india-blue-50), var(--saffron-50));
    margin-bottom: var(--space-xl);
}

.tool-page-header .section-container {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.tool-page-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.tool-page-title {
    font-size: 1.6rem;
}

.tool-page-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.tool-breadcrumb a {
    color: var(--text-secondary);
}

.tool-breadcrumb a:hover {
    color: var(--saffron);
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-3xl);
}

.tool-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.tool-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tool-panel-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tool-panel-body {
    padding: var(--space-lg);
}

/* ─── Form Controls ────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-label .tooltip-trigger {
    color: var(--text-muted);
    cursor: help;
    font-size: 0.9em;
}

.form-input {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

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

.form-select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23757575' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--saffron);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.3);
    border: 3px solid var(--white);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    display: inline-block;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
    background: var(--saffron);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--saffron);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-india {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-500);
}

/* ─── Animations ───────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 37%, var(--gray-200) 63%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .tool-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    /* Mobile menu */
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: var(--space-lg);
        gap: var(--space-md);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-tools-dropdown .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 1px solid var(--border-color);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        display: none;
    }
    
    .nav-tools-dropdown.active .dropdown-menu {
        display: grid;
    }
    
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--space-xl));
        padding-bottom: var(--space-2xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .preset-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .lang-switcher {
        order: -1;
    }
}

@media (max-width: 480px) {
    .tool-panel-body {
        padding: var(--space-md);
    }
    
    .drag-zone {
        padding: var(--space-xl) var(--space-md);
    }
    
    .preset-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Utility Classes ──────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.hidden { display: none !important; }
.visible { display: block !important; }

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

/* ─── Search Bar ────────────────────────────────────────── */
.search-container {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    position: relative;
}
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: var(--space-md);
    color: var(--text-secondary);
    pointer-events: none;
    width: 20px;
    height: 20px;
}
.search-input-field {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-base);
}
.search-input-field:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.03);
    background: var(--bg-secondary);
}

/* ─── Category Tabs ────────────────────────────────────── */
.homepage-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin: 0 auto var(--space-2xl);
    flex-wrap: wrap;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid var(--border-color);
}
.homepage-tab {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}
.homepage-tab.active {
    background: var(--bg-secondary);
    color: var(--saffron);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.homepage-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* ─── Interactive Mockup Slider ────────────────────────── */
.mockup-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    transition: transform var(--transition-spring), box-shadow var(--transition-spring);
}
.mockup-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}
.mockup-header {
    background: var(--gray-50);
    padding: 10px var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
}
.mockup-dot:nth-child(1) { background: #FF5F56; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27C93F; }
.mockup-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
}
.interactive-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    user-select: none;
    background: #E5E7EB;
}
.before-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.slider-overlay-label {
    position: absolute;
    bottom: var(--space-sm);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.slider-overlay-label.label-before {
    left: var(--space-sm);
}
.slider-overlay-label.label-after {
    right: var(--space-sm);
}
.slider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    left: 50%;
    z-index: 20;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.slider-divider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1D1D1F;
    font-size: 1rem;
    font-weight: bold;
    z-index: 21;
}

/* ─── Print Styles ─────────────────────────────────────── */
@media print {
    .nav, .footer, .toast-container, .nav-hamburger {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .tool-page {
        padding-top: 0;
    }
}
