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

/* Tablet layout: use mobile nav behavior between 769px–1024px to avoid overlap */
@media (min-width: 769px) and (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        border-radius: 0;
        border: none;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    .nav-menu li {
        margin: 5px 0;
        list-style: none;
        display: block;
    }

    .nav-menu .nav-link {
        display: inline-block;
        padding: 12px 24px;
        margin: 8px 0;
        background: transparent;
        border-radius: var(--radius-md);
        color: var(--text-color);
        font-weight: 500;
        transition: all 0.3s ease;
        text-shadow: none;
        -webkit-text-stroke: none;
        text-decoration: none;
        position: relative;
        width: auto;
    }
}

/* Slightly tighter spacing on medium screens to reduce wrapping */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 16px;
    }
    .nav-link {
        font-size: 0.95rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', sans-serif;
    line-height: 1.6;
    color: #48387F;
    overflow-x: hidden;
}

/* Design tokens - Asistolog color palette */
:root {
    --text-color: #48387F;
    /* main text */
    --text-muted: #6D5FA0;
    /* muted text */
    --background: #F9FAFB;
    /* page background */

    --primary: #875CB0;
    /* primary */
    --primary-600: #6F4C9A;
    /* primary hover */
    --primary-200: #E5D8F2;
    /* subtle bg/border */

    --secondary: #4FAEAA;
    /* secondary */
    --secondary-600: #3E8F8B;
    /* secondary hover */

    --success: #41A2A1;
    /* success */
    --warning: #F59E0B;
    /* warning */
    --warning-600: #D97706;
    /* warning hover */
    --error: #B00020;
    /* error */
    --info: #378A98;
    /* info */

    --surface: #FEFEFE;
    /* cards/surfaces */
    --surface-alt: #F8F9FA;
    /* alt surfaces */
    --border: #E2E8F0;
    /* borders */
    --shadow-rgb: 0, 0, 0;
    /* shadow base */

    /* Border radius system - UX consistent */
    --radius-xs: 4px;
    /* extra small - buttons, inputs */
    --radius-sm: 8px;
    /* small - cards, small elements */
    --radius-md: 12px;
    /* medium - main cards, containers */
    --radius-lg: 16px;
    /* large - hero cards, large containers */
    --radius-xl: 20px;
    /* extra large - sections, major containers */
    --radius-full: 50px;
    /* full - pills, circular elements */
    --radius-circle: 50%;
    /* circle - avatars, icons */
}

