/* Vibhajan public site — teal / coral, Syne + Figtree */

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

:root {
    --teal: #0b6e6a;
    --teal-deep: #064e4b;
    --teal-soft: #d7ebe9;
    --coral: #e85d4c;
    --coral-soft: #fde8e4;
    --ink: #14201e;
    --ink-muted: #4a5c58;
    --mist: #eef4f2;
    --paper: #f7faf8;
    --white: #ffffff;
    --line: rgba(20, 32, 30, 0.1);
    --shadow: 0 24px 60px rgba(6, 78, 75, 0.18);
    --radius: 1.25rem;
    --font-display: "Syne", sans-serif;
    --font-body: "Figtree", sans-serif;
    --nav-h: 4.5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--teal);
    color: white;
    padding: 0.5rem 0.75rem;
    z-index: 2000;
    border-radius: 0.35rem;
}

.skip-link:focus {
    top: 0.75rem;
}

/* Nav */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(247, 250, 248, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.navbar.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(247, 250, 248, 0.92);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 0.55rem;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal-deep);
}

.nav-cta {
    background: var(--teal);
    color: white !important;
    padding: 0.55rem 1rem;
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--teal-deep);
    color: white !important;
}

.mobile-menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 1.35rem;
    background: var(--ink);
    margin-inline: auto;
    transition: transform 0.25s var(--ease), opacity 0.25s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: #d44d3d;
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--teal-deep);
    border-color: rgba(11, 110, 106, 0.35);
}

.btn-ghost:hover {
    background: var(--teal-soft);
    color: var(--teal-deep);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 2rem) 0 3rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(11, 110, 106, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 30%, rgba(232, 93, 76, 0.18), transparent 50%),
        linear-gradient(160deg, #e7f2ef 0%, #f7faf8 45%, #f3ebe7 100%);
    z-index: 0;
}

.hero-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(20, 32, 30, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
    animation: grain-drift 28s linear infinite;
}

