/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Noto Sans Hebrew", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: hsl(222 47% 11%);
    background: hsl(0 0% 100%);
}

:root {
    --bg: 0 0% 100%;
    --fg: 222 47% 11%;
    --muted: 220 14% 96%;
    --muted-foreground: 215 16% 47%;
    --border: 220 13% 91%;
    --card: 0 0% 100%;
    /* Match mobile-app/theme primary palette (#1473c4 / #4281b8) */
    --primary: 208 81% 42%;
    --primary-foreground: 0 0% 100%;

    --hero-bg: 223 47% 6%;
    --hero-text: 0 0% 100%;
    --hero-muted: 220 9% 70%;
    --hero-accent: 208 90% 62%;

    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,.10);
}

/* Utilities */
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.text-gradient-gold {
    background: linear-gradient(135deg, hsl(208 90% 66%) 0%, hsl(208 81% 50%) 40%, hsl(215 90% 62%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bg-hero { background: radial-gradient(1200px 600px at 50% 30%, rgba(20, 115, 196, 0.18) 0%, rgba(20, 115, 196, 0.10) 25%, rgba(11, 16, 28, 1) 70%), linear-gradient(180deg, rgba(11, 16, 28, 1) 0%, rgba(9, 12, 20, 1) 100%); }
.hero-text { color: hsl(var(--hero-text)); }
.hero-muted { color: hsla(0,0%,100%,.72); }
.text-hero-accent { color: hsl(var(--hero-accent)); }
.text-primary { color: hsl(var(--primary)); }

/* Icon sizing (lucide) */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }

/* Hero glow */
.glow-orb {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 999px;
    background: rgba(20, 115, 196, 0.10);
    filter: blur(70px);
    pointer-events: none;
}

/* Nav */
.nav-hero {
    position: relative;
    z-index: 10;
    max-width: 1152px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: "Crimson Text", serif; font-weight: 700; font-size: 22px; letter-spacing: .2px; }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(20, 115, 196, 0.22);
    box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px; /* keep border size; shrink icon */
    background-image: url("./favicon.png");
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-clip: content-box;
    background-size: contain;
}
.brand-mark-sm { width: 28px; height: 28px; border-radius: 9px; padding: 5px; }
.brand-mark::before {
    content: "";
    display: none;
}

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-link-hero {
    display: none;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}
.nav-link-hero:hover { color: hsl(var(--hero-accent)); }
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transition: opacity .2s ease, transform .2s ease;
}
.btn-primary-hero:hover { opacity: .92; transform: translateY(-1px); }

/* Hero layout */
.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1152px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.hero-copy { max-width: 560px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20, 115, 196, 0.20);
}
.pill-hero { background: rgba(20, 115, 196, 0.10); border-color: rgba(20, 115, 196, 0.24); margin-bottom: 22px; }
.pill-light { background: rgba(20, 115, 196, 0.10); border-color: rgba(20, 115, 196, 0.18); }
.pill-text { font-size: 12px; font-weight: 600; }
.pill-text-primary { color: hsl(var(--primary)); }
.pill-hero .pill-text { color: hsl(var(--hero-accent)); }
.pill-icon { color: hsl(var(--hero-accent)); display: inline-flex; }

.hero-h1 {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    line-height: 1.04;
    font-size: 42px;
    margin: 0 0 18px;
}
.hero-p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 22px;
}

