/* ============================================================
   DESI COMMUNITY — Coming Soon
   Design language: chai-stall dusk. Deep indigo night sky,
   marigold + turmeric lamplight, a running embroidery stitch
   (kantha/phulkari) tying every section together — the same
   way a group chat ties a scattered community together.
   ============================================================ */

:root {
    /* ---- Color: named, not generic ---- */
    --indigo-dusk: #161A2E;
    --indigo-deep: #0D1020;
    --indigo-raised: #1E2440;
    --indigo-line: rgba(246, 239, 227, 0.10);

    --marigold: #F0A23B;
    --marigold-bright: #FFB85C;
    --turmeric: #E8C468;
    --paan-green: #5FA177;
    --rust-clay: #D9703F;

    --cream-thread: #F6EFE3;
    --cream-dim: rgba(246, 239, 227, 0.68);
    --cream-faint: rgba(246, 239, 227, 0.42);

    /* ---- Type ---- */
    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    /* ---- Layout ---- */
    --radius-bubble: 18px;
    --radius-card: 20px;
    --max-width: 1180px;

    --shadow-lamp: 0 30px 80px -20px rgba(240, 162, 59, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background: var(--indigo-dusk);
    color: var(--cream-thread);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--marigold);
    color: var(--indigo-deep);
}

:focus-visible {
    outline: 2px solid var(--marigold-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Texture: a faint diya-glow field behind everything, fixed so it
   reads as ambient sky rather than a per-section background ---- */
.sky-field {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 60% 40% at 18% 8%, rgba(240, 162, 59, 0.16), transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 18%, rgba(95, 161, 119, 0.10), transparent 65%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(217, 112, 63, 0.10), transparent 60%),
        var(--indigo-dusk);
}

.sky-field::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, var(--cream-faint), transparent),
        radial-gradient(1px 1px at 28% 8%, var(--cream-faint), transparent),
        radial-gradient(1.5px 1.5px at 41% 35%, var(--cream-faint), transparent),
        radial-gradient(1px 1px at 63% 14%, var(--cream-faint), transparent),
        radial-gradient(1.5px 1.5px at 78% 28%, var(--cream-faint), transparent),
        radial-gradient(1px 1px at 91% 6%, var(--cream-faint), transparent),
        radial-gradient(1.5px 1.5px at 8% 52%, var(--cream-faint), transparent),
        radial-gradient(1px 1px at 55% 60%, var(--cream-faint), transparent);
    opacity: 0.5;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* ============== Eyebrow / postmark label ============== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--turmeric);
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--paan-green);
    box-shadow: 0 0 0 3px rgba(95, 161, 119, 0.22);
}

/* ============== Headings ============== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cream-thread);
}

.section-heading {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--marigold);
    margin-bottom: 14px;
    display: block;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: relative;
    z-index: 10;
    padding: 28px 0 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--cream-thread);
}

.wordmark .knot {
    width: 30px;
    height: 30px;
}

.nav-status {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-faint);
    border: 1px solid var(--indigo-line);
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(246, 239, 227, 0.04);
}

.nav-status strong {
    color: var(--turmeric);
    font-weight: 500;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 64px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow-row {
    margin-bottom: 26px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--marigold-bright);
    position: relative;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.65;
    color: var(--cream-dim);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-sub strong {
    color: var(--cream-thread);
    font-weight: 600;
}

/* ---- Waitlist form ---- */
.waitlist-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin-bottom: 18px;
}

.waitlist-form .website-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.waitlist-input {
    flex: 1;
    background: rgba(246, 239, 227, 0.07);
    border: 1px solid rgba(246, 239, 227, 0.16);
    color: var(--cream-thread);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 16px 18px;
    border-radius: 100px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.waitlist-input::placeholder {
    color: var(--cream-faint);
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--marigold);
    background: rgba(246, 239, 227, 0.10);
    box-shadow: 0 0 0 3px rgba(240, 162, 59, 0.25);
}

.waitlist-submit {
    background: var(--marigold);
    color: var(--indigo-deep);
    border: none;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 26px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: var(--shadow-lamp);
}

.waitlist-submit:hover {
    background: var(--marigold-bright);
    transform: translateY(-1px);
}

