﻿/* Linkell - NFC Business Card Platform */
/* Bold, Modern Design with Distinctive Aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    /* Color System - Fresh & Lively (Link-in-bio inspired) */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    
    --secondary: #6366F1;
    --secondary-dark: #4F46E5;
    
    --accent: #F97316;
    --warning: #FACC15;
    --danger: #EF4444;
    
    /* Neutrals - Softer, more vibrant contrast */
    --bg-primary: radial-gradient(circle at top, #0F172A 0%, #020617 55%, #020617 100%);
    --bg-secondary: #020617;
    --bg-tertiary: #0B1120;
    
    --text-primary: #F9FAFB;
    --text-secondary: #CBD5F5;
    --text-muted: #6B7280;
    
    --border: #2A2A35;
    --border-light: #3A3A45;
    
    /* Typography */
    --font-display: "Lexend", sans-serif;
    --font-body: "Lexend", sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(255, 51, 102, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: #020617; /* Matches section edges for seamless blend */
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}
header {
    width: 100%;
    background: #020617;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    position: relative;
}

.nav-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-logo {
    height: 90px;
    width: auto;
    transform: translateY(-2px) rotate(-5deg);
}

.nav-brand-name {
    transform: translateY(15px) translateX(-14px);
    color: var(--primary-light);
}

nav .nav-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav .social-links-container .social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

nav .social-links a:nth-child(1) {
    list-style: none;
    height: 50px;
    background-color: var(--text-primary);
    padding: 20px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .social-links a:nth-child(2) {
    list-style: none;
    height: 50px;
    background-color: var(--primary);
    padding: 20px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .social-links a:nth-child(1):hover {
    background-color: var(--text-secondary);
    color: black;
}

nav .social-links a:nth-child(2):hover {
    background-color: var(--primary-dark);
}

/* --- Hamburger toggle (hidden on desktop) --- */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-primary);
    padding: 8px;
    background: transparent;
    border: none;
    line-height: 1;
}

/* === RESPONSIVE NAVBAR (≤ 768px) === */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        flex-wrap: wrap;          /* allow the mobile menu to wrap below */
        padding: 0 12px;
        gap: 0;
    }

    /* Scale logo down on mobile while keeping the same nav height */
    .nav-logo {
        height: 56px;
    }

    .nav-brand-name {
        font-size: 1.4rem;
        transform: translateY(16px);
    }



    /* Move auth buttons to the right of logo on mobile */
    .social-links-container {
        order: 2;
    }

    
    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        background: #020617;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0;
        width: 100%;
    }

    .nav-links ul li {
        width: 100%;
    }

    .nav-links ul li a {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
        color: var(--text-secondary);
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .nav-links ul li a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    /* Keep auth buttons compact on mobile */
    nav .social-links a:nth-child(1),
    nav .social-links a:nth-child(2) {
        height: 42px;
        padding: 0 14px;
        font-size: 0.9rem;
    }
}


/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    list-style: none;
}

/* .nav-toggle styles are handled in the homepage nav block above */

.navbar-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.navbar-menu a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: rgba(30, 30, 38, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 85% 60%, rgba(99, 102, 241, 0.22) 0%, transparent 55%);
    z-index: -1;
}

.hero-title {
    background: linear-gradient(135deg, #FFFFFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* New homepage hero layout */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--spacing-2xl);
    align-items: stretch;
}

.hero-card {
    background: #F9FAFB;
    border-radius: 2.5rem;
    padding: 3rem 3.5rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-left {
    max-width: 640px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 34rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.hero-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.phone-mockup {
    width: 260px;
}

.phone-frame {
    border-radius: 2rem;
    padding: 0.75rem;
    background: linear-gradient(160deg, #111827, #020617);
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    border-radius: 1.5rem;
    padding: 1rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.phone-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.phone-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(148, 163, 184, 0.7);
    font-size: 1.5rem;
}

.phone-name {
    font-weight: 600;
    font-size: 1rem;
}

.phone-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.phone-link {
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Fode-style hero additions */
.hero-price-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.hero-price-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.hero-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #020617;
}

.hero-price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-chef-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--spacing-lg);
}

.hero-chef-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-chef-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #020617;
}

.hero-chef-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-panel {
    position: relative;
    background: #020617;
    border-radius: 2.25rem;
    padding: 2.25rem 2rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.7);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 55%),
                radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.3), transparent 55%);
    opacity: 0.9;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-offer-card {
    margin-top: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.9rem 1rem;
}

.hero-offer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E5E7EB;
    margin-bottom: 0.4rem;
}

