/*
  Production-Ready Styles for Helpi Landing Page
  - Consider minifying this file for production.
  - For optimal performance, replace Font Awesome CSS with SVG sprites or inline SVGs.
  - Backdrop-filter can be performance-intensive; use with caution or provide fallbacks.
*/

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden; /* Prevent horizontal scrollbars from 100vw sections */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wide { /* Not used in current HTML, but defined */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9); /* Slightly less transparent for initial state */
    backdrop-filter: blur(8px); /* Performance: consider reducing blur or removing if slow */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 60px; /* Example fixed height, adjust as needed */
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg { /* Styles for inline SVG logo icon */
    height: 40px;
    margin-top: -9px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a:not(.nav-cta)::after { /* Exclude CTA button from underline effect */
    content: '';
    position: absolute;
    bottom: 0; /* Adjusted for padding */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

a.cta-button.nav-cta { /* Increased specificity to avoid !important */
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0.65rem 1.25rem; /* Adjusted padding */
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color); /* Added border for definition */
    cursor: pointer;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

a.cta-button.nav-cta:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem; /* Base size, SVG will scale */
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-toggle svg {
    display: block; /* Prevents extra space under SVG */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10rem 0 8rem; /* Increased top padding to account for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%25" cy="50%25" r="50%25"><stop offset="0%25" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%25" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad)"/><circle cx="800" cy="300" r="150" fill="url(%23grad)"/><circle cx="300" cy="700" r="120" fill="url(%23grad)"/><circle cx="700" cy="800" r="80" fill="url(%23grad)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1; /* Ensure it's behind content */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Slightly adjusted max */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem; /* Increased margin */
    opacity: 0.9;
    max-width: 650px; /* Slightly wider */
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

a.btn-primary { /* Increased specificity */
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

a.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px; /* Adjusted for better spacing */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    position: relative; /* For z-index if hero::before overlaps */
    z-index: 2;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.features {
    padding: 3rem 0;
    background: var(--bg-primary);
    position: relative;
    margin-top: 3em;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.02) 0%, transparent 50%),
            linear-gradient(180deg, var(--bg-primary) 0%, #fafbff 100%);
    z-index: 0; /* Behind content */
}

.features .container {
    position: relative;
    z-index: 1;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.2) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem; /* Adjusted margin */
    position: relative;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem); /* Adjusted clamp */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.15rem; /* Adjusted size */
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted minmax */
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.85); /* Slightly more opaque */
    backdrop-filter: blur(8px); /* Performance: consider reducing */
    padding: 2.5rem 2rem;
    border-radius: 1rem; /* Adjusted radius */
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(79, 70, 229, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left; /* Smoother animation */
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px); /* Slightly less movement */
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(79, 70, 229, 0.15);
}

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

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Prevent shrinking if in a flex container */
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem; /* Slightly adjusted */
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #e2e8f0 100%);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-top: 1px solid rgba(79, 70, 229, 0.08);
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.05) 0%, transparent 50%), /* Reduced opacity */
            radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.04) 0%, transparent 50%); /* Reduced opacity */
    z-index: 0;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.steps {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem; /* Adjusted gap */
    position: relative;
}

.step {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Performance: consider reducing */
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step:hover::before {
    transform: scaleX(1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem; /* Adjusted size */
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 1.25rem; /* Adjusted size */
    font-weight: 700;
    margin: 0 auto 1.5rem; /* Adjusted margin */
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25); /* Adjusted shadow */
}

.step-icon {
    font-size: 2.5rem; /* Adjusted size */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem; /* Adjusted margin */
}

.step-title {
    font-size: 1.35rem; /* Adjusted size */
    font-weight: 600;
    margin-bottom: 0.75rem; /* Adjusted margin */
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-features {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
    padding-left: 0; /* Remove default padding */
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem; /* Adjusted size */
}

.step-features i {
    color: var(--success-color);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    border-top: 1px solid rgba(79, 70, 229, 0.08);
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%),
            linear-gradient(180deg, var(--bg-primary) 0%, #fafbff 100%);
    z-index: 0;
}

.pricing .container {
    position: relative;
    z-index: 1;
}

.pricing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.2) 50%, transparent 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted minmax */
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch; /* Make cards equal height if content varies */
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Performance: consider reducing */
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex; /* For equal height button positioning */
    flex-direction: column; /* For equal height button positioning */
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03); /* Slightly less scale */
    box-shadow:
            0 20px 40px -10px rgba(79, 70, 229, 0.2), /* Adjusted shadow */
            0 8px 15px -3px rgba(79, 70, 229, 0.1);
}

