/* --- Design System --- */
:root {
    --bg-main: #F5EFE6;
    --bg-surface: #FBF6EF;
    --bg-surface-alt: #F2EBE1;
    --accent-orange: #C98A2E;
    --accent-orange-hover: #A86E1C;
    --accent-teal: #0B6851;
    --text-main: #3D271E;
    --text-muted: #6D6258;
    --white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 10px rgba(92, 59, 46, 0.08);
    --shadow-md: 0 10px 25px rgba(92, 59, 46, 0.12);
    --shadow-lg: 0 20px 40px rgba(92, 59, 46, 0.18);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 100px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-orange), #EDB03D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 239, 230, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(92, 59, 46, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100px; 
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transform: scale(1.2);
    transform-origin: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.btn-login {
    background: var(--accent-orange);
    color: #1a1a1a !important;
    padding: 0.6rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(201, 138, 46, 0.3);
    transition: var(--transition);
}

.btn-login:hover {
    background: transparent;
    color: var(--accent-orange) !important;
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem; /* Add some space from the links */
}

@media (min-width: 993px) {
    .nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-toggle i, .mobile-toggle svg {
    width: 32px !important;
    height: 32px !important;
}

/* --- Hero --- */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent-orange);
    color: #1a1a1a;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 2px solid transparent;
    box-shadow: 0 12px 28px -16px rgba(201, 138, 46, 0.65);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(201, 138, 46, 0.24);
}

.btn-secondary {
    background: var(--bg-surface-alt);
    color: var(--text-main);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--accent-teal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-outline:hover {
    background: var(--accent-orange);
    color: #1a1a1a;
}

.hero-image-box {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(92, 59, 46, 0.25));
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02) rotate(1deg);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(201, 138, 46, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(11, 104, 81, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(201, 138, 46, 0.08) 0%, transparent 40%);
    z-index: -2;
}

/* --- Section Styling --- */
section {
    padding: 6rem 0;
}

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