body {
    background: var(--background);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 8px;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.8s ease-out;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.navbar-scrolled {
    background: transparent;
    box-shadow: none;
}

.navbar.navbar-scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.navbar.navbar-scrolled .nav-link:hover {
    color: var(--primary);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(135, 92, 176, 0.4);
}

.navbar.navbar-scrolled .nav-link.btn-primary {
    color: #fff;
    text-shadow: none;
}

.navbar.navbar-scrolled .nav-link.btn-primary:hover {
    color: #fff;
    text-shadow: none;
}

.navbar.navbar-scrolled .nav-logo {
    background: rgba(254, 254, 254, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(254, 254, 254, 0.2);
}

.navbar.navbar-scrolled .nav-logo:hover {
    background: rgba(254, 254, 254, 0.2);
    backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(254, 254, 254, 0.3);
}

.navbar.navbar-scrolled .nav-menu {
    border: 1px solid rgba(100, 100, 100, 0.4);
    box-shadow: 0 8px 32px rgba(100, 100, 100, 0.15);
}

.navbar.navbar-scrolled .nav-menu:hover {
    border: 1px solid rgba(135, 92, 176, 0.5);
    box-shadow: 0 12px 40px rgba(135, 92, 176, 0.2);
}

.navbar.navbar-scrolled .lang-dropdown-btn {
    background: rgba(254, 254, 254, 0.1);
    backdrop-filter: blur(20px);
    color: var(--text-color);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 100, 0.4);
    box-shadow: 0 8px 32px rgba(100, 100, 100, 0.15);
}

.navbar.navbar-scrolled .lang-dropdown-btn:hover {
    background: rgba(254, 254, 254, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(135, 92, 176, 0.5);
    color: var(--primary);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(135, 92, 176, 0.4);
    box-shadow: 0 12px 40px rgba(135, 92, 176, 0.2);
}

.navbar.navbar-scrolled .lang-dropdown-menu {
    background: rgba(254, 254, 254, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 100, 100, 0.4);
    box-shadow: 0 8px 32px rgba(100, 100, 100, 0.15);
}

.navbar.navbar-scrolled .lang-option {
    color: var(--text-color);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.navbar.navbar-scrolled .lang-option:hover {
    background: var(--surface-alt);
    color: var(--primary);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(135, 92, 176, 0.4);
}

.navbar.navbar-scrolled .lang-option.active {
    background: var(--primary-200);
    color: var(--primary);
    text-shadow: none;
    -webkit-text-stroke: 0.5px rgba(135, 92, 176, 0.4);
}

.navbar.navbar-scrolled .hamburger {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled .hamburger .bar {
    background: var(--text-color);
}

.navbar.navbar-scrolled .mobile-nav-controls .language-dropdown {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled .mobile-nav-controls .lang-dropdown-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    text-shadow: none;
    -webkit-text-stroke: none;
}

.navbar.navbar-scrolled .mobile-nav-controls .lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(135, 92, 176, 0.3);
    box-shadow: 0 12px 40px rgba(135, 92, 176, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInLeft 1s ease-out 0.1s both;
    position: absolute;
    left: 20px;
    text-decoration: none;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    width: auto;
    height: 32px;
}

.logo-xl {
    width: auto;
    height: 80px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    background: rgba(254, 254, 254, 0.1);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(254, 254, 254, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(254, 254, 254, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(254, 254, 254, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInRight 1s ease-out 0.3s both;
    position: absolute;
    right: 20px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(254, 254, 254, 0.2);
    background: rgba(254, 254, 254, 0.1);
    backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lang-dropdown-btn:hover {
    background: rgba(254, 254, 254, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(254, 254, 254, 0.3);
    color: rgba(255, 255, 255, 1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lang-dropdown-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.active i {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 254, 254, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(254, 254, 254, 0.2);
    border-radius: var(--radius-xs);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
    min-width: 140px;
    white-space: nowrap;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-option:hover {
    background: rgba(254, 254, 254, 0.2);
    color: rgba(255, 255, 255, 1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-option.active {
    background: rgba(135, 92, 176, 0.3);
    color: rgba(255, 255, 255, 1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-option .flag {
    font-size: 21px;
    flex-shrink: 0;
}

.lang-option .lang-name {
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.lang-btn {
    padding: 8px 12px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    line-height: 32px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

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

/* Make nav "Giriş Yap" button behave like primary button */
.nav-link.btn-primary {
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: slideInRight 0.8s ease-out 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-link.btn-primary::after {
    display: none;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--shadow-rgb), 0.2);
}

.mobile-nav-controls {
    display: none;
}

.desktop-only {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(135, 92, 176, 0.1);
}

.navbar.navbar-scrolled .hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(135, 92, 176, 0.3);
    box-shadow: 0 12px 40px rgba(135, 92, 176, 0.2);
}

.bar {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.18s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    text-transform: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.18s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 1px 3px rgba(var(--shadow-rgb), 0.12), 0 1px 2px rgba(var(--shadow-rgb), 0.24);
}

.btn-primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(var(--shadow-rgb), 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.18s cubic-bezier(.4, 0, .2, 1);
}

.btn-secondary:hover {
    background: rgba(79, 174, 170, 0.1);
    color: var(--secondary-600);
    border-color: var(--secondary-600);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 18px rgba(var(--shadow-rgb), 0.12);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn:disabled {
    background: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.26);
    border-color: rgba(0, 0, 0, 0.12);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    background: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.26);
    border-color: rgba(0, 0, 0, 0.12);
    transform: none;
    box-shadow: none;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.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="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: slideInUp 1s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-card {
    background: var(--surface);
    backdrop-filter: none;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 12px 30px rgba(var(--shadow-rgb), 0.12);
    max-width: 380px;
    width: 100%;
    animation: none;
    border: 1px solid var(--border);
    transition: none;
}

.hero-card:hover {
    transform: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.card-avatar img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    object-fit: cover;
}

.card-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

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

.card-status {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    background: var(--success);
    margin-left: auto;
}

.card-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    max-width: 82%;
    position: relative;
    line-height: 1.45;
    font-size: 14px;
}

.message.received {
    background: var(--surface-alt);
    color: var(--text-color);
    align-self: flex-start;
}

.message.received::after {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-right: 6px solid var(--surface-alt);
    border-bottom: 6px solid transparent;
}

.message.sent {
    background: var(--info);
    color: #ffffff;
    align-self: flex-end;
}

.message.sent::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-left: 6px solid var(--info);
    border-bottom: 6px solid transparent;
}

.message .time {
    font-size: 11px;
    opacity: 0.65;
    display: block;
    margin-top: 6px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(135, 92, 176, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(79, 174, 170, 0.03) 0%, transparent 60%);
    animation: float 15s ease-in-out infinite;
}

.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 60% 40%, rgba(135, 92, 176, 0.02) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes movePattern {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(20px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--shadow-rgb), 0.15);
    border-color: var(--primary-200);
}

.feature-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    /* raised to ensure visibility */
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.back-to-top:hover::before {
    left: 100%;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--shadow-rgb), 0.25);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(var(--primary), 0.3);
}

.feature-card:hover .feature-icon::before {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    width: 100%;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom, transparent 0%, transparent 24px, rgba(135, 92, 176, 0.08) 25px, rgba(135, 92, 176, 0.08) 26px, transparent 27px, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 24px, rgba(135, 92, 176, 0.05) 25px, rgba(135, 92, 176, 0.05) 26px, transparent 27px, transparent 100%);
    background-size: 100% 25px, 25px 100%;
    background-position: 0 0, 0 0;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, transparent 0%, transparent 24px, rgba(79, 174, 170, 0.03) 25px, rgba(79, 174, 170, 0.03) 26px, transparent 27px, transparent 100%);
    background-size: 25px 100%;
    background-position: 0 0;
}

.about-content {
    display: grid;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat p {
    color: var(--text-muted);
    font-weight: 500;
}

.about-image {
    margin-top: 40px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(var(--shadow-rgb), 0.1);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::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="b" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="80" fill="url(%23b)"/><circle cx="900" cy="200" r="120" fill="url(%23b)"/><circle cx="500" cy="800" r="100" fill="url(%23b)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    animation: float 15s ease-in-out infinite reverse;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInUp 1s ease-out;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}


.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Process Visual Styles - Hand-drawn effect */
.process-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.8s both;
    position: relative;
    padding: 40px 20px;
    border-radius: var(--radius-xl);
    margin: 20px 0;
}

/* Notebook lines background */
.process-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to bottom, transparent 0%, transparent 24px, rgba(135, 92, 176, 0.08) 25px, rgba(135, 92, 176, 0.08) 26px, transparent 27px, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 24px, rgba(135, 92, 176, 0.05) 25px, rgba(135, 92, 176, 0.05) 26px, transparent 27px, transparent 100%);
    background-size: 100% 25px, 25px 100%;
    background-position: 0 0, 0 0;
    pointer-events: none;
    z-index: 1;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    animation: handDraw 1.5s ease-out;
    animation-fill-mode: both;
}

.process-step:nth-child(1) {
    animation-delay: 0.2s;
}

.process-step:nth-child(3) {
    animation-delay: 0.4s;
}

.process-step:nth-child(5) {
    animation-delay: 0.6s;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hand-drawn circle effect */
.step-circle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed rgba(135, 92, 176, 0.3);
    border-radius: var(--radius-circle);
    animation: handDrawCircle 2s ease-out;
    animation-fill-mode: both;
}

.step-circle::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 1px solid rgba(79, 174, 170, 0.2);
    border-radius: var(--radius-circle);
    animation: handDrawCircle 2.5s ease-out 0.5s;
    animation-fill-mode: both;
}

.step-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(var(--shadow-rgb), 0.2);
}

.process-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
    animation: handDrawArrow 2s ease-out;
    animation-fill-mode: both;
    position: relative;
    z-index: 2;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Hand-drawn animations */
@keyframes handDraw {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(-2deg);
    }

    50% {
        opacity: 0.7;
        transform: translateY(15px) scale(0.9) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes handDrawCircle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes handDrawArrow {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.5);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-10px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes handDrawLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes handDrawText {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    50% {
        opacity: 0.7;
        transform: translateY(5px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hand-drawn text styling */
.process-step h4 {
    font-family: 'Comic Sans MS', sans-serif;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
    animation: handDrawText 1.8s ease-out 0.3s;
    animation-fill-mode: both;
}

.process-step p {
    font-family: 'Comic Sans MS', sans-serif;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.05));
    animation: handDrawText 2s ease-out 0.5s;
    animation-fill-mode: both;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(var(--shadow-rgb), 0.2);
}

/* Advanced Features */
.advanced-features {
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.advanced-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 200px 300px at 23% 30%, rgba(135, 92, 176, 0.45) 0%, transparent 55%) 0% 0%/auto auto no-repeat,
        radial-gradient(ellipse 200px 300px at 27% 30%, rgba(79, 174, 170, 0.38) 0%, transparent 55%),
        radial-gradient(ellipse 300px 500px at 85% 30%, rgba(79, 174, 170, 0.38) 0%, transparent 55%),
        radial-gradient(ellipse 350px 400px at 70% 70%, rgba(135, 92, 176, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse 500px 300px at 30% 80%, rgba(79, 174, 170, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 170px 300px at 50% 50%, rgba(135, 92, 176, 0.22) 0%, transparent 55%);
    animation: gentle-pulse 8s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.advanced-features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    animation: float 22s ease-in-out infinite reverse;
}

/* Make advanced-features visually distinct from primary features */
.advanced-features .features-grid {
    position: relative;
    grid-template-columns: 1fr;
    gap: 24px;
    z-index: 1;
}

.advanced-features .feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(128, 128, 128, 0.4);
    box-shadow: none;
    text-align: left;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advanced-features .feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(128, 128, 128, 0.6);
    transform: translateY(-2px);
}

.advanced-features .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-circle);
    margin: 0;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    flex: 0 0 64px;
}

.advanced-features .feature-card h3 {
    margin-bottom: 8px;
}

.advanced-features .feature-card p {
    margin: 0;
}

/* Alternating (left-right) timeline layout on large screens */
@media (min-width: 992px) {
    .advanced-features .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 40px;
    }

    .advanced-features .features-grid::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background: var(--primary-200);
        transform: translateX(-1px);
    }

    .advanced-features .feature-card {
        max-width: 100%;
    }

    .advanced-features .feature-card:nth-child(odd) {
        grid-column: 1 / 2;
        margin-left: auto;
    }

    .advanced-features .feature-card:nth-child(even) {
        grid-column: 2 / 3;
        margin-right: auto;
    }

    .advanced-features .feature-card::after {
        content: '';
        position: absolute;
        top: 32px;
        width: 12px;
        height: 12px;
        background: var(--surface);
        border: 3px solid var(--primary);
        border-radius: var(--radius-circle);
        z-index: 1;
    }

    .advanced-features .feature-card:nth-child(odd)::after {
        right: -36px;
    }

    .advanced-features .feature-card:nth-child(even)::after {
        left: -36px;
    }
}

/* Benefits Section */
.benefits {
    background: var(--surface);
}

.benefits-list {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.benefit-item i {
    color: var(--success);
    font-size: 20px;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.1);
    position: relative;
    overflow: hidden;
    transition: none;
    /* disabled animations */
    animation: none;
    /* disabled entry animation */
}

.testimonial-card::before {
    content: none;
    /* disable gradient overlay */
}

.testimonial-card:hover {
    transform: none;
    /* no hover lift */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* keep base shadow */
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-content:last-child {
    margin-bottom: 0;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-muted);
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    top: -10px;
    left: -20px;
    opacity: 0.3;
    font-family: 'Comic Sans MS', sans-serif;
}

.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    bottom: -20px;
    right: -10px;
    opacity: 0.3;
    font-family: 'Comic Sans MS', sans-serif;
}

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

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(79, 174, 170, 0.02) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(135, 92, 176, 0.02) 0%, transparent 70%);
    animation: float 18s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(79, 174, 170, 0.015) 0%, transparent 80%);
    animation: float 25s ease-in-out infinite reverse;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-muted);
}

