/* ============================================================
   GRIHAA — Design system
   Concept: architectural blueprint meets data intelligence
   ============================================================ */

:root {
    /* Palette */
    --ink:      #0A1A2F;   /* deep architectural navy */
    --ink-2:    #102A43;   /* raised surface */
    --ink-3:    #1B3A57;   /* lines / borders on dark */
    --paper:    #F5F7FA;   /* cool off-white */
    --paper-2:  #FFFFFF;
    --gold:     #E0A82E;   /* premium amber-gold */
    --gold-soft:#F2C75C;
    --teal:     #14B8A6;   /* AI / data signal */
    --muted:    #8FA3B8;   /* muted text on dark */
    --muted-2:  #5B7388;   /* muted on light */
    --line:     rgba(143,163,184,.16);

    /* Type */
    --display: 'Sora', system-ui, sans-serif;
    --body:    'Inter', system-ui, sans-serif;
    --mono:    'Space Mono', ui-monospace, monospace;

    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.dim  { opacity: .55; }
.accent { color: var(--gold); }

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

/* ---------- Buttons ---------- */
.btn-gold {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--body); font-weight: 600; font-size: .94rem;
    color: var(--ink); background: var(--gold);
    padding: .72rem 1.3rem; border: 0; border-radius: 10px;
    cursor: pointer; white-space: nowrap;
    box-shadow: 0 8px 24px -10px rgba(224,168,46,.7);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(224,168,46,.8); }
.btn-gold.lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--paper);
    padding: .95rem 1.8rem; border: 1px solid rgba(245,247,250,.3); border-radius: 10px;
    transition: border-color .18s ease, background .18s ease;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(224,168,46,.08); }

.link-quiet { color: var(--muted); font-weight: 500; transition: color .18s ease; }
.link-quiet:hover { color: var(--gold); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    padding: 18px 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    background: rgba(10,26,47,.82);
    backdrop-filter: blur(14px);
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-3);
}
.site-nav nav { gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.brand-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    font-family: var(--display); font-weight: 800; color: var(--ink);
    background: var(--gold); border-radius: 9px;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; }

.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(245,247,250,.78); font-weight: 500; font-size: .95rem; transition: color .18s ease; }
.nav-links a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--paper); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO + signature blueprint
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 90% at 80% -10%, var(--ink-2) 0%, var(--ink) 55%);
    color: var(--paper);
    padding: 168px 0 96px;
}

.blueprint { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.bp-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(143,163,184,.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(143,163,184,.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(120% 80% at 75% 10%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 80% at 75% 10%, #000 30%, transparent 78%);
}
.bp-grid.faint { opacity: .5; }

/* isometric-ish data city */
.bp-city {
    position: absolute; right: 4%; bottom: 0; width: min(46%, 560px); height: 64%;
    display: flex; align-items: flex-end; gap: 12px;
    opacity: .9;
}
.bp-bar {
    flex: 1; height: var(--h);
    background: linear-gradient(180deg, rgba(20,184,166,.10), rgba(20,184,166,.02));
    border: 1px solid rgba(20,184,166,.45);
    border-bottom: 2px solid var(--teal);
    transform-origin: bottom; transform: scaleY(0);
    animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--d);
}
.bp-bar.tall { border-color: rgba(224,168,46,.55); border-bottom-color: var(--gold);
    background: linear-gradient(180deg, rgba(224,168,46,.12), rgba(224,168,46,.02)); }
@keyframes rise { to { transform: scaleY(1); } }

.bp-coord { position: absolute; font-size: .72rem; color: var(--teal); opacity: .7; }
.bp-coord.c1 { top: 28%; right: 8%; }
.bp-coord.c2 { bottom: 18%; right: 38%; color: var(--gold); }

.bp-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 0 0 rgba(224,168,46,.6); animation: ping 2.6s ease-out infinite; }
.bp-dot.d1 { top: 30%; right: 18%; }
.bp-dot.d2 { top: 52%; right: 46%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20,184,166,.6); animation-delay: 1.1s; }
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(224,168,46,.5); }
    70%,100% { box-shadow: 0 0 0 16px rgba(224,168,46,0); }
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
    color: var(--gold); margin: 0 0 22px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.hero-title {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em;
    margin: 0 0 22px;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); line-height: 1.6; max-width: 560px; margin: 0 0 34px; }

/* search */
.searchbar { background: rgba(255,255,255,.04); border: 1px solid var(--ink-3);
    border-radius: 16px; padding: 10px; max-width: 680px; backdrop-filter: blur(8px); }
.search-tabs { display: flex; gap: 4px; padding: 4px 6px 10px; }
.stab { font-family: var(--body); font-weight: 600; font-size: .85rem; color: var(--muted);
    background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: .18s; }
.stab:hover { color: var(--paper); }
.stab.active { color: var(--ink); background: var(--gold); }