.hero-offer-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-offer-icon {
    width: 40px;
    height: 40px;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-offer-info {
    flex: 1;
}

.hero-offer-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-offer-meta {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.hero-offer-price {
    text-align: right;
}

.hero-offer-price-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-offer-price-note {
    display: block;
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Generic section layout */
.section {
    padding: var(--spacing-2xl) 0;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

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

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--accent);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 60px;
        right: var(--spacing-md);
        background: rgba(10, 10, 15, 0.98);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Features Section 2.0 */
.bg.features-section {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    padding-bottom: 0px;
    box-sizing: border-box;
    overflow: hidden;
}

.features-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
    height: auto;
    justify-content: center; /* specific center alignment */
}

/* Left Side - Content List */
.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--spacing-md);
    z-index: 2;
    height: auto;
    max-height: none;
    width: 100%;
}

.feature-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.feature-eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.feature-header .section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem); /* Smaller title */
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.feature-header .section-desc {
    font-size: 1rem; /* Smaller desc */
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced min-width to fit more columns */
    gap: var(--spacing-md);
    width: 100%;
}

.feature-item {
    padding: 1rem; /* Smaller padding */
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    align-items: center; /* Center items vertically */
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-item.active {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}



/* Progress bar inside active item */
.feature-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-item.active .feature-progress-bar {
    opacity: 1;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 40px; /* Smaller icon wrapper */
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-item.active .feature-icon-wrapper {
    background: var(--primary);
    color: black;
    transform: scale(1.1);
}

.feature-text h3 {
    font-size: 1.1rem; /* Smaller text */
    margin-bottom: 0.15rem;
    color: var(--text-primary);
    transition: color 0.3s;
    line-height: 1.2;
}

.feature-item.active .feature-text h3 {
    color: var(--primary-light);
}

.feature-text p {
    font-size: 0.85rem; /* Smaller text */
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-item.active .feature-text p {
    color: var(--text-secondary);
    line-clamp: 3;
    -webkit-line-clamp: 3; /* Expand slightly when active */
}

/* Right Side - Visual */
.feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 80vh; /* Constraint */
}

.feature-image-container {
    width: 100%;
    max-width: 500px; /* Reduced from 600px */
    max-height: 50vh; /* Constraint height */
    aspect-ratio: 4/3;
    position: relative;
    border-radius: 2rem;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img {
    position: absolute;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(10px) brightness(0.8);
    pointer-events: none;
}

.feature-img.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
    z-index: 10;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features-container {
        padding-top: 0; /* Let wrapper handle top padding */
        padding-bottom: var(--spacing-xl);
        height: auto;
    }

    .feature-content {
        order: 2;
        max-height: none;
    }

    .feature-header {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .feature-header .section-desc {
        margin: 0 auto;
    }
}

@media (min-width: 1025px) {
    .feature-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .feature-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-text h3 {
        font-size: 1.1rem;
    }
}

/* =========================================
   STEPS SECTION - V3 (Compact & No-Scroll)
   ========================================= */

/* Main Section Container - Forced 100vh Fit */
.third .bg {
    /* removed conflicting background gradient */
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* STRICTLY NO SCROLL */
    padding: 0;
}

.steps-wrapper {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* Sufficient top padding to clear fixed header, but optimized for space */
    padding-top: 110px; 
    padding-bottom: 2rem;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Grid Layout */
.steps-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Image (Left) | Content (Right) */
    gap: var(--spacing-lg); /* Reduced gap */
    width: 100%;
    height: 100%;
    align-items: center; /* Center Vertically */
    overflow: hidden;
}

/* --- Left Column: Content --- */
.steps-left-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden; /* No scroll */
    order: 2; /* Content on Right for Desktop */
}

.steps-header {
    text-align: left;
    margin-bottom: 1.5rem; /* Reduced */
    flex-shrink: 0;
}

.step-eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.25rem;
}

.step-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0px;
    color: white;
    /* Reset global h2 styles to prevent clipping */
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
}


.step-desc {
    display: none; 
}


.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}

.step-item {
    display: flex;
    align-items: center; 
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-lg);
    transition: background 0.3s ease;
    border: 1px solid transparent; 
    gap: 1rem;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.25rem; /* Much smaller */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    min-width: 1.5rem;
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    color: var(--primary);
    transform: scale(1.1);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.15rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
}

/* --- Right Column: Image --- */
.steps-right-col {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 0; /* Remove padding to maximize space */
    order: 1; /* Image on Left for Desktop */
}

.steps-image-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 60vh; /* Constraint height relative to viewport */
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* --- Responsive & Height Constraints --- */

