@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    color-scheme: light;
    --bg: #f8f4e6;
    --surface: #ffffff;
    --surface-soft: #fcfaf5;
    --text: #111827;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --brand: #facc15;
    --brand-dark: #1f1f1f;
    --brand-soft: rgba(250, 204, 21, 0.15);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.16), transparent 24%), linear-gradient(180deg, #f9f5ec 0%, #eef1f6 100%);
    color: var(--text);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.hidden {
    display: none !important;
}

button, input, select, textarea {
    font: inherit;
}

.icon-flat,
.icon-semiflat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1;
}
.icon-flat { background: #f8fafc; }
.icon-semiflat { background: #eef2ff; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 20px 50px rgba(250, 204, 21, 0.18);
    color: #111827;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #111827 0%, #52525b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-sub {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.button {
    border-radius: 1rem;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.button-primary {
    background: var(--brand);
    color: #111827;
    padding: 0.95rem 1.25rem;
    box-shadow: 0 16px 30px rgba(250, 204, 21, 0.22);
}
.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(250, 204, 21, 0.26);
}

.button-secondary {
    background: #ffffff;
    color: #111827;
    border-color: var(--border);
    padding: 0.85rem 1.15rem;
}
.button-secondary:hover { background: #f8f6ef; }

.button-accent {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    color: #111827;
    padding: 0.95rem 1.3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.card-compact { padding: 1.1rem; border-radius: 1.5rem; }
.card-compact .card-hero { gap: 1rem; }
.card-compact .hero-copy h1 { font-size: 1.8rem; line-height: 1.05; }
.card-compact .hero-copy p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 32rem; line-height: 1.55; }
.card-compact .hero-tag { padding: 0.65rem 0.95rem; font-size: 0.88rem; }
.card-compact .stats-grid { gap: 0.85rem; }
.card-compact .stat { padding: 1rem; border-radius: 1.4rem; }
.card-compact .stat-label { font-size: 0.72rem; letter-spacing: 0.12em; }
.card-compact .stat-value { margin-top: 0.75rem; font-size: 1.55rem; }
.card-compact .stat-note { margin-top: 0.55rem; color: var(--muted); font-size: 0.84rem; }

.card-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 2.75vw, 3.2rem); line-height: 1.05; }
.hero-copy p { margin: 1rem 0 0; color: var(--muted); max-width: 40rem; line-height: 1.75; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.1rem; border-radius: 999px; background: var(--brand-soft); color: #92400e; font-size: 0.92rem; font-weight: 700; border: 1px solid rgba(250, 204, 21, 0.2); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat { background: #fcfaf5; border-radius: 1.5rem; border: 1px solid rgba(15, 23, 42, 0.06); padding: 1.2rem 1.25rem; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stat-value { margin-top: 0.85rem; font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-note { margin-top: 0.65rem; color: var(--muted); font-size: 0.94rem; }

.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-title { margin: 0; font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.section-sub { margin: 0.5rem 0 0; color: var(--muted); line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 1.9rem; padding: 1.7rem; box-shadow: 0 24px 50px rgba(15, 23, 42, 0.05); }
.panel h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.panel p { margin: 0.85rem 0 0; color: var(--muted); line-height: 1.75; }

.input, .textarea, select { width: 100%; border-radius: 1rem; border: 1px solid rgba(15, 23, 42, 0.12); background: #fcfaf5; padding: 1rem 1.1rem; color: var(--text); }
.input:focus, .textarea:focus, select:focus { outline: none; border-color: var(--brand); background: #ffffff; box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.16); }

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar .logo { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.04em; color: var(--text); text-decoration: none; }
.navbar .logo span { color: var(--brand-dark); }
.navbar nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.navbar nav a, .navbar .login { color: var(--muted); text-decoration: none; font-weight: 600; }
.navbar nav a:hover, .navbar .login:hover { color: var(--text); }
.nav-buttons { display: flex; align-items: center; gap: 0.8rem; }

.btn, .outline, .login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn { background: var(--brand); color: #111827; border: none; box-shadow: 0 12px 28px rgba(250, 204, 21, 0.2); }
.btn:hover, .outline:hover, .login:hover { transform: translateY(-1px); }
.outline { background: #ffffff; color: var(--text); border: 1px solid var(--border); }

.hero {
    min-height: calc(100vh - 5rem);
    padding: 3rem 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-text { max-width: 40rem; }
.hero h1 { font-size: clamp(2.2rem, 3.2vw, 3.4rem); line-height: 1.05; margin: 0; }
.hero h1 span { color: #d97706; }
.hero p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hero-buttons { margin-top: 1.5rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.voice-orb {
    width: min(24rem, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fef3c7 0%, #facc15 28%, #d97706 62%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 24px 70px rgba(250, 204, 21, 0.22);
    animation: float 5s infinite ease-in-out;
}
.mic { width: 7.5rem; height: 7.5rem; background: rgba(255,255,255,0.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; box-shadow: inset 0 0 0 1px rgba(17,24,39,0.08); }
.waves { position: absolute; display: flex; gap: 0.4rem; bottom: 3rem; }
.waves span { width: 0.35rem; height: 3rem; background: rgba(255,255,255,0.95); border-radius: 999px; animation: wave 1s infinite alternate; }
.waves span:nth-child(2) { animation-delay: 0.15s; }
.waves span:nth-child(3) { animation-delay: 0.3s; }
.waves span:nth-child(4) { animation-delay: 0.45s; }
.waves span:nth-child(5) { animation-delay: 0.6s; }

.demo, .features, .how, .pricing, .faq { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.demo h2, .features h2, .how h2, .pricing h2, .faq h2 { margin: 0 0 1.2rem; font-size: clamp(1.55rem, 2.2vw, 2rem); }
.phone { max-width: 28rem; margin: 0 auto; background: rgba(255,255,255,0.85); border: 1px solid var(--border); border-radius: 1.75rem; padding: 1.25rem; box-shadow: 0 20px 45px rgba(15,23,42,0.06); }
.status { color: #15803d; font-weight: 700; margin-bottom: 1rem; }
.message { padding: 0.9rem 1rem; border-radius: 1rem; margin: 0.8rem 0; line-height: 1.5; }
.user { background: var(--brand); color: #111827; }
.ai { background: #f8fafc; color: var(--text); }
.wave-animation { color: #d97706; letter-spacing: 0.3em; animation: pulse 1s infinite; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,0.95); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.2rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,0.06); }
.card h3 { margin: 0 0 0.75rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps div { background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.2rem; }
.steps span { font-size: 1.4rem; font-weight: 800; color: #d97706; }

.price-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price { background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.25rem; }
.popular { border-color: rgba(250, 204, 21, 0.6); box-shadow: 0 16px 38px rgba(250, 204, 21, 0.16); }

.faq-item { background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 1.2rem; padding: 1rem 1.15rem; margin-bottom: 0.8rem; }
.faq-item p { margin: 0.45rem 0 0; color: var(--muted); }

footer { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 3rem; text-align: center; color: var(--muted); border-top: 1px solid rgba(15,23,42,0.06); }

.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-box { width: min(100%, 28rem); background: rgba(255,255,255,0.95); border: 1px solid var(--border); border-radius: 2rem; padding: 2rem; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08); text-align: center; }
.auth-box h1 { margin: 0 0 0.7rem; font-size: 1.9rem; }
.auth-box p { margin: 0 0 1.2rem; color: var(--muted); }
.auth-box input { width: 100%; padding: 0.95rem 1rem; margin-bottom: 0.85rem; background: #fcfaf5; border: 1px solid rgba(15,23,42,0.12); border-radius: 1rem; color: var(--text); }
.auth-box button { width: 100%; }
.auth-box button:disabled { opacity: 0.7; cursor: wait; }
.auth-link { margin-top: 1rem; }
.auth-link a { color: #b45309; text-decoration: none; font-weight: 700; }

.call-container { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.call-header h2 { color: var(--brand-dark); font-size: 30px; }
.call-header p { color: var(--muted); }
.ai-avatar { margin: 50px; position: relative; }
.avatar { width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 70px; box-shadow: 0 0 50px rgba(246,192,0,.2); }
.pulse-ring { position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 2px solid var(--brand); animation: pulseRing 2s infinite; }
.wave-container { display:flex; gap:8px; height:80px; align-items:center; margin:30px; }
.bar { width:8px; height:30px; background: var(--brand); border-radius:10px; animation:sound 1s infinite alternate; }
.bar:nth-child(2) { animation-delay:.2s; }
.bar:nth-child(3) { animation-delay:.4s; }
.bar:nth-child(4) { animation-delay:.6s; }
.bar:nth-child(5) { animation-delay:.8s; }
.timer { font-size: 30px; margin: 20px; }
.call-buttons { display:flex; gap:20px; }
.end-btn { background:#ff3b30; color:white; border:none; padding:14px 30px; border-radius:30px; cursor:pointer; font-weight:bold; }

@keyframes wave { from { height: 1.5rem; } to { height: 4rem; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes pulseRing { 50% { transform: scale(1.4); opacity: 0; } }
@keyframes sound { from { height:20px; } to { height:80px; } }

.tts-panel {
    margin-top: 1.1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: var(--surface-soft);
    text-align: left;
}

.tts-panel label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.tts-panel .textarea {
    min-height: 7.2rem;
    resize: vertical;
}

.tts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.tts-actions .btn,
.tts-actions .outline {
    padding: 0.8rem 1rem;
}

.audio-player {
    width: 100%;
    margin-top: 0.85rem;
}

.tts-status {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.tts-status-error {
    color: #b91c1c;
}

@media (max-width: 1024px) {
    .hero { flex-direction: column; align-items: flex-start; }
    .cards, .steps, .price-box { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .navbar { flex-wrap: wrap; gap: 0.75rem; }
    .cards, .steps, .price-box { grid-template-columns: 1fr; }
    .hero { padding-top: 2rem; }
    .tts-actions { flex-direction: column; }
    .tts-actions .btn,
    .tts-actions .outline { width: 100%; }
}

@media (max-width: 480px) {
    .navbar { padding: 0.8rem 0.9rem; }
    .hero, .demo, .features, .how, .pricing, .faq, .dashboard, .container { padding-left: 0.9rem; padding-right: 0.9rem; }
    .nav-buttons { width: 100%; justify-content: space-between; }
    .btn, .outline, .login { padding: 0.7rem 0.9rem; font-size: 0.9rem; }
}