.search-row { display: flex; gap: 8px; background: rgba(10,26,47,.5); border-radius: 12px; padding: 6px; }
.search-field { flex: 1; display: flex; flex-direction: column; padding: 8px 14px; }
.search-field.budget { flex: .8; border-left: 1px solid var(--ink-3); }
.field-label { font-size: .66rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.search-field input { background: none; border: 0; color: var(--paper); font-family: var(--body);
    font-size: .98rem; outline: none; width: 100%; }
.search-field input::placeholder { color: rgba(143,163,184,.7); }
.search-go { flex-shrink: 0; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: .82rem; }
.hero-meta .mono { color: var(--gold); }

/* ============================================================
   STATS READOUT
   ============================================================ */
.stats-band { background: var(--ink); border-top: 1px solid var(--ink-3); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 40px 18px; text-align: center; border-right: 1px solid var(--ink-3); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { margin-top: 10px; font-size: .82rem; color: var(--muted); }

/* ============================================================
   SHARED SECTION SCAFFOLD
   ============================================================ */
.section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.row-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.kicker { font-size: .76rem; letter-spacing: .12em; color: var(--teal); margin: 0 0 14px; }
.section-title { font-family: var(--display); font-weight: 700; letter-spacing: -.025em;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; margin: 0; }
.section-lede { color: var(--muted-2); font-size: 1.08rem; line-height: 1.6; margin: 18px 0 0; }

/* ---------- Platform features ---------- */
.platform { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature { background: var(--paper-2); padding: 34px 30px; transition: background .2s ease; }
.feature:hover { background: #fff; }
.feature-tag { display: inline-block; font-size: .68rem; letter-spacing: .12em; color: var(--teal);
    border: 1px solid rgba(20,184,166,.35); border-radius: 999px; padding: 3px 10px; margin-bottom: 18px; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; margin: 0 0 10px; }
.feature p { color: var(--muted-2); line-height: 1.6; margin: 0; font-size: .98rem; }

/* ---------- How it works ---------- */
.how { background: var(--ink); color: var(--paper); }
.how .section-title { color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--ink-3); }
.step-no { font-size: 1rem; color: var(--gold); display: block; margin-bottom: 18px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 12px; }
.step p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- Properties ---------- */
.properties { background: var(--paper); }
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prop-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease; }
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(10,26,47,.35); }
.prop-img { position: relative; height: 200px; }
.prop-img::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(10,26,47,.35)); }
.img-mumbai    { background: linear-gradient(135deg, #1B3A57, #14B8A6); }
.img-bengaluru { background: linear-gradient(135deg, #102A43, #E0A82E); }
.img-gurugram  { background: linear-gradient(135deg, #0A1A2F, #5B7388); }
.prop-badge { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: .68rem; letter-spacing: .06em;
    color: var(--ink); background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.prop-body { padding: 22px; }
.prop-price { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.prop-title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; margin: 8px 0 4px; }
.prop-area { color: var(--muted-2); font-size: .94rem; margin: 0 0 16px; }
.prop-specs { display: flex; gap: 14px; font-size: .8rem; color: var(--muted-2);
    border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Cities ---------- */
.cities { background: var(--ink); color: var(--paper); }
.cities .section-title { color: var(--paper); }
.city-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.city-chip { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    letter-spacing: -.02em; color: var(--muted); border: 1px solid var(--ink-3); border-radius: 999px;
    padding: 10px 22px; transition: .2s; cursor: default; }
.city-chip:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* ---------- Stories ---------- */
.stories { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.story { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin: 0; }
.story blockquote { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.5;
    letter-spacing: -.01em; margin: 0 0 24px; color: var(--ink); }
.story blockquote::before { content: '“'; color: var(--gold); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.story figcaption { display: flex; flex-direction: column; gap: 3px; }
.story-name { font-weight: 600; }
.story-role { font-size: .8rem; color: var(--muted-2); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink-2); color: var(--paper);
    padding: 96px 0; text-align: center; }
.cta-inner { position: relative; z-index: 1; }
.cta-band .bp-grid { z-index: 0; }
.cta-band h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em;
    font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; margin: 0 auto 16px; max-width: 760px; }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding: 70px 0 36px; border-top: 1px solid var(--ink-3); }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 50px; padding-bottom: 44px; border-bottom: 1px solid var(--ink-3); }
.footer-tag { color: var(--muted); margin: 18px 0 14px; max-width: 280px; }
.footer-contact { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-cols h6 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--gold);
    text-transform: uppercase; margin: 0 0 16px; }
.footer-cols a { display: block; color: var(--muted); font-size: .92rem; padding: 6px 0; transition: color .18s; }
.footer-cols a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding-top: 24px; font-size: .8rem; color: var(--muted); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .feature-grid, .steps, .prop-grid, .story-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { border-right: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
        flex-direction: column; gap: 0; background: var(--ink-2); padding: 92px 28px 28px;
        transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
    .nav-links.open { transform: none; }
    .nav-links li { border-bottom: 1px solid var(--ink-3); }
    .nav-links a { display: block; padding: 16px 0; font-size: 1.05rem; }
    .nav-toggle { display: flex; }
    .section { padding: 72px 0; }
    .section-head.row-head { flex-direction: column; align-items: flex-start; }
    .search-row { flex-direction: column; }
    .search-field.budget { border-left: 0; border-top: 1px solid var(--ink-3); }
    .search-go { width: 100%; }
    .bp-city { display: none; }
}

@media (max-width: 560px) {
    .feature-grid, .steps, .prop-grid, .story-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 0; border-bottom: 1px solid var(--ink-3); }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 130px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .bp-bar { transform: scaleY(1); }
}
