@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

/* Reset and Base Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(180deg, #050811 0%, #1e293b 100%);
    --accent-glow: 0 0 50px rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-dark: #0a0c10;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --section-px: clamp(1rem, 5vw, 12rem);
    --section-py: clamp(3rem, 8vw, 15rem);
    --radius-3xl: clamp(1.5rem, 4vw, 3rem);

    /* Responsive Spacing */
    --container-gap: clamp(1.5rem, 4vw, 3rem);
    --header-mb: clamp(2rem, 5vw, 4rem);
}

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

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

@keyframes float-ui {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

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

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
        filter: blur(40px);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
        filter: blur(35px);
    }
}

@keyframes rotate-bg {
    from {
        transform: rotate(0deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1.1);
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--dark-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.three-d-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    perspective: 1000px;
    background: var(--bg-dark);
}

.bg-texture {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    filter: blur(40px);
    will-change: transform;
    animation: rotate-bg 60s linear infinite;
}

/* Nav V2 */
.navbar-v2 {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    width: min(1200px, 92%);
}


.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 12, 16, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-portal-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff !important;
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.nav-portal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}


/* Premium Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1101;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Toggle Animation States */
.nav-mobile-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 8rem 2.5rem 4rem;
    clip-path: circle(0% at 90% 50px);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
    overflow-y: auto;
}

