:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --bg: #FFFFFF;
    --tint: #F1F8E9;
    --text: #1B5E20;
    --text-sec: #666666;
    --white-glass: rgba(255, 255, 255, 0.8);
}

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-light);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-sec);
    margin-left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* HERO SECTION */
.hero-section {
    padding: 6rem 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

h1 span {
    color: var(--primary-light);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-sec);
    font-style: italic;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.version-tag {
    font-size: 0.75rem;
    color: #999;
    margin-top: 15px;
    font-weight: 600;
}

/* RADIUS VISUAL */
.radius-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-dot {
    width: 18px;
    height: 18px;
    background: var(--primary-dark);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 20px var(--primary-light);
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1.5px solid var(--primary-light);
    border-radius: 50%;
    animation: ripple 4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.delay-1 {
    animation-delay: 1.3s;
}

.delay-2 {
    animation-delay: 2.6s;
}

@keyframes ripple {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    100% {
        width: 550px;
        height: 550px;
        opacity: 0;
    }
}

.radius-label-container {
    position: absolute;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radius-label {
    font-weight: 900;
    color: var(--primary-light);
    letter-spacing: 4px;
    font-size: 0.8rem;
}

.scanning-line {
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin-top: 8px;
    animation: scan 2s infinite alternate;
}

@keyframes scan {
    from {
        width: 100px;
        opacity: 0.2;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

/* CHAT SECTION */
.chat-section {
    padding: 8rem 10%;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--tint) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 10px 0;
}

.chat-viewport {
    position: relative;
    padding: 20px;
    z-index: 2;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.3;
}

.deco-1 {
    width: 350px;
    height: 350px;
    background: var(--primary-light);
    top: -40px;
    left: -180px;
}

.deco-2 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    bottom: -40px;
    right: -180px;
}

.chat-mockup {
    width: 370px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 45px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(27, 94, 32, 0.15);
    border: 1px solid var(--white-glass);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-dark);
    padding: 22px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
}

.group-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
}

.online-count {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 8px #4CAF50;
}

.chat-body {
    padding: 30px 22px;
    height: 420px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.msg-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.sender-name {
    font-size: 0.65rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.msg {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.msg-wrapper.received .msg {
    background: white;
    color: #333;
    border-radius: 20px 20px 20px 5px;
    border: 1px solid #F0F0F0;
}

.msg-wrapper.sent {
    align-self: flex-end;
}

.msg-wrapper.sent .msg {
    background: var(--primary);
    color: white;
    border-radius: 20px 20px 5px 20px;
}

.time {
    font-size: 0.65rem;
    color: #AAA;
    margin-top: 6px;
    align-self: flex-end;
}

.chat-footer {
    padding: 22px;
    background: white;
}

.input-container {
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
}

.dummy-input {
    flex: 1;
    color: #88A088;
    font-size: 14px;
    font-weight: 500;
}

.attachment-icon,
.send-icon {
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

/* MAP SECTION */
.map-section {
    padding: 8rem 10%;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.map-features {
    list-style: none;
    margin-top: 25px;
}

.map-features li {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.map-features li::before {
    content: "📍";
    margin-right: 12px;
}

.polygon-container {
    height: 450px;
    background: #fafafa;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #E8F5E9;
    position: relative;
}

.map-polygon-svg {
    width: 320px;
    filter: drop-shadow(0 15px 30px rgba(27, 94, 32, 0.15));
    transition: 0.5s;
}

.map-polygon-svg:hover {
    transform: scale(1.05);
}

.location-tag {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--primary-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* UTILS */
.badge {
    background: var(--tint);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(27, 94, 32, 0.35);
}

footer {
    padding: 5rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: white;
    color: var(--text-sec);
    font-size: 0.9rem;
}

footer strong {
    color: var(--primary-dark);
}

/* LEGAL PAGE SPECIFIC STYLES */
.legal-body {
    background-color: #F9FBFA;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-sec);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.terms-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #EDF2F0;
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.03);
    transition: transform 0.3s ease;
}

.terms-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.card-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.terms-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.terms-list {
    list-style: none;
}

.terms-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.6;
}

.terms-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-footer-note {
    margin-top: 5rem;
    text-align: center;
    border-top: 1px solid #EEE;
    padding-top: 3rem;
}

.legal-footer-note p {
    color: #99A;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* -------------------------------------------
   RESPONSIVE MEDIA QUERIES (ADDITIONS)
   ------------------------------------------- */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {

    .navbar,
    .hero-section,
    .chat-section,
    .map-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    h1 {
        font-size: 3.2rem;
    }

    .map-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .map-features {
        display: inline-block;
        text-align: left;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 5%;
    }

    .nav-links a {
        margin: 0 0.8rem;
        font-size: 0.75rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 3rem;
        min-height: auto;
    }

    .subtitle {
        margin: 0 auto 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .radius-visual {
        height: 350px;
    }

    @keyframes ripple {
        0% {
            width: 40px;
            height: 40px;
            opacity: 0.8;
        }

        100% {
            width: 320px;
            height: 320px;
            opacity: 0;
        }
    }

    .chat-mockup {
        width: 100%;
        max-width: 350px;
    }

    .deco-circle {
        display: none;
    }

    /* Mobile par clutter saaf karne ke liye */

    .polygon-container {
        height: 300px;
        border-radius: 30px;
    }

    .map-polygon-svg {
        width: 220px;
    }

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

    .legal-header h1 {
        font-size: 2.2rem;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links a {
        margin: 0 0.4rem;
    }

    h1 {
        font-size: 2rem;
    }

    .btn-primary {
        width: 100%;
        padding: 1rem;
    }

    .chat-body {
        height: 350px;
    }

    footer {
        padding: 3rem 1rem;
    }
}