@keyframes grain-drift {
    from { background-position: 0 0; }
    to { background-position: 220px 140px; }
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: var(--teal-deep);
    margin-bottom: 1rem;
    animation: rise 0.9s var(--ease) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 16ch;
    margin-bottom: 1rem;
    animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-lede {
    color: var(--ink-muted);
    font-size: 1.1rem;
    max-width: 36ch;
    margin-bottom: 1.75rem;
    animation: rise 0.9s var(--ease) 0.16s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: rise 1s var(--ease) 0.2s both;
}

.phone-stage {
    position: relative;
    width: min(320px, 100%);
}

.phone-glow {
    position: absolute;
    inset: 10% -10% -10%;
    background: radial-gradient(circle, rgba(11, 110, 106, 0.35), transparent 65%);
    filter: blur(18px);
    animation: pulse-glow 4.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

.phone {
    position: relative;
    background: #101816;
    border-radius: 2rem;
    padding: 0.85rem;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s var(--ease);
}

.phone:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.phone-notch {
    width: 36%;
    height: 0.7rem;
    background: #1c2825;
    border-radius: 999px;
    margin: 0.2rem auto 0.85rem;
}

.phone-ui {
    background: linear-gradient(180deg, #f4faf8, #e8f2ef);
    border-radius: 1.35rem;
    padding: 1.1rem;
    min-height: 380px;
}

.phone-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.phone-top img {
    width: 22px;
    height: 22px;
    border-radius: 0.35rem;
}

.phone-total {
    background: var(--teal);
    color: white;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.phone-total span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
}

.phone-total strong {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.phone-rows {
    display: grid;
    gap: 0.65rem;
}

.phone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.owe { color: var(--coral); font-weight: 700; }
.owed { color: var(--teal); font-weight: 700; }

.chip {
    background: var(--coral-soft);
    color: #b53d2f;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

/* Sections */
.section {
    padding: 5.5rem 0;
}

.section-head {
    max-width: 36rem;
    margin-bottom: 2.75rem;
}

.section-head h2,
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.65rem;
}

.section-head p,
.page-hero p {
    color: var(--ink-muted);
    font-size: 1.1rem;
}

.features {
    background: var(--white);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}

.feature-item {
    padding-top: 1.25rem;
    border-top: 2px solid var(--teal-soft);
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
}

.feature-item p {
    color: var(--ink-muted);
}

.how {
    background:
        linear-gradient(180deg, rgba(215, 235, 233, 0.55), transparent),
        var(--mist);
}

.steps {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.step-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--coral);
    letter-spacing: -0.04em;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.step p {
    color: var(--ink-muted);
    max-width: 48ch;
}

.uses {
    background: var(--white);
}

.use-strip {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.use-strip li {
    font-weight: 600;
    padding: 0.85rem 1.15rem;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--teal-deep);
}

.download {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(232, 93, 76, 0.16), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(11, 110, 106, 0.2), transparent 45%),
        var(--teal-deep);
    color: white;
}

.download .section-head p,
.download-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.download-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.download-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.btn-apk {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 1.4rem;
    border-radius: 1rem;
    background: var(--coral);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 12px 30px rgba(232, 93, 76, 0.35);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-apk:hover {
    transform: translateY(-2px);
    background: #d44d3d;
    color: white;
}

.apk-meta {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.88;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.store-row-badges {
    margin-top: 0.85rem;
    align-items: center;
}

.apk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 0.7rem;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.apk-badge small {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    line-height: 1.1;
}

.apk-badge strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;
}

.store-link-apk {
    text-decoration: none;
}

.store-link img {
    height: 52px;
    width: auto;
}

.download-shots {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    padding: 0.25rem 0;
    min-height: 0;
    overflow: hidden; /* clip rotated phones inside the download block */
    isolation: isolate;
}

.shot {
    position: relative;
    display: block;
    width: min(170px, 44%);
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.shot-a {
    transform: rotate(-5deg);
    z-index: 1;
}

.shot-b {
    transform: rotate(6deg);
    z-index: 2;
    margin-bottom: 0.75rem;
}

/* Inner pages */
.page-hero {
    padding: calc(var(--nav-h) + 3.5rem) 0 2.5rem;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(11, 110, 106, 0.18), transparent 50%),
        var(--mist);
}

.page-body {
    padding-top: 2.5rem;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    margin: 2rem 0 0.75rem;
}

.prose h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.prose p,
.prose li {
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
}

.prose ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.prose a {
    color: var(--teal-deep);
    font-weight: 600;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.value-grid article {
    padding: 1.25rem 0;
    border-top: 2px solid var(--teal-soft);
}

.value-grid h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 0.4rem;
}

.inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form,
.form-group {
    display: grid;
    gap: 0.85rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font: inherit;
    background: white;
    color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(11, 110, 106, 0.35);
    border-color: var(--teal);
}

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    background: #0f1c1a;
    color: rgba(255, 255, 255, 0.78);
    padding: 3.5rem 0 1.5rem;
}

.footer .brand-name {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    margin-top: 0.85rem;
    max-width: 28ch;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-display);
    margin-bottom: 0.85rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-size: 0.9rem;
}

/* Reveal motion */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-shell,
    .download-shell,
    .contact-grid,
    .feature-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-bottom: 4rem;
    }

    .phone {
        transform: none;
    }

    .download-shots {
        max-width: 360px;
        margin-top: 0.5rem;
    }

    .shot {
        max-height: 300px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: var(--nav-h) 0 auto;
        background: rgba(247, 250, 248, 0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 0.35rem;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 0.75rem 0;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .hero-brand {
        font-size: clamp(2.4rem, 14vw, 3.4rem);
    }

    .download-shots {
        max-width: 100%;
        gap: 0.5rem;
    }

    .shot {
        width: min(150px, 44%);
        max-height: 260px;
    }

    .shot-b {
        margin-bottom: 0.75rem;
    }
}