.section-icon-header {
    width: 64px;
    height: 64px;
    background: rgba(11, 104, 81, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
}

.section-icon-header i, .section-icon-header svg {
    width: 32px !important;
    height: 32px !important;
    color: var(--accent-teal);
    stroke-width: 2.5px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(92, 59, 46, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.feature-card i {
    width: 48px;
    height: 48px;
    background: rgba(201, 138, 46, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Payment Grid --- */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.payment-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(11, 104, 81, 0.05); /* Subtle Teal Border */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.payment-card:not(.highlight-card):not(.teal-card):not(.upi-card):not(.coin-card):hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

.payment-icon {
    width: 64px;
    height: 64px;
    background: rgba(11, 104, 81, 0.08); 
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.payment-card:hover .payment-icon {
    transform: rotate(10deg) scale(1.1);
}

.payment-card:not(.highlight-card):not(.teal-card):not(.upi-card):not(.coin-card):hover .payment-icon {
    background: var(--accent-teal);
    color: var(--white);
}

.payment-card h3 {
    margin-bottom: 0.5rem;
}

.payment-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.payment-card p span {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-orange);
    margin-top: 0.5rem;
    font-weight: 600;
}

.upi-card, .teal-card, .coin-card, .highlight-card {
    background: #A67C52; /* Tanned Coffee */
    color: var(--white);
    border: none;
}

.upi-card .payment-icon,
.teal-card .payment-icon,
.coin-card .payment-icon,
.highlight-card .payment-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.upi-card h3, .teal-card h3, .coin-card h3, .highlight-card h3 {
    color: var(--white);
}

.upi-card p, .teal-card p, .coin-card p, .highlight-card p {
    color: rgba(255, 255, 255, 0.9);
}

.upi-card:hover, .teal-card:hover, .coin-card:hover, .highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(166, 124, 82, 0.4);
    background: #8B6342; /* Deeper Tanned Coffee on hover */
}

/* --- RFID Section --- */
.rfid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
}

.glass-panel {
    background: rgba(251, 246, 239, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(92, 59, 46, 0.1);
    box-shadow: var(--shadow-lg);
}

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

.rfid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rfid-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 138, 46, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.rfid-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.rfid-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.rfid-visual {
    display: flex;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: 300px;
    height: 220px;
}

.rfid-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end; /* Move label to bottom right */
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-1 { background: var(--accent-teal); transform: rotate(-8deg); z-index: 4; }
.card-2 { background: var(--accent-orange); transform: rotate(-2deg) translate(15px, 15px); z-index: 3; }
.card-3 { background: #3D271E; transform: rotate(4deg) translate(30px, 30px); z-index: 2; }
.card-4 { background: #128A6B; transform: rotate(12deg) translate(45px, 45px); z-index: 1; }

.rfid-visual:hover .card-1 { transform: translateY(-40px) rotate(-12deg); }
.rfid-visual:hover .card-2 { transform: translateY(-25px) rotate(-4deg) translate(15px, 15px); }
.rfid-visual:hover .card-3 { transform: translateY(-10px) rotate(4deg) translate(30px, 30px); }
.rfid-visual:hover .card-4 { transform: translateY(5px) rotate(12deg) translate(45px, 45px); }

/* --- Connectivity --- */
.connectivity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.connectivity-card {
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.connectivity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
}

.connectivity-card h3 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.icon-accent {
    width: 32px;
    height: 32px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.icon-accent {
    color: var(--accent-orange);
}

.check-list {
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.check-list i {
    color: var(--accent-teal);
    width: 20px;
    margin-top: 3px;
}

.price-modes {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.price-mode {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.price-mode-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-surface-alt);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.price-mode h4 {
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.price-mode p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CTA --- */
.cta-card {
    background: #3D271E; /* Deep Brand Brown */
    color: var(--white);
    padding: 6rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 138, 46, 0.15) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-primary-large {
    background: var(--accent-orange);
    color: #1a1a1a;
    padding: 1.25rem 3.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid transparent;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary-large:hover {
    background: transparent;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-5px);
}

/* --- Footer --- */
.footer {
    background: var(--bg-surface-alt);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(92, 59, 46, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-logo {
    height: 80px; /* Increased size as requested */
    width: auto;
    object-fit: contain;
    align-self: flex-start; /* Explicit left alignment */
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links, .footer-contact, .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer h4 {
    margin-bottom: 0.5rem; /* Reduced margin since gap handles spacing */
    font-size: 1.2rem;
    color: var(--text-main);
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-contact p, .footer-brand p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0; /* Reset margins to use flex gap */
    color: var(--text-muted);
}

.btn-outline-white {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.btn-outline-white:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(92, 59, 46, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-grid, .rfid-container, .connectivity-grid, .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand, .footer-contact, .footer-links {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        align-self: center;
    }
    
    .hero-content p, .hero-actions {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-actions .btn-primary, 
    .hero-actions .btn-primary-outline {
        width: 100%;
        justify-content: center;
    }
    
    .price-mode {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .connectivity-card {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .connectivity-card h3 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .icon-accent {
        margin-bottom: 0.5rem;
    }

    .check-list li {
        justify-content: center;
        text-align: center;
    }

    .rfid-container {
        padding: 2rem 1.5rem;
        gap: 0;
    }

    .rfid-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rfid-visual {
        padding: 3rem 0 7rem; /* Extra bottom padding for the stack overflow */
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .card-stack {
        transform: scale(0.8); /* Scale down slightly more for small screens */
        transform-origin: center;
    }
    
    .rfid-item {
        justify-content: center;
    }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(92, 59, 46, 0.1);
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .btn-login {
        padding: 0.5rem 1.8rem; /* Increased width for mobile */
        font-size: 0.85rem;
    }
    
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-card {
        padding: 4rem 1.5rem;
    }

    .btn-primary-large {
        width: 100%;
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
