/* Base Styles & CSS Variables */
:root {
    --bg-color: #f6f8fa;
    --text-primary: #1a1b1e;
    --text-secondary: #5e646a;
    --brand-gradient: linear-gradient(135deg, #216733 0%, #83c053 100%);
    --white: #ffffff;
    --border-color: #eaecef;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

a {
    color: #257739;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- App Bar --- */
.app-bar {
    position: sticky;
    top: 24px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
    padding: 16px 40px;
    margin: 0 auto;
    max-width: 1000px;
    width: 90%;
    border-radius: 50px;
}

.app-bar .container {
    padding: 0;
    max-width: 100%;
}

.app-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #257739;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    /* Full column width */
}

.hero-text p {
    font-size: 1.25rem;
}

/* Shield Illustration CSS Art */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 350px;
}

.shield-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    z-index: 0;
}

.shield-halo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
}

.shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 260px;
    background: var(--brand-gradient);
    border-radius: 20px 20px 100px 100px;
    box-shadow: var(--shadow-lg), 0 0 0 6px var(--white), 0 0 0 8px #1a1b1e;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.keyhole {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    position: relative;
    margin-top: -30px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.keyhole::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 35px;
    background: var(--white);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    border-radius: 2px;
}

/* Decorators */
.dec-cross {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 1;
}

.dec-cross::before, .dec-cross::after {
    content: '';
    position: absolute;
    background: #1a1b1e;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dec-cross::before { width: 1px; height: 100%; }
.dec-cross::after { width: 100%; height: 1px; }

.dec-cross-1 { top: 10%; left: -20%; }
.dec-cross-2 { bottom: 10%; left: -10%; }
.dec-cross-3 { top: 0%; right: -20%; }

/* --- Download Section --- */
.download-section {
    padding: 20px 0;
    background: var(--bg-color);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-image img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.download-text {
    /* Full column width */
}

.download-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-text p {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list li::before {
    content: '✓';
    color: #257739;
    font-weight: bold;
}

.playstore-btn {
    display: inline-flex;
    align-items: center;
    background: #1a1b1e;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.playstore-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    text-decoration: none;
}

.playstore-btn-text {
    display: flex;
    flex-direction: column;
}

.btn-small-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0a0a0;
}

.btn-large-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* --- QR Testing Section --- */
.qr-section {
    padding: 80px 0 120px;
    background: var(--white);
}

.qr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.qr-text {
    /* Full column width */
}

.qr-text h2 {
    font-size: 2.2rem;
}

.qr-interactive {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-visual {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.qr-box {
    background: var(--white);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 0 0 2px #1a1b1e, var(--shadow-lg);
    position: relative;
}

/* Scanner Corners */
.qr-corners::before, .qr-corners::after,
.qr-box::before, .qr-box::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid transparent;
    border-radius: 12px;
}

.qr-box::before { top: -10px; left: -10px; border-top-color: #1a1b1e; border-left-color: #1a1b1e; }
.qr-box::after { top: -10px; right: -10px; border-top-color: #1a1b1e; border-right-color: #1a1b1e; }
.qr-corners::before { bottom: -10px; left: -10px; border-bottom-color: #1a1b1e; border-left-color: #1a1b1e; }
.qr-corners::after { bottom: -10px; right: -10px; border-bottom-color: #1a1b1e; border-right-color: #1a1b1e; }

.secret-key-box {
    background: #f8f9fa;
    padding: 16px 24px;
    border-radius: 12px;
}

.secret-label {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.secret-hint {
    font-size: 0.8rem;
    color: #888;
}

.arrow-down {
    position: absolute;
    bottom: -60px;
    right: 40%;
    width: 40px;
    height: 60px;
    animation: bounce 2s infinite;
}

/* Token Mockup Card */
.token-mockup {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 320px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.token-icon img {
    border-radius: 6px;
}

.token-details {
    flex: 1;
}

.token-app {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.token-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.token-code {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.token-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* SVG Pie Timer styling */
.pie-timer {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
}

.pie-bg {
    fill: transparent;
    stroke: #eee;
    stroke-width: 16;
}

.pie-fill {
    fill: transparent;
    stroke: #1a1b1e;
    stroke-width: 16;
    stroke-dasharray: 50.27 50.27; /* Will be updated via JS */
    transition: stroke-dasharray 1s linear;
}

/* --- Footer --- */
.footer {
    background: var(--bg-color);
    padding: 20px 0 20px;
    overflow: hidden;
    text-align: center;
}

.footer-massive-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-massive-text {
    font-size: 18vw;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0;
    white-space: nowrap;
    
    /* Gradient setup for animation */
    background: linear-gradient(90deg, #216733, #83c053, #257739, #216733);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientMove 6s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #257739;
}

.footer-links .dot {
    color: var(--border-color);
    font-size: 0.8rem;
}

.crafted-by {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.crafted-by .heart {
    color: #257739;
    font-size: 1.1rem;
}

/* Animations */
@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Responsive */
@media (max-width: 900px) {
    .app-bar-content {
        flex-direction: column;
        gap: 16px;
    }

    .hero-content, .qr-content, .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    h1 { font-size: 2.5rem; }
    
    .qr-visual {
        flex-direction: column;
    }
    
    .arrow-down {
        display: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