.waitlist-submit:active {
    transform: translateY(0);
}

.waitlist-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.waitlist-note {
    font-size: 13px;
    color: var(--cream-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

.waitlist-status {
    font-size: 14px;
    margin-top: 14px;
    min-height: 20px;
    font-weight: 500;
}

.waitlist-status.is-success {
    color: var(--paan-green);
}

.waitlist-status.is-error {
    color: var(--rust-clay);
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.proof-stack {
    display: flex;
}

.proof-stack span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--indigo-dusk);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--indigo-deep);
}

.proof-stack span:first-child {
    margin-left: 0;
}

.hero-proof p {
    font-size: 13px;
    color: var(--cream-faint);
}

.hero-proof strong {
    color: var(--cream-thread);
}

/* ============================================================
   GROUP CHAT DEMO — the hero's visual thesis
   ============================================================ */
.chat-stage {
    position: relative;
}

.chat-window {
    background: var(--indigo-raised);
    border: 1px solid rgba(246, 239, 227, 0.12);
    border-radius: var(--radius-card);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55), var(--shadow-lamp);
    overflow: hidden;
    transform: rotate(0.4deg);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(246, 239, 227, 0.10);
    background: rgba(246, 239, 227, 0.03);
}

.chat-header-avatars {
    display: flex;
}

.chat-header-avatars .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
    border: 2px solid var(--indigo-raised);
    margin-left: -9px;
}

.chat-header-avatars .avatar:first-child {
    margin-left: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-info h3 {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cream-thread);
}

.chat-header-info p {
    font-size: 12px;
    color: var(--paan-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-header-info p::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--paan-green);
}

.chat-header-icon {
    color: var(--cream-faint);
    font-size: 18px;
    opacity: 0.7;
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 380px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: msgIn 0.5s ease forwards;
}

.chat-msg.is-self {
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--indigo-deep);
}

.avatar-marigold { background: var(--marigold); }
.avatar-paan { background: var(--paan-green); }
.avatar-rust { background: var(--rust-clay); }
.avatar-turmeric { background: var(--turmeric); }

.chat-msg-content {
    max-width: 78%;
}

.chat-msg.is-self .chat-msg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-sender {
    font-size: 11.5px;
    color: var(--cream-faint);
    margin-bottom: 5px;
    padding: 0 4px;
}

.chat-bubble {
    background: rgba(246, 239, 227, 0.07);
    border: 1px solid rgba(246, 239, 227, 0.08);
    border-radius: var(--radius-bubble);
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cream-thread);
    position: relative;
}

.chat-msg.is-self .chat-bubble {
    background: var(--marigold);
    color: var(--indigo-deep);
    border-color: transparent;
    font-weight: 500;
}

.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 0 4px;
}

.chat-time {
    font-size: 11px;
    color: var(--cream-faint);
}

.chat-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(246, 239, 227, 0.08);
    border-radius: 100px;
    padding: 3px 8px;
    font-size: 11.5px;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    opacity: 0;
    animation: msgIn 0.4s ease forwards;
    animation-delay: 2.6s;
}

.chat-typing-dots {
    display: flex;
    gap: 3px;
    background: rgba(246, 239, 227, 0.07);
    border-radius: 100px;
    padding: 10px 14px;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cream-faint);
    animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.chat-typing-label {
    font-size: 11.5px;
    color: var(--cream-faint);
    font-style: italic;
}

.chat-msg:nth-child(1) { animation-delay: 0.4s; }
.chat-msg:nth-child(2) { animation-delay: 1.0s; }
.chat-msg:nth-child(3) { animation-delay: 1.7s; }
.chat-msg:nth-child(4) { animation-delay: 2.3s; }

@keyframes msgIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(246, 239, 227, 0.10);
    background: rgba(246, 239, 227, 0.03);
}

.chat-input-fake {
    flex: 1;
    background: rgba(246, 239, 227, 0.06);
    border-radius: 100px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--cream-faint);
}

.chat-send-fake {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--marigold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo-deep);
    font-size: 15px;
    flex-shrink: 0;
}

.chat-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(240, 162, 59, 0.30), transparent 70%);
    border-radius: 50%;
    top: -60px;
    right: -80px;
    z-index: -1;
    filter: blur(10px);
}