/* If height is very small (landscape mobile or small laptop), auto-scale */
@media (max-height: 800px) {
    .steps-wrapper {
        padding-top: 85px;
        padding-bottom: 1rem;
    }
    
    .step-title {
        font-size: 2rem;
    }
    
    .steps-list {
        gap: 0.25rem;
    }
    
    .step-item {
        padding: 0.35rem 0.5rem;
    }
    
    /* Hide paragraph text in steps if REALLY compact needed? 
       Let's keep it but 1 line. */
    .step-content p {
        opacity: 0.8;
    }
    
    .steps-image-container {
        max-height: 50vh;
    }
}

/* Mobile / Tablet vertical */
@media (max-width: 1024px) {
    /* Allow scrolling on mobile if content overflows */
    .third .bg {
        overflow-y: auto !important; 
        height: auto;
        min-height: 100vh;
        display: block;
        padding-top: 80px;
    }

    .steps-wrapper {
        padding-top: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        padding-bottom: 4rem;
        display: block; /* Normal block flow */
    }

    .steps-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
        justify-content: flex-start;
    }

    .steps-left-col {
        height: auto;
        width: 100%;
        align-items: center;
        text-align: center;
        overflow: visible;
        display: block;
    }

    .steps-header {
        text-align: center;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .step-item {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        text-align: left; /* Keep item text left-aligned for readability */
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.03);
    }

    /* SHOW IMAGE ON SMALL SCREENS (Requested) */
    .steps-right-col {
        display: flex !important;
        height: auto;
        max-height: 300px; /* Limit height */
        padding: 0;
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
    }
    
    .steps-image-container {
        max-height: 100%;
        width: auto;
        max-width: 80%; /* Don't be too wide */
    }
    
    /* Ensure content fits */
    .steps-list {
        width: 100%;
        max-width: 100%;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .step-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .step-item {
        padding: 0.5rem;
    }
    
    .step-number {
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 0.95rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
}

/* =========================================
   HAMBURGER MENU & RESPONSIVE NAV
   ========================================= */

/* Hide hamburger by default on desktop */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px;
}

@media (max-width: 768px) {
    /* Header layout adjustments for mobile */
    header nav {
        justify-content: space-between;
        padding: 0 5%;
        position: relative;
    }

    /* Show hamburger icon */
    .nav-toggle {
        display: block;
    }

    /* Target the nav-links container specifically */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, 
            rgba(15, 23, 42, 0.98) 0%, 
            rgba(30, 41, 59, 0.95) 100%);
        backdrop-filter: blur(20px) saturate(150%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding: 1.5rem 1rem 2rem;
        z-index: 1000;
        border-bottom: 2px solid rgba(34, 197, 94, 0.3);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* When active */
    .nav-links.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    /* Reset UL */
    .nav-links ul {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        gap: 0.75rem;
        padding: 0;
        list-style: none;
    }

    .nav-links ul li {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
    }
    
    /* Staggered slide-in animation */
    .nav-links.active ul li:nth-child(1) {
        animation: slideInItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
    }
    .nav-links.active ul li:nth-child(2) {
        animation: slideInItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    }
    .nav-links.active ul li:nth-child(3) {
        animation: slideInItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
    }
    
    .nav-links ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border-left: 3px solid transparent;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    /* Shine effect on hover */
    .nav-links ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
        transition: left 0.6s ease;
    }
    
    .nav-links ul li a:hover::before {
        left: 100%;
    }
    
    /* Arrow indicator */
    .nav-links ul li a::after {
        content: '→';
        font-size: 1.3rem;
        color: var(--primary);
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-links ul li a:hover {
        background: linear-gradient(90deg, 
            rgba(34, 197, 94, 0.15) 0%, 
            rgba(34, 197, 94, 0.05) 100%);
        border-left-color: var(--primary);
        border-left-width: 4px;
        transform: translateX(4px);
        box-shadow: 0 2px 16px rgba(34, 197, 94, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding-left: 1.65rem;
    }
    
    .nav-links ul li a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Keep social links (Login/Sign Up) visible */
    .social-links-container {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 10px;
        gap: 8px;
    }

    /* Adjust button sizes for mobile - prevent text wrapping */
    nav .social-links a:nth-child(1),
    nav .social-links a:nth-child(2) {
        margin: 10px 0;
    }
    
    /* Ensure social-links flex container doesn't wrap */
    nav .social-links-container .social-links {
        gap: 8px;
        flex-wrap: nowrap;
    }
}

/* Slide in animation for menu items */
@keyframes slideInItem {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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


/* Linkell Brand Logo */
.logo-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.logo-brand::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71%22/><path d=%22M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71%22/></svg>') no-repeat center;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71%22/><path d=%22M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71%22/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