.mobile-menu.active {
    clip-path: circle(150% at 90% 50px);
    pointer-events: all;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.mobile-menu-links a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-links a.active-link {
    color: var(--primary-gradient-hover);
}

/* User Section Links */
#mobileUserSection {
    display: none;
    /* Shown by JS */
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mobile-profile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.mobile-profile-toggle span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.mobile-profile-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-profile-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 0;
    margin-top: 0.5rem;
    align-items: center;
    text-align: center;
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu a {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.mobile-submenu a:hover {
    color: #fff !important;
}

.mobile-logout-link {
    color: #f87171 !important;
}

.portal-link {
    margin-top: 0.5rem;
    color: var(--primary-gradient-hover) !important;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    background: linear-gradient(to right,
            #ffffff 20%,
            #a855f7 40%,
            #6366f1 60%,
            #ffffff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    position: relative;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.5));
}

.container {
    width: 95%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.5rem, 5vw, 4rem);
    position: relative;
    border: 1px solid var(--glass-border);
    margin: 1.5rem auto;
    box-sizing: border-box;
}

/* Header & Clock */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 500;
}

.clock-display {
    text-align: right;
}

.clock-time {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #334155;
    line-height: 1;
}

.clock-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.status-indicator,
.mic-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem clamp(0.75rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    font-weight: 600;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    color: #ffffff;
    white-space: nowrap;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.status-indicator.connected {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.status-indicator.connected .status-dot.connected {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.status-indicator.connecting {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.status-indicator.recording {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.mic-status {
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mic-status.mic-on {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.mic-dot {
    position: relative;
    flex-shrink: 0;
}

.mic-dot.on::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    opacity: 0.4;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    background: inherit;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    opacity: 0.4;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    background: inherit;
}

.status-dot.disconnected {
    background: var(--text-secondary);
    animation: none;
}

.status-dot.disconnected::after {
    animation: none;
}

.status-dot.connecting {
    background: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.status-dot.connected {
    background: var(--success);
}

.status-dot.recording {
    background: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.status-dot.error {
    background: var(--danger);
    animation: none;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

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

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: white;
}

.btn-submit {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.6);
}

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

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

/* Language Selection */
.language-selection {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.language-dropdown {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: white;
    min-width: 250px;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.language-dropdown:focus {
    outline: none;
    border-color: #6366f1;
}

select {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

select option {
    background-color: #1e293b;
    color: #ffffff;
}

/* Transcript & Translation Boxes */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transcript-box,
.translation-box,
.original-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.translation-box {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border: 2px solid #e2e8f0;
}

.placeholder {
    margin: auto;
    color: #94a3b8;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Transcript Items Styling */
.transcript-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.5s ease;
    border-left: 4px solid transparent;
}

/* Most recent final transcript - Emphasized */
.transcript-item.final-latest {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
    border-left-color: #6366f1;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.15rem;
    transform: scale(1.02);
    transform-origin: left center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Older transcripts - Faded */
.transcript-item.final-old {
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 400;
}

/* Interim text */
.transcript-item.interim {
    color: #6366f1;
    font-style: italic;
    opacity: 0.7;
    animation: pulse-text 2s infinite;
}

.translation-final {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #a855f7;
    font-size: 1.1rem;
}

@keyframes pulse-text {
    50% {
        opacity: 0.4;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Info Section */
.info-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.info-section h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-section ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Landing Page Architecture */
.landing-page {
    width: 100%;
    margin-top: 80px;
    /* offset for fixed nav */
}

.section {
    padding: var(--section-py) var(--section-px);
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 4rem;
}

/* Feature Grid (legacy) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 80vw, 350px), 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
    border-color: #6366f1;
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Vision Section V2 */
.vision-section {
    text-align: center;
}

.vision-header {
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.vision-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 100px;
    color: #6366f1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: rgba(99, 102, 241, 0.07);
    margin-bottom: 2rem;
}

.vision-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.vision-title-accent {
    background: linear-gradient(135deg, #a855f7, #6366f1, #f5576c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Feature Cards V2 */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 80vw, 340px), 1fr));
    gap: 1.5rem;
    position: relative;
}

.feature-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 2.5rem);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.2);
}

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

.card-featured {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.05);
}

.card-featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    background: rgba(168, 85, 247, 0.08);
}

.card-number {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.card-icon-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.feature-card-v2:hover .card-icon-glow {
    opacity: 1;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
    width: 100%;
    font-weight: 500;
}

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-unit {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #6366f1;
    margin-right: 4px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Language Wall */
.language-wall {
    background: rgba(255, 255, 255, 0.02);
    padding: 6rem var(--section-px);
    text-align: center;
}

.lang-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.lang-chip {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.lang-chip:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.05);
}

/* CTA Footer Section */
.footer-cta {
    text-align: center;
    padding: var(--section-py) var(--section-px);
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1), transparent 70%);
}

.footer-cta h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

.sandbox-link {
    display: inline-block;
    margin-top: 4rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.sandbox-link:hover {
    opacity: 1;
}

/* Common Buttons */
.btn-large {
    padding: 1.5rem 3.5rem;
    font-size: 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.6);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    :root {
        --section-px: 5vw;
        --section-py: clamp(4rem, 8vw, 10rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .status-row,
    .status-bar {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
        text-align: center;
    }

    .status-indicator,
    .mic-status {
        width: 100%;
        justify-content: center;
    }

    .controls {
        grid-template-columns: 1fr !important;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .clock-display {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        width: 92%;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-submit {
        padding: 1.25rem;
        font-size: 0.85rem;
    }

    .last-translation-box {
        padding: 1.5rem !important;
    }

    .translation-text {
        font-size: 1.5rem !important;
    }
}

/* Pulse animation for listening state */
.pulse-animation {
    animation: pulse-text 1.5s infinite;
    color: #6366f1;
    font-weight: 500;
}

/* ===== Stats Section V2 ===== */
.stats-section-v2 {
    text-align: center;
}

.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 80vw, 320px), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card-v2 {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 2.5rem);
    text-align: left;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.stat-card-v2:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.15);
}

.stat-card-highlight {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.04);
}

.stat-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1.5rem 1.5rem 0 0;
}

.stat-big {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.stat-accent {
    font-size: 0.55em;
    font-weight: 700;
    margin-left: 3px;
}

.stat-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.stat-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Pricing Section V2 ===== */
.pricing-section-v2 {
    text-align: center;
}

.pricing-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 90vw, 420px), 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card-v2 {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 2.5rem);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.15);
}

.pricing-card-featured {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.pricing-card-featured:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 30px 60px -15px rgba(168, 85, 247, 0.2);
}

.pricing-recommended {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.pricing-tier {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-check {
    color: #6366f1;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-top: auto;
}

.pricing-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: transparent;
}

.pricing-btn-outline:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
}

.pricing-btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45);
    color: #fff;
}

/* ===== Footer V2 ===== */
.footer-v2 {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4rem;
    padding: 5rem var(--section-px) 3rem;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.03));
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    gap: 5rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    max-width: 240px;
}

.footer-links-grid {
    display: flex;
    gap: clamp(2rem, 5vw, 5rem);
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 110px;
}

.footer-col-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
}

.footer-dev-link {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.25s ease;
}

.footer-dev-link:hover {
    color: rgba(99, 102, 241, 0.7);
}

@media (max-width: 768px) {
    .navbar-v2 {
        width: min(1200px, 96%);
    }

    .navbar-inner {
        border-radius: 1.5rem;
        padding: 1rem 1.2rem;
        position: relative;
    }


    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand {
        max-width: 100%;
    }
}

/* Mobile: page content centered and equal padding */
@media (max-width: 768px) {
    main {
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .section,
    .vision-page-hero,
    .tech-hero,
    .pricing-hero,
    .mission-section,
    .principles-section,
    .tech-section,
    .pricing-section,
    [class*="-section"] {
        padding-left: clamp(1rem, 5vw, 2rem) !important;
        padding-right: clamp(1rem, 5vw, 2rem) !important;
        box-sizing: border-box;
    }

    .vision-page-hero::before,
    .tech-hero::before,
    .pricing-hero::before {
        width: 100vw !important;
        max-width: 100vw;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .mission-inner,
    .vision-header,
    .tech-content,
    .pricing-cards,
    .principles-grid,
    .pipeline-section,
    .arch-section,
    .models-section,
    .compare-section,
    .faq-section {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .vh-sub,
    .tech-hero-sub,
    .pricing-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Smart Checkout Modal Styles */
.smart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.smart-modal-content {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.smart-modal-overlay.active .smart-modal-content {
    transform: scale(1) translateY(0);
}

.sm-icon {
    width: 64px;
    height: 64px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.sm-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.sm-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.sm-highlight {
    color: #a855f7;
    font-weight: 600;
}

.sm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sm-btn {
    padding: 1rem;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.sm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sm-btn-confirm {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.sm-btn-confirm:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.sm-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Premium User Profile component */
.user-profile-nav {
    display: none;
    /* Hidden by default, shown by JS */
    position: relative;
    align-items: center;
    gap: 12px;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 4px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.profile-info-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-email-mini {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-plan-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--primary-gradient);
    color: #fff;
    margin-top: 2px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.profile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.dropdown-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.dropdown-plan-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(4px);
}

.dropdown-link.logout {
    color: #f87171;
    margin-top: 8px;
}

.dropdown-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}