/* ==========================================
   Voice Build - Vanilla CSS
   Optimized for Performance
   ========================================== */

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --color-primary: #ff5f1f;
    --color-primary-glow: #ff8f5f;
    --color-dark: #18181b;
    --color-gray-900: #18181b;
    --color-gray-800: #27272a;
    --color-gray-700: #3f3f46;
    --color-gray-600: #52525b;
    --color-gray-500: #71717a;
    --color-gray-400: #a1a1aa;
    --color-gray-300: #d4d4d8;
    --color-gray-200: #e4e4e7;
    --color-gray-100: #f4f4f5;
    --color-gray-50: #fafafa;
    --color-white: #ffffff;
    --color-green: #10b981;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 95, 31, 0.2);

    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 95, 31, 0.2);
    color: var(--color-primary);
}

/* ==========================================
   Typography
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--color-gray-600);
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

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

/* ==========================================
   Layout
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 1.5rem;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    text-align: center;
}

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

.btn-primary:hover {
    background: #e55519;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 2.5rem;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: var(--transition);
}

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

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--color-gray-100);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-900);
    transition: var(--transition);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: var(--color-white);
    padding: 2rem;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-800);
    text-decoration: none;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.mobile-menu-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    .nav-actions .btn {
        display: none;
    }

    .nav-actions .language-selector {
        display: none;
    }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(3px);
    z-index: -2;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.voice-proposal-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    min-width: 150px;
    text-align: center;
}

.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 1rem;
}

.sound-wave span {
    width: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.sound-wave span:nth-child(1) {
    animation-delay: 0s;
    height: 20px;
}

.sound-wave span:nth-child(2) {
    animation-delay: 0.1s;
    height: 32px;
}

.sound-wave span:nth-child(3) {
    animation-delay: 0.2s;
    height: 40px;
}

.sound-wave span:nth-child(4) {
    animation-delay: 0.3s;
    height: 28px;
}

.sound-wave span:nth-child(5) {
    animation-delay: 0.4s;
    height: 24px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.proposal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demo-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.demo-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

/* Mobile optimizations for voice-proposal demo */
@media (max-width: 768px) {
    .voice-proposal-demo {
        gap: 0.75rem;
        position: relative;
        padding: 0 1rem;
    }

    .demo-card {
        padding: 1.5rem 1rem;
        min-width: 130px;
        max-width: 130px;
        flex-shrink: 0;
    }

    .demo-arrow {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        font-size: 2rem;
        background: white;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        margin: 0 -0.5rem;
    }

    .sound-wave {
        height: 30px;
        margin-bottom: 0.75rem;
    }

    .proposal-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .demo-label {
        font-size: 0.8rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.trust-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* ==========================================
   Problem Section
   ========================================== */
.problem-section {
    background: var(--color-gray-50);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==========================================
   Demo Section
   ========================================== */
.demo-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.demo-step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.demo-arrow-right {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .demo-arrow-right {
        display: none;
    }
}

/* ==========================================
   Features Section
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-gray-600);
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials-section {
    background: var(--color-gray-50);
}

.testimonial-wrapper {
    max-width: 700px;
    margin: 3rem auto 0;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.author-name {
    font-weight: 600;
    color: var(--color-gray-900);
}

.author-role {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ==========================================
   Steps Section
   ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step-item {
    text-align: center;
}

.step-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 95, 31, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--color-gray-600);
}

/* ==========================================
   About Section
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--color-white);
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.founder-role {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-content {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-subtitle {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content .section-title,
    .about-subtitle {
        text-align: center;
    }
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
}

.faq-item p {
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--color-primary);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-500);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gray-900);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--color-primary);
}

.contact-text {
    color: var(--color-gray-700);
}

.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   Final CTA Section
   ========================================== */
.final-cta {
    background: var(--color-gray-900);
    color: var(--color-white);
    text-align: center;
    padding: 8rem 1.5rem;
}

.final-cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.final-cta-content p {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    margin-bottom: 2.5rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    padding: 3rem 1.5rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-gray-900);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}