.pricing-card:not(.featured):hover { /* Apply hover only to non-featured */
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 70, 229, 0.15);
}

.pricing-card.featured:hover {
    transform: translateY(-4px) scale(1.03); /* Combined transform */
    box-shadow:
            0 25px 50px -12px rgba(79, 70, 229, 0.25),
            0 10px 20px -5px rgba(79, 70, 229, 0.12);
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-price {
    font-size: 2.8rem; /* Adjusted size */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem; /* Adjusted margin */
}

.plan-price-period {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.plan-description {
    color: var(--text-secondary);
    margin: 1.25rem 0; /* Adjusted margin */
    font-size: 0.9rem;
    flex-grow: 1; /* Allow description to push button down if needed */
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0; /* Adjusted margin */
    text-align: left;
    padding-left: 0;
    flex-grow: 2; /* Give more space for features list */
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.plan-features i {
    color: var(--success-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.plan-button {
    width: 100%;
    padding: 0.9rem; /* Adjusted padding */
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-block;
    margin-top: auto; /* Push button to bottom of card */
}

a.plan-button.primary { /* Increased specificity */
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

a.plan-button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

a.plan-button.secondary { /* Increased specificity */
    background: transparent;
    color: var(--primary-color);
}

a.plan-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px -5px rgba(0, 0, 0, 0.1);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%), /* Reduced opacity */
            radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 40%); /* Reduced opacity */
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    max-width: 1000px; /* Adjusted width */
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-section a.btn-primary { /* Increased specificity */
    background: var(--bg-primary);
    color: var(--primary-color);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
}

.cta-section a.btn-primary:hover {
    background: #f8fafc;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Adjusted clamp */
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem; /* Adjusted size */
    opacity: 0.9;
    margin-bottom: 2.5rem; /* Adjusted margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 5rem 0 2.5rem; /* Adjusted padding */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%), /* Reduced opacity */
            radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%); /* Reduced opacity */
    z-index: 0;
}

.footer-content,
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted minmax */
    gap: 2.5rem; /* Adjusted gap */
    margin-bottom: 2.5rem; /* Adjusted margin */
}

.footer-section h3 {
    font-size: 1.15rem; /* Adjusted size */
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex; /* For icon alignment */
    align-items: center; /* For icon alignment */
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white; /* Will be overridden by .footer-bottom a for those specific links */
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.08); /* Slightly adjusted */
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.15); /* Slightly adjusted */
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
    font-size: 0.85rem; /* Adjusted size */
}
.footer-bottom p a { /* Specificity for links in footer bottom */
    color: white;
    opacity: 0.8;
    text-decoration: underline;
}
.footer-bottom p a:hover {
    opacity: 1;
    text-decoration: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Use flex to align SVG icon properly */
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none; /* Initial state for JS toggle */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        z-index: 999; /* Ensure it's above subsequent content but below header */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block; /* Make links full width for easier tapping */
        padding: 0.75rem 0;
    }
    .nav-links a.nav-cta { /* Adjust CTA in mobile menu */
        margin-top: 0.5rem;
        width: auto; /* Don't make it full width */
        display: inline-block; /* Override block from general 'a' */
    }


    .hero {
        padding: 8rem 0 4rem; /* Adjust padding for mobile */
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-buttons a {
        width: 100%;
        max-width: 300px; /* Prevent buttons from being too wide */
        justify-content: center;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .pricing-card.featured {
        transform: none; /* Reset featured card scaling */
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Slightly less movement */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar (WebKit/Blink only) */
/* Consider if this is truly needed, as it's not cross-browser without more CSS */
::-webkit-scrollbar {
    width: 8px; /* Slightly wider */
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox scrollbar styling (optional) */
/*
body {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-tertiary);
}
*/

@media (min-width: 1200px) {
    .display-5 {
        font-size: 2rem !important;
    }
}
/* =========================================
   AUTH PAGES (Login, Signup, Recovery) - v4.0 (Fixed Labels)
   ========================================= */

/* Сброс для body */
body.auth-page-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f0f2f5;
}

/* Фон: Креативный Mesh Gradient */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    background-color: #eef2ff;

    /* Ненавязчивый, стильный фон */
    background-image:
            radial-gradient(at 40% 20%, hsla(252,100%,94%,1) 0px, transparent 50%),
            radial-gradient(at 80% 0%, hsla(189,100%,96%,1) 0px, transparent 50%),
            radial-gradient(at 0% 50%, hsla(341,100%,96%,1) 0px, transparent 50%),
            radial-gradient(at 80% 50%, hsla(268,100%,95%,1) 0px, transparent 50%),
            radial-gradient(at 0% 100%, hsla(252,100%,96%,1) 0px, transparent 50%),
            radial-gradient(at 80% 100%, hsla(188,100%,95%,1) 0px, transparent 50%),
            radial-gradient(at 0% 0%, hsla(343,100%,96%,1) 0px, transparent 50%);
    background-size: cover;
    background-position: center;
}

/* Карточка */
.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.05),
            0 10px 15px -3px rgba(0, 0, 0, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    position: relative;
}

/* Заголовки */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
}

