/* ============================================================================
   DreamInt Website Styles - Modern & Clean
   ============================================================================ */

/* CSS Variables */
:root {
    --primary: #5B5FE5;
    --primary-dark: #4B4ED9;
    --primary-light: #7C7FF2;
    --primary-subtle: rgba(91, 95, 229, 0.08);
    --secondary: #10B981;
    --secondary-light: #34D399;
    --accent: #F59E0B;
    --text: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --background: #FFFFFF;
    --surface: #FAFAFA;
    --surface-elevated: #FFFFFF;
    --border: #F0F0F0;
    --border-subtle: #F5F5F5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--surface);
}

.btn-lg { padding: 14px 28px; font-size: 0.9375rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; color: white; }

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 450;
    font-size: 0.9rem;
}

.nav-links a:hover { color: var(--text); }

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

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.lang-btn:hover {
    background: var(--surface);
}

.lang-btn-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
}

.lang-btn svg {
    color: var(--text-muted);
}

.lang-dropdown.open + .lang-btn svg,
.lang-selector:has(.lang-dropdown.open) .lang-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    min-width: 140px;
    overflow: hidden;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lang-option:hover {
    background: var(--surface);
    color: var(--text);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: var(--background);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 440px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 180px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 450;
}

.hero-image { display: flex; justify-content: center; }
.phone-mockup {
    width: 280px;
    height: 580px;
    background: #FAFAFA;
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    border: 8px solid #1F2937;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: #1F2937;
    border-radius: 10px;
    z-index: 10;
}

.app-screen {
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    padding: 36px 12px 12px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phase-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 33%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.question-count {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.timer {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.star-tip { display: none; }
.star-icon { display: none; }
.star-text { display: none; }
.star-arrow { display: none; }

.chat-area {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.msg {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 10px;
    line-height: 1.5;
}

.ai-msg {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.ai-msg .msg-role {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-msg p {
    color: var(--text);
    margin: 0;
}

.user-msg {
    background: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.user-msg p {
    color: white;
    margin: 0;
}

.app-input {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-top: 1px solid var(--border);
}

.input-field {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 9px;
    color: var(--text-muted);
}

.mic-btn {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-buttons {
    display: flex;
    gap: 6px;
    padding: 0 12px 14px;
    background: white;
}

.send-btn {
    flex: 1;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.end-btn {
    flex: 1;
    background: transparent;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--background);
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 56px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: var(--surface-elevated);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--surface);
    scroll-margin-top: 80px;
}

.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 260px;
    max-width: 300px;
    text-align: center;
    padding: 40px 28px;
    background: var(--surface-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.step h3 {
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    flex-shrink: 0;
    padding-top: 60px;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--primary);
    color: white;
    scroll-margin-top: 80px;
    text-align: center;
}

.download h2 {
    margin-bottom: 12px;
    color: white;
}

.download p {
    opacity: 0.85;
    font-size: 1.0625rem;
    margin-bottom: 40px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.store-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.store-button div { text-align: left; }
.store-label {
    display: block;
    font-size: 0.6875rem;
    opacity: 0.85;
    margin-bottom: 1px;
}
.store-name {
    display: block;
    font-size: 1rem;
    font-weight: 500;
}

/* Languages Section */
.languages {
    padding: 64px 0;
    background: var(--surface);
    overflow: hidden;
}

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

.languages .section-subtitle {
    margin-bottom: 40px;
}

.flags-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 0;
}

/* Blur gradient masks on sides */
.flags-wrapper::before,
.flags-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.flags-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}

.flags-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

.flags-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 32px;
    animation: scrollFlags 25s linear infinite;
    width: max-content;
}

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

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 28px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    min-width: 120px;
    flex-shrink: 0;
}

.flag-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.flag-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Pause animation on hover */
.flags-wrapper:hover .flags-track {
    animation-play-state: paused;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    background: var(--background);
    border-top: 1px solid var(--border-subtle);
    color: var(--text);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand { max-width: 320px; padding-top: 20px; }
.footer-logo { height: 72px; width: auto; display: block; margin-bottom: 0; }
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    gap: 56px;
    padding-top: 52px;
}

.footer-column h4 {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.footer-column a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 100px 0 48px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { order: 1; }
    .hero-image { order: 2; }
    .hero-subtitle { margin: 0 auto 28px; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-stats {
        justify-content: center;
        gap: 12px;
        width: 100%;
    }
    .stat {
        min-width: 100%;
        justify-content: flex-start;
    }
    .stat-number { font-size: 1rem; }
    .nav-links a:not(.btn):not(.lang-selector *) { display: none; }
    .nav-links { gap: 12px; }
    .lang-selector { display: block; }
    .footer-content { flex-direction: column; gap: 32px; align-items: center; text-align: center; }
    .languages { padding: 48px 0; }
    .flags-wrapper::before,
    .flags-wrapper::after { width: 60px; }
    .flags-track { gap: 20px; }
    .flag-item { padding: 14px 18px; min-width: 90px; }
    .flag-emoji { font-size: 2rem; }
    .footer-brand { max-width: 100%; padding-top: 0; }
    .footer-brand p { margin-top: 12px; }
    .footer-logo { height: 56px; margin: 0 auto; }
    .footer-links { gap: 40px; padding-top: 0; flex-direction: row; justify-content: center; }
    .footer-column { text-align: center; }
    .footer-column a { margin-bottom: 8px; }
    .features { padding: 56px 0; }
    .how-it-works { padding: 56px 0; }
	    .step-arrow { display: none; }
    .download { padding: 56px 0; }
    .section-subtitle { margin-bottom: 36px; }
    .phone-mockup { width: 240px; height: 500px; }
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: var(--primary);
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
}

.legal-page a:hover { text-decoration: underline; }

/* Delete Account Form */
.delete-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-intro {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.warning-box {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.warning-box strong {
    color: #92400E;
    display: block;
    margin-bottom: 12px;
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.warning-box li {
    color: #92400E;
    margin-bottom: 6px;
}

.delete-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.2s;
}

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

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-danger {
    background: #DC2626;
    color: white !important;
    width: 100%;
}

.btn-danger:hover {
    background: #B91C1C;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