.contact-form {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Comic Sans MS', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2d3748;
    color: white;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo {
        left: 15px;
    }

    .nav-actions {
        right: 15px;
    }

    /* Use mobile language control on tablets to avoid overlap */
    .desktop-only {
        display: none;
    }
    .mobile-nav-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .mobile-nav-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .desktop-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        border-radius: 0;
        border: none;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-actions {
        display: none;
    }

    .language-switcher {
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    .nav-actions.active {
        left: 0;
    }

    .nav-actions .language-dropdown {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .nav-actions .lang-dropdown-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-actions .lang-dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    .nav-logo {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 8px 16px;
        border-radius: var(--radius-full);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: absolute;
        left: 20px;
        transform: translateY(-50%);
        margin: 0;
        width: fit-content;
    }

    .nav-menu li {
        margin: 5px 0;
        list-style: none;
        display: block;
    }

    .nav-menu .nav-link {
        display: inline-block;
        padding: 12px 24px;
        margin: 8px 0;
        background: transparent;
        border-radius: var(--radius-md);
        color: var(--text-color);
        font-weight: 500;
        transition: all 0.3s ease;
        text-shadow: none;
        -webkit-text-stroke: none;
        text-decoration: none;
        position: relative;
        width: auto;
    }

    .nav-menu .nav-link:hover {
        background: rgba(135, 92, 176, 0.1);
        color: var(--primary);
        transform: none;
        box-shadow: none;
    }

    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-menu .nav-link:hover::after {
        width: 60%;
    }

    .nav-menu .nav-link.btn-primary {
        background: var(--primary);
        color: white;
        border: none;
        width: auto;
        margin: 8px auto;
        display: block;
        max-width: 200px;
    }

    .nav-menu .nav-link.btn-primary:hover {
        background: var(--primary-600);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(135, 92, 176, 0.4);
    }

    .nav-menu .nav-link.btn-primary::after {
        display: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .features {
        padding: 80px 0;
    }

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

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-visual {
        flex-direction: column;
        gap: 30px;
        padding: 30px 15px;
    }

    .process-arrow {
        transform: none;
        font-size: 0;
        line-height: 1;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Footer logo: center and XL on mobile */
    .footer-logo {
        justify-content: center;
    }

    .footer-logo .logo {
        height: 80px;
    }

    .social-links {
        justify-content: center;
    }

    /* Advanced features: improve mobile layout */
    .advanced-features .features-grid {
        gap: 16px;
    }

    .advanced-features .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .advanced-features .feature-icon {
        margin: 0 0 12px 0;
        flex: 0 0 auto;
    }

    .advanced-features .feature-card h3 {
        font-size: 1.25rem;
    }

    .advanced-features .feature-card p {
        font-size: 0.975rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .hero-card {
        max-width: 100%;
        transform: translateX(0);
        transition: transform 0.1s ease-out;
        will-change: transform;
    }

    .hero-card.parallax-left {
        transform: translateX(-15px) rotate(-1deg);
    }

    .hero-card.parallax-right {
        transform: translateX(15px) rotate(1deg);
    }

    .about-content {
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px;
    }
}

/* Additional Modern Animations */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 10px;
        height: 60px;
    }

    .nav-logo {
        left: 10px;
        padding: 8px 16px;
    }

    .nav-actions {
        right: 10px;
        gap: 10px;
    }

    .mobile-nav-controls {
        right: 10px;
        gap: 10px;
    }

    .hamburger {
        padding: 6px;
    }

    .hamburger .bar {
        width: 20px;
        height: 2px;
    }

    .nav-logo {
        padding: 6px 12px;
        margin: 8px auto;
    }

    .lang-dropdown-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
    }

    .lang-dropdown-menu {
        min-width: 120px;
    }

    .lang-option {
        padding: 8px 10px;
        font-size: 12px;
    }

    .lang-option .flag {
        font-size: 16px;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .features {
        padding: 60px 0;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .about {
        padding: 60px 0;
    }

    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .process-visual {
        padding: 20px 10px;
        gap: 20px;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .process-step h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .process-step p {
        font-size: 0.85rem;
    }

    .cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-form {
        padding: 25px 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .hero-card {
        padding: 15px;
    }

    .card-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .card-avatar img {
        width: 40px;
        height: 40px;
    }

    .card-info h4 {
        font-size: 13px;
    }

    .card-info p {
        font-size: 11px;
    }

    .message {
        padding: 8px 10px;
        font-size: 12px;
    }

    .testimonial-card {
        padding: 15px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .testimonial-content p::before,
    .testimonial-content p::after {
        font-size: 2rem;
    }

    .author-info h4 {
        font-size: 0.9rem;
    }

    .author-info span {
        font-size: 0.8rem;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 5px;
        height: 55px;
    }

    .nav-logo {
        left: 5px;
        padding: 6px 12px;
    }

    .nav-actions {
        right: 5px;
        gap: 8px;
    }

    .mobile-nav-controls {
        right: 5px;
        gap: 8px;
    }

    .hamburger {
        padding: 4px;
    }

    .hamburger .bar {
        width: 18px;
        height: 2px;
    }

    .nav-logo {
        padding: 4px 10px;
        margin: 6px auto;
    }

    .lang-dropdown-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 45px;
    }

    .lang-dropdown-menu {
        min-width: 100px;
    }

    .lang-option {
        padding: 6px 8px;
        font-size: 11px;
    }

    .lang-option .flag {
        font-size: 14px;
    }

    .hero {
        padding: 70px 0 30px;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 0.9rem;
    }

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

    .btn-large {
        padding: 12px 20px;
        font-size: 13px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .features {
        padding: 50px 0;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .about {
        padding: 50px 0;
    }

    .about-text h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .process-visual {
        padding: 15px 5px;
        gap: 15px;
    }

    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .process-step h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .process-step p {
        font-size: 0.8rem;
    }

    .cta {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-form {
        padding: 20px 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .footer {
        padding: 30px 0 10px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .hero-card {
        padding: 12px;
    }

    .card-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .card-avatar img {
        width: 35px;
        height: 35px;
    }

    .card-info h4 {
        font-size: 12px;
    }

    .card-info p {
        font-size: 10px;
    }

    .message {
        padding: 6px 8px;
        font-size: 11px;
    }

    .testimonial-card {
        padding: 12px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .testimonial-content p::before,
    .testimonial-content p::after {
        font-size: 1.5rem;
    }

    .author-info h4 {
        font-size: 0.8rem;
    }

    .author-info span {
        font-size: 0.7rem;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: none;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* High-contrast Demo button on purple backgrounds */
.hero .btn-secondary,
.cta .btn-secondary {
    background: var(--warning);
    color: #111827;
    border-color: var(--warning);
}

.hero .btn-secondary:hover,
.cta .btn-secondary:hover {
    background: var(--warning-600);
    color: #0b0f1a;
    border-color: var(--warning-600);
}

/* Ensure icon color inside stays readable */
.hero .btn-secondary i,
.cta .btn-secondary i {
    color: #111827;
}

/* Waitlist section (reuses cta base) */
#waitlist.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}
#waitlist .cta-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
#waitlist .waitlist-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-top: 20px;
}
#waitlist .waitlist-form .form-group {
    margin: 0;
}
#waitlist input[type="text"],
#waitlist input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
}
#waitlist .btn.btn-primary {
    padding: 14px 22px;
    border-radius: 10px;
}
@media (max-width: 768px) {
    #waitlist .waitlist-form {
        grid-template-columns: 1fr;
    }
}