.hero-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(20, 115, 196, 0.22);
    background: rgba(20, 115, 196, 0.10);
    backdrop-filter: blur(10px);
    max-width: 560px;
    cursor: pointer;
}
.hero-input-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 3;
}
.hero-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 18px;
    font-size: 13px;
    pointer-events: none;
}
.hero-input-field::placeholder { color: rgba(20, 115, 196, 0.55); }
.hero-send {
    margin: 8px;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 14px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transition: opacity .2s ease;
    pointer-events: none;
}
.hero-send:hover { opacity: .92; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(20, 115, 196, 0.18);
    background: transparent;
    color: hsla(0,0%,100%,.70);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.chip-hero:hover {
    border-color: rgba(20, 115, 196, 0.42);
    color: hsl(var(--hero-accent));
    transform: translateY(-1px);
}
.chip-hero span { color: inherit; }

.hero-preview { display: none; }
.preview-card {
    border-radius: 20px;
    border: 1px solid rgba(20, 115, 196, 0.18);
    background: rgba(20, 115, 196, 0.10);
    backdrop-filter: blur(10px);
    padding: 22px;
}
.preview-header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(20, 115, 196, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-name { margin: 0; font-size: 13px; font-weight: 700; }
.preview-status { margin: 0; font-size: 12px; }
.bubbles { display: flex; flex-direction: column; gap: 12px; }
.bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.6;
}
.bubble-surface {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-top-right-radius: 6px;
}
.bubble-user {
    background: rgba(20, 115, 196, 0.22);
    border-top-left-radius: 6px;
}
.bubble-row { display: flex; justify-content: flex-start; }
.bubble-long { opacity: .98; }

.typing { display: flex; align-items: center; gap: 6px; padding: 8px 8px; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: hsl(var(--hero-accent));
    opacity: .75;
    animation: typing 1.2s infinite ease-in-out;
}
.typing-dot-2 { animation-delay: .15s; }
.typing-dot-3 { animation-delay: .30s; }
@keyframes typing {
    0%, 80%, 100% { transform: translateY(0); opacity: .55; }
    40% { transform: translateY(-4px); opacity: .95; }
}

/* Sections (Light) */
.container-6xl { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section-light { background: hsl(var(--bg)); padding: 80px 0; }
.section-muted { background: hsl(var(--muted) / .55); padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.h2 {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-size: 30px;
    margin: 10px 0 12px;
    color: hsl(var(--fg));
}
.p-muted { margin: 0; color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.8; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature-card {
    padding: 28px;
    border-radius: 20px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.feature-card:hover { border-color: rgba(20, 115, 196, 0.30); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 115, 196, 0.12);
    color: hsl(var(--primary));
    margin-bottom: 16px;
}
.h3 { margin: 0 0 8px; font-family: "Crimson Text", serif; font-weight: 700; font-size: 18px; color: hsl(var(--fg)); }

/* Mission */
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
    padding: 22px;
    border-radius: 20px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    text-align: center;
}
.stat-num { margin: 0 0 6px; font-family: "Crimson Text", serif; font-size: 30px; font-weight: 700; }
.stat-label { margin: 0; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* CTA */
.cta { padding: 80px 0; }
.cta-inner { max-width: 768px; margin: 0 auto; padding: 0 24px; text-align: center; }
.cta-p { max-width: 560px; margin: 0 auto 24px; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 16px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(20, 115, 196, 0.22);
    transition: transform .2s ease, opacity .2s ease;
}
.cta-btn:hover { transform: translateY(-1px) scale(1.01); opacity: .95; }

/* Footer */
.footer-new { background: hsl(var(--bg)); border-top: 1px solid hsl(var(--border)); padding: 32px 0; }
.footer-row { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; }
.footer-copy { margin: 0; font-size: 12px; color: hsl(var(--muted-foreground)); }
.footer-brand .brand-name { color: hsl(var(--fg)); }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (min-width: 768px) {
    .nav-link-hero { display: inline-flex; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
    .hero-h1 { font-size: 56px; }
    .hero-p { font-size: 18px; }
    .hero-preview { display: block; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .mission-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
    .footer-row { flex-direction: row; }
    .hero-container { padding-top: 96px; padding-bottom: 128px; }
    .section-light { padding: 112px 0; }
    .section-muted { padding: 112px 0; }
    .cta { padding: 112px 0; }
}

@media (max-width: 420px) {
    .hero-container { padding-top: 44px; padding-bottom: 72px; }
    .hero-h1 { font-size: 40px; }
    .hero-input-field { padding: 14px 16px; }
}

/* Legal pages (shared) */
.terms {
    padding: 90px 0 70px;
    background: hsl(var(--muted) / .55);
}
.terms-content { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.terms-text {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    line-height: 1.9;
}
.terms-text h2 {
    margin: 0 0 12px;
    font-family: "Crimson Text", serif;
    font-size: 30px;
}
.terms-text h3 {
    margin: 26px 0 10px;
    font-family: "Crimson Text", serif;
    font-size: 20px;
    border-bottom: 1px solid rgba(20, 115, 196, 0.38);
    padding-bottom: 6px;
}
.terms-text p { margin: 0 0 14px; color: hsl(215 16% 32%); }
.terms-list { margin: 10px 0 0; padding: 0 0 0 18px; }
.terms-list li { margin: 8px 0; color: hsl(215 16% 32%); }
.terms-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border));
}