/* ============================================================
   STITCH DIVIDER — phulkari/kantha running-stitch motif.
   The signature element: a thread that visually ties each
   section together, echoing "group chat connects the group".
   ============================================================ */
.stitch-divider {
    position: relative;
    height: 64px;
    width: 100%;
    overflow: hidden;
}

.stitch-divider svg {
    width: 100%;
    height: 100%;
}

.stitch-path {
    stroke: var(--turmeric);
    stroke-width: 2;
    stroke-dasharray: 10 9;
    fill: none;
    opacity: 0.55;
}

.stitch-knot {
    fill: var(--marigold);
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why {
    padding: 70px 0 90px;
}

.why-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.why-copy p {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--cream-dim);
    margin-bottom: 18px;
}

.why-copy p strong {
    color: var(--cream-thread);
    font-weight: 600;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.why-item {
    display: flex;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--indigo-line);
}

.why-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.why-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(240, 162, 59, 0.12);
    border: 1px solid rgba(240, 162, 59, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--marigold);
    font-size: 19px;
}

.why-item-text h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--cream-thread);
    margin-bottom: 5px;
}

.why-item-text p {
    font-size: 14.5px;
    color: var(--cream-dim);
    line-height: 1.6;
}

/* ============================================================
   FEATURE SPOTLIGHT — Group Chat only, deliberately singular
   ============================================================ */
.spotlight {
    padding: 30px 0 100px;
}

.spotlight-panel {
    background: linear-gradient(165deg, var(--indigo-raised), var(--indigo-deep));
    border: 1px solid rgba(246, 239, 227, 0.10);
    border-radius: 28px;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
}

.spotlight-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(95, 161, 119, 0.14), transparent 70%);
    border-radius: 50%;
    bottom: -180px;
    left: -120px;
}

.spotlight-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.spotlight-inner .section-kicker {
    text-align: center;
}

.spotlight-title {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.spotlight-desc {
    font-size: 17px;
    color: var(--cream-dim);
    line-height: 1.7;
    margin-bottom: 8px;
}

.spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.spotlight-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--turmeric);
    background: rgba(232, 196, 104, 0.10);
    border: 1px solid rgba(232, 196, 104, 0.25);
    padding: 8px 16px;
    border-radius: 100px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--indigo-line);
    padding: 40px 0 36px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-mark {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--cream-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-tag {
    font-size: 13px;
    color: var(--cream-faint);
}

.footer-links {
    display: flex;
    gap: 22px;
    font-size: 13px;
    color: var(--cream-faint);
}

.footer-links a:hover {
    color: var(--turmeric);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chat-window {
        transform: none;
        max-width: 460px;
        margin: 0 auto;
    }

    .spotlight-panel {
        padding: 48px 28px;
    }
}

@media (max-width: 620px) {
    .wrap {
        padding: 0 20px;
    }

    .nav-status {
        display: none;
    }

    .hero {
        padding: 40px 0 24px;
    }

    .hero-title {
        font-size: clamp(34px, 9vw, 44px);
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-submit {
        width: 100%;
    }

    .chat-body {
        min-height: 320px;
        padding: 16px;
    }

    .chat-msg-content {
        max-width: 86%;
    }

    .spotlight-panel {
        padding: 40px 22px;
        border-radius: 22px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   PWA INSTALL STRIP
   ============================================================ */
.install-strip {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 50;
    background: var(--indigo-raised);
    border: 1px solid rgba(246, 239, 227, 0.15);
    border-radius: 100px;
    padding: 10px 10px 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-strip.is-visible {
    transform: translateX(-50%) translateY(0);
}

.install-strip p {
    font-size: 13.5px;
    color: var(--cream-thread);
}

.install-strip-btn {
    background: var(--marigold);
    color: var(--indigo-deep);
    border: none;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 100px;
}

.install-strip-close {
    background: none;
    border: none;
    color: var(--cream-faint);
    font-size: 18px;
    padding: 6px;
    line-height: 1;
}

@media (max-width: 620px) {
    .install-strip {
        left: 16px;
        right: 16px;
        transform: translateY(120%);
        width: auto;
    }
    .install-strip.is-visible {
        transform: translateY(0);
    }
}