/* Соцсети — 4 равных колонки в один ряд */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-social svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Разделитель */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 12px;
}

/* --- FLOATING LABELS FIX (CRITICAL) --- */
.form-floating {
    position: relative;
    margin-bottom: 16px;
}

.form-floating > .form-control {
    height: 56px;
    line-height: 1.25;
    padding: 1.625rem 0.75rem 0.625rem; /* Смещаем текст вниз */
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    font-size: 15px;
    color: #111827;
    font-weight: 500;
    box-shadow: none !important;
    width: 100%;
}

.form-floating > .form-control:focus {
    border-color: #4f46e5;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

/* Жесткое позиционирование лейбла */
.form-floating > label {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 1rem 0.75rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    border: 1px solid transparent !important;
    transform-origin: 0 0 !important;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out !important;
    color: #6b7280 !important;
    font-size: 15px !important;
    margin-bottom: 0 !important;
    display: block !important;
    opacity: 1;
    background: transparent !important;
}

/* Анимация лейбла при фокусе или наличии текста */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .85 !important;
    transform: scale(.85) translateY(-0.6rem) translateX(0.15rem) !important;
    color: #4f46e5 !important; /* Цвет активного лейбла */
}

/* Ошибки валидации */
.form-control.is-invalid {
    border-color: #ef4444;
    background-image: none !important;
}
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    text-align: left;
}

/* Кнопка отправки */
.btn-auth-submit {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important; /* !important чтобы перебить ховер бутстрапа */
    font-weight: 700;
    font-size: 16px;
    border: none;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff !important;
}

/* Чекбокс */
.custom-auth-check .form-check {
    padding-left: 0;
    min-height: auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
.custom-auth-check .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border-color: #d1d5db;
    margin-top: 0;
    margin-right: 8px;
    float: none;
    cursor: pointer;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.custom-auth-check .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.custom-auth-check label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    padding-top: 2px;
}

/* Ссылки */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.auth-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link:hover {
    color: #3730a3;
    text-decoration: underline;
}
.auth-link.small {
    font-size: 13px;
}

/* Анимация появления */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Specific Social Colors on Hover */
.btn-social.google:hover { border-color: #ea4335; }
.btn-social.yandex:hover { border-color: #fc3f1d; }
.btn-social.vk:hover { border-color: #0077FF; }

/* GitHub Styles */
.btn-social.github svg { fill: #1f2328; transition: fill 0.2s; }
.btn-social.github:hover { border-color: #1f2328; }
.btn-social.github:hover svg { fill: #000; }