/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F4;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --blue: #ADD8E6;
    --pink: #FFB6C1;
    
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-serif: 'Editorial New', 'Georgia', serif;
    
    --container: 960px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--black);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    z-index: 1100;
}
.skip-link:focus {
    top: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
}

.nav-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.6;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-menu a {
    font-size: 0.9375rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--black);
}

/* Hero */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 4.5rem 2rem 2rem;
}

.hero-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0 1.5rem;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero-line {
    display: block;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-600);
    margin-bottom: 1.75rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
}

/* Add speech bubble tail to primary button */
.button-primary::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--black);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button-primary:hover::after {
    opacity: 1;
}

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

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.button-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gray-300);
}

.button-secondary:hover {
    border-color: var(--black);
    transform: translateY(-2px);
}

.device-frame {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.device-screen {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Features */
.features {
    padding: 2.5rem 2rem;
    background: var(--white);
}

.features-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    margin-top: -0.75rem;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-main.reverse {
    direction: rtl;
}

.feature-main.reverse .feature-content {
    direction: ltr;
}

.feature-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.feature-animation lottie-player {
    width: 100%;
    max-width: 200px;
    height: auto;
    min-height: 200px;
    display: block;
    background: var(--gray-50);
    border-radius: 12px;
}

.feature-animation lottie-player[src] {
    background: transparent;
}

.feature-content {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.feature-main:nth-child(odd) .feature-badge {
    background: var(--blue);
    color: var(--gray-700);
}

.feature-main:nth-child(even) .feature-badge {
    background: var(--pink);
    color: var(--gray-700);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.feature-description {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--gray-600);
}

/* Stats Section */
.stats {
    padding: 2rem;
    background: var(--gray-50);
}

.stats-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 0 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.02em;
}

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

/* Personas - removed */
.personas {
    padding: 8rem 2rem;
    background: var(--white);
}

.personas-wrapper {
    max-width: var(--container);
    margin: 0 auto;
}

/* Chat bubble showcase */
.personas-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.chat-bubble-left,
.chat-bubble-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.chat-bubble-left {
    align-items: flex-start;
}

.chat-bubble-right {
    align-items: flex-end;
}

.bubble-content {
    max-width: 70%;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.chat-bubble-left .bubble-content {
    border-bottom-left-radius: 4px;
}

.chat-bubble-right .bubble-content {
    border-bottom-right-radius: 4px;
}

.bubble-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.persona-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.persona-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Hover effects */
.chat-bubble-left:hover .bubble-content,
.chat-bubble-right:hover .bubble-content {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.personas-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-top: 2rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 2rem;
    background: var(--white);
}

.testimonials-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-200);
}

/* Highlight best testimonials */
.testimonial-card:nth-child(1),
.testimonial-card:nth-child(2) {
    border-left: 3px solid var(--blue);
}

.testimonial-card:nth-child(3),
.testimonial-card:nth-child(4) {
    border-left: 3px solid var(--pink);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--gray-700);
    font-style: italic;
}

/* Star rating */
.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.star {
    color: #FFC107;
    font-size: 0.875rem;
}

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

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    background: var(--gray-100);
    color: var(--gray-600);
}

.testimonial-author span {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Philosophy */
.philosophy {
    padding: 2.5rem 1.5rem;
    background: linear-gradient(to bottom, var(--white), var(--gray-50));
}

.philosophy-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

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

.philosophy-card {
    text-align: left;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
}

.philosophy-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-family: 'Editorial New', serif;
}

.philosophy-card p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
}

/* Privacy */
.privacy {
    padding: 2.5rem 2rem;
    background: var(--black);
    color: var(--white);
}

.privacy-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.privacy-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--white);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

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

.privacy-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--gray-400);
    transition: var(--transition);
}

.privacy-item:hover .privacy-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.privacy-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.privacy-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-400);
}

/* Download */
.download {
    padding: 2.5rem 2rem;
    background: var(--white);
}

.download-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.download-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-badge {
    height: 56px;
    width: auto;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--gray-100);
}

.footer-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .feature-main,
    .feature-main.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .feature-animation {
        padding: 1rem;
    }
    
    .feature-title {
        font-size: 2rem;
    }
    
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.875rem;
    }
    
    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .personas-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

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

/* Smooth scroll offset */
html {
    scroll-padding-top: 80px;
}

/* Selection */
::selection {
    background: var(--black);
    color: var(--white);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}
