/* ============================================
   chatride.ai — Dark Marketing Theme
   Siyah + Yeşil renk paleti
   ============================================ */

/* ============================================
   BASE — Dark First
   ============================================ */
body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    background-color: #050a14;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; background-color: #050a14; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -20px) scale(1.05); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%      { box-shadow: 0 0 0 28px rgba(16, 185, 129, 0); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}
@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) rotate(0deg); }
    33%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(30px, -30px) rotate(45deg); }
    66%      { border-radius: 70% 30% 40% 60% / 40% 70% 30% 50%; transform: translate(-20px, 20px) rotate(-30deg); }
}
@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%           { transform: translateY(-4px); opacity: 1; }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes ring-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2); }
    50%      { box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3); }
}

.animate-float       { animation: float 4s ease-in-out infinite; }
.animate-float-slow  { animation: float-slow 8s ease-in-out infinite; }
.animate-pulse-glow  { animation: pulse-glow 2s ease-in-out infinite; }
.animate-pulse-soft  { animation: pulse-soft 3s ease-in-out infinite; }
.animate-blob        { animation: blob 18s ease-in-out infinite; }
.animate-typing      { animation: typing 1.4s ease-in-out infinite; }
.animate-fade-up     { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-gradient    { background-size: 200% 200%; animation: gradient-shift 6s ease infinite; }
.animate-ring-pulse  { animation: ring-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-glow        { animation: glow-pulse 3s ease-in-out infinite; }

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #10b981 40%, #6ee7b7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}
.gradient-text-voice {
    background: linear-gradient(135deg, #F43F5E 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-multi {
    background: linear-gradient(135deg, #10b981 0%, #34d399 30%, #3B82F6 60%, #8B5CF6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

/* ============================================
   SURFACES (Dark Cards)
   ============================================ */
.surface-1 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.surface-2 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.surface-3 {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.surface-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}
.surface-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 12px 32px -8px rgba(16, 185, 129, 0.15);
}

/* ============================================
   GLASS
   ============================================ */
.glass {
    background: rgba(5, 10, 20, 0.65);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-dark { /* alias for legacy markup */
    background: rgba(5, 10, 20, 0.65);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}

/* ============================================
   GLOW SHADOWS
   ============================================ */
.shadow-glow-primary { box-shadow: 0 20px 60px -15px rgba(16, 185, 129, 0.55), 0 4px 12px -4px rgba(16, 185, 129, 0.35); }
.shadow-glow-voice   { box-shadow: 0 20px 60px -15px rgba(244, 63, 94, 0.45),  0 4px 12px -4px rgba(244, 63, 94, 0.25); }
.shadow-card         { box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px -8px rgba(0,0,0,0.5); }
.shadow-card-hover:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 24px 48px -12px rgba(16,185,129,0.18); }

/* ============================================
   MESH GRADIENT (Dark)
   ============================================ */
.bg-mesh {
    background-color: #050a14;
    background-image:
        radial-gradient(at 8% 12%,  rgba(16, 185, 129, 0.20) 0px, transparent 50%),
        radial-gradient(at 92% 18%, rgba(59, 130, 246, 0.13) 0px, transparent 55%),
        radial-gradient(at 25% 88%, rgba(139, 92, 246, 0.12) 0px, transparent 55%),
        radial-gradient(at 85% 82%, rgba(244, 63, 94, 0.10) 0px, transparent 55%),
        radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.06) 0px, transparent 60%);
}
.bg-mesh-dark {
    background-color: #050a14;
    background-image:
        radial-gradient(at 10% 10%, rgba(16, 185, 129, 0.22) 0px, transparent 55%),
        radial-gradient(at 90% 20%, rgba(59, 130, 246, 0.14) 0px, transparent 55%),
        radial-gradient(at 30% 90%, rgba(245, 158, 11, 0.10) 0px, transparent 55%),
        radial-gradient(at 80% 80%, rgba(244, 63, 94, 0.12) 0px, transparent 55%);
}
.bg-page-dark { background-color: #050a14; }
.bg-section-dark { background-color: #0a1322; }

/* ============================================
   DOT GRID
   ============================================ */
.bg-dot-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}
.bg-dot-grid-light { /* alias */
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================
   GRADIENT BORDER
   ============================================ */
.gradient-border {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 1rem;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.1rem;
    padding: 2px;
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   INTERACTIONS
   ============================================ */
.card-lift { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.card-lift:hover { transform: translateY(-6px); }

.icon-ring { position: relative; }
.icon-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid currentColor;
    opacity: 0;
}
.icon-ring:hover::after { animation: ring-pulse 1.2s ease-out; }

/* ============================================
   REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   TYPING DOTS
   ============================================ */
.typing-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; display: inline-block; }
.typing-dot:nth-child(1) { animation: typing 1.4s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation: typing 1.4s ease-in-out 0.2s infinite; }
.typing-dot:nth-child(3) { animation: typing 1.4s ease-in-out 0.4s infinite; }

/* ——— Live chat / voice demo (restoran hero) ——— */
.live-chat-hidden,
.live-voice-hidden {
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    pointer-events: none;
}
.live-chat-visible,
.live-voice-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
[data-live-chat-messages],
[data-live-voice-messages] {
    overflow-anchor: none;
}

/* ——— Voice demo: ses dalgası (yabancı metin yerine) ——— */
.voice-clip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.voice-clip-play {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}
.voice-clip-wave {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 1.5rem;
    min-width: 0;
}
.voice-clip-wave span {
    width: 3px;
    height: 45%;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.45);
    animation: voice-clip-bar 1.1s ease-in-out infinite;
}
.voice-clip-wave span:nth-child(1) { animation-delay: 0.05s; height: 35%; }
.voice-clip-wave span:nth-child(2) { animation-delay: 0.1s; height: 55%; }
.voice-clip-wave span:nth-child(3) { animation-delay: 0.2s; height: 100%; background: #f43f5e; }
.voice-clip-wave span:nth-child(4) { animation-delay: 0.14s; height: 70%; }
.voice-clip-wave span:nth-child(5) { animation-delay: 0.25s; height: 40%; }
.voice-clip-wave span:nth-child(6) { animation-delay: 0.08s; height: 85%; }
.voice-clip-wave span:nth-child(7) { animation-delay: 0.18s; height: 50%; }
.voice-clip-wave--ai span {
    background: rgba(16, 185, 129, 0.4);
}
.voice-clip-wave--ai span:nth-child(3) { background: #34d399; }
.voice-clip-play--ai {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
@keyframes voice-clip-bar {
    0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   SCROLLBAR (Dark)
   ============================================ */
::-webkit-scrollbar       { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050a14; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #10b981, #047857); border-radius: 6px; border: 2px solid #050a14; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #34d399, #10b981); }

/* ============================================
   SELECTION & FOCUS
   ============================================ */
::selection { background: rgba(16, 185, 129, 0.35); color: #ecfdf5; }

a:focus-visible, button:focus-visible, [data-demo-trigger]:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 3px;
    border-radius: 8px;
}

/* ============================================
   LEGAL DOCUMENTS
   ============================================ */
.legal-doc {
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.75;
}
.legal-doc h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    scroll-margin-top: 7rem;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.legal-doc p { margin-bottom: 1rem; }
.legal-doc ul {
    list-style: disc;
    padding-left: 1.35rem;
    margin-bottom: 1rem;
}
.legal-doc li { margin-bottom: 0.35rem; }
.legal-doc a { color: #34d399; text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: #6ee7b7; }
.legal-doc strong { color: #f1f5f9; font-weight: 600; }
.legal-toc a {
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.2s, background 0.2s;
}
.legal-toc a:hover { color: #34d399; background: rgba(16, 185, 129, 0.08); }

/* ============================================
   BLOG
   ============================================ */
.blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.blog-card-link:hover h3 { color: #34d399; }
.blog-filter-btn.is-active {
    background: #10b981;
    color: #050a14;
    font-weight: 700;
    box-shadow: 0 0 24px -4px rgba(16, 185, 129, 0.55);
}
.blog-article {
    color: #cbd5e1;
    font-size: 1.0625rem;
    line-height: 1.8;
}
.blog-article h2 {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    scroll-margin-top: 7rem;
}
.blog-article h3 {
    color: #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.blog-article p { margin-bottom: 1.15rem; }
.blog-article ul, .blog-article ol {
    margin-bottom: 1.15rem;
    padding-left: 1.4rem;
}
.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article a { color: #34d399; text-decoration: underline; text-underline-offset: 2px; }
.blog-article a:hover { color: #6ee7b7; }
.blog-article strong { color: #f1f5f9; font-weight: 600; }
.blog-article blockquote {
    border-left: 3px solid #10b981;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 0 0.75rem 0.75rem 0;
    color: #e2e8f0;
    font-style: italic;
}
.blog-article .blog-tip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}
.blog-article .blog-tip strong { color: #93c5fd; }

/* ============================================
   NAV LINKS
   ============================================ */
.nav-link { color: rgb(203, 213, 225); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-link:hover { color: #34d399; }
.nav-link.is-active { color: #34d399; }
.nav-link.is-active::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #6ee7b7);
    border-radius: 999px;
    margin-top: 4px;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .page-hero { padding-top: 10rem; padding-bottom: 5rem; }
}

/* ============================================
   PRICING COMPARISON (Dark)
   ============================================ */
/* ——— Pricing cards ——— */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.25rem;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card--popular { z-index: 2; overflow: visible; }
.pricing-card--popular:hover { transform: translateY(-8px); }
.pricing-badge-popular {
    position: absolute;
    top: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #064e3b !important;
    -webkit-text-fill-color: #064e3b !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.pricing-badge-popular i {
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
}
.pricing-card__accent { height: 4px; width: 100%; flex-shrink: 0; }
.pricing-card__feature i.fa-check { flex-shrink: 0; width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(16, 185, 129, 0.15); font-size: 0.55rem; }
.pricing-card__feature i.fa-times { flex-shrink: 0; width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(255, 255, 255, 0.04); font-size: 0.55rem; color: #64748b; }

.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; color: #e2e8f0; }
.pricing-table th, .pricing-table td { text-align: center; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pricing-table th:first-child, .pricing-table td:first-child { text-align: left; font-weight: 500; color: #cbd5e1; }
.pricing-table thead th { background: rgba(255, 255, 255, 0.03); font-weight: 700; color: white; }
.pricing-table .check  { color: #34d399; }
.pricing-table .cross  { color: #475569; }
.pricing-table .popular { background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02)); }
.pricing-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ============================================
   FORM INPUTS (Dark)
   ============================================ */
.input-dark, input.input-dark, select.input-dark, textarea.input-dark {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}
select.input-dark {
    color-scheme: dark;
    background-color: #0f172a;
    cursor: pointer;
}
select.input-dark option,
select.input-dark optgroup {
    background-color: #0f172a;
    color: #e2e8f0;
}
.input-dark::placeholder { color: #64748b; }
.input-dark:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }

/* ============================================
   DETAILS (FAQ)
   ============================================ */
details summary::-webkit-details-marker { display: none; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
