/* 
  Green Panther - Custom Stylesheet
  Clean, Modern, Performance-Optimized
*/

:root {
    --gp-primary: #0D631B;
    --gp-emerald: #2E7D32;
    --gp-surface: #FCF9F8;
    --gp-text: #1C1B1B;
    --gp-slate: #5E5E5E;
    --gp-light-green: #CBFFC2;
    --gp-white: #FFFFFF;
    --gp-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --gp-shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--gp-surface);
    color: var(--gp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.75rem;
    border-radius: 12px; /* Rectangular but rounded */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--gp-emerald);
    color: var(--gp-white);
    box-shadow: var(--gp-shadow);
}

.btn-primary:hover {
    background-color: var(--gp-primary);
    transform: translateY(-2px);
    box-shadow: var(--gp-shadow-lg);
}

.btn-primary:active {
    transform: scale(0.95);
}

.text-emerald { color: var(--gp-emerald); }
.text-slate { color: var(--gp-slate); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(252, 249, 248, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px border #f1f1f1;
    transition: box-shadow 0.3s ease;
}

.navbar.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gp-emerald);
    letter-spacing: -0.025em;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    color: var(--gp-text);
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--gp-white);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.75rem;
}

.mobile-menu a:hover {
    background-color: var(--gp-surface);
    color: var(--gp-emerald);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    background: radial-gradient(circle at top right, rgba(46, 125, 50, 0.1), transparent);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    text-align: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 2rem;
}

.hero-text h1 span {
    text-decoration: underline;
    text-decoration-color: var(--gp-light-green);
    text-underline-offset: 8px;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--gp-slate);
    margin-bottom: 2.5rem;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.badge {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: transform 0.3s ease;
    width: 190px; /* Increased width for a proper rectangular look */
    text-align: left;
    height: 52px; /* Fixed height for consistency */
}

.badge:hover { transform: scale(1.05); }

.badge i { 
    font-size: 1.75rem; 
    flex-shrink: 0; 
    display: flex;
    align-items: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-text p {
    margin: 0; /* Reset margins */
    padding: 0;
    white-space: nowrap;
}

.badge-text p:first-child { 
    font-size: 0.55rem; 
    opacity: 0.8; 
    line-height: 1.2;
}

.badge-text p:last-child { 
    font-size: 1rem; 
    font-weight: 700; 
    line-height: 1.2;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.mockup-container {
    background-color: var(--gp-white);
    padding: 0.5rem;
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: float 6s ease-in-out infinite;
}

.mockup-container img {
    border-radius: 2.5rem;
}

.decorative-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background-color: var(--gp-light-green);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--gp-white);
    text-align: center;
}

.features h2 {
    font-size: 2.25rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    gap: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: var(--gp-surface);
    border: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--gp-shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-blue { background-color: #ebf8ff; color: #3182ce; }
.icon-green { background-color: var(--gp-light-green); color: var(--gp-emerald); }
.icon-orange { background-color: #fffaf0; color: #dd6b20; }

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

/* How it Works */
.steps {
    padding: 80px 0;
}

.steps h2 { text-align: center; margin-bottom: 5rem; font-size: 2.25rem; }

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 6rem;
    text-align: center;
}

.step-item:last-child { margin-bottom: 0; }

.step-tag {
    color: var(--gp-emerald);
    font-weight: 700;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 1rem;
}

.step-item h3 { font-size: 1.875rem; margin-bottom: 1.5rem; }

.step-visual {
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06);
    font-size: 3rem;
    flex-shrink: 0; /* Prevent skewing */
}

.bg-blue-light { background-color: #ebf8ff; color: #3182ce; }
.bg-orange-light { background-color: #fffaf0; color: #dd6b20; }

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--gp-emerald);
    color: var(--gp-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 { font-size: 2.25rem; margin-bottom: 2rem; }
.cta-section p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.btn-white { background-color: var(--gp-white); color: var(--gp-emerald); }
.btn-white:hover { background-color: var(--gp-light-green); }

.btn-outline { background: none; border: 2px solid var(--gp-white); color: var(--gp-white); }
.btn-outline:hover { background-color: var(--gp-white); color: var(--gp-emerald); }

.bg-leaf {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 25rem;
    opacity: 0.05;
    transform: translate(25%, -25%);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: var(--gp-white);
    border-top: 1px solid #f1f1f1;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand { grid-column: span 1; }
.footer-brand p { margin: 1.5rem 0 2rem; max-width: 320px; }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--gp-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gp-slate);
}

.social-links a:hover {
    background-color: var(--gp-emerald);
    color: var(--gp-white);
}

.footer-nav h4 { margin-bottom: 1.5rem; font-weight: 700; }
.footer-nav ul li { margin-bottom: 1rem; }
.footer-nav ul a { color: var(--gp-slate); }
.footer-nav ul a:hover { color: var(--gp-emerald); }

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #f1f1f1;
    font-size: 0.875rem;
    color: var(--gp-slate);
}

/* Legal Pages Styling */
.legal-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 1.5rem;
}

.legal-header {
    background-color: var(--gp-white);
    border-bottom: 1px solid #f1f1f1;
    padding: 1.5rem 0;
}

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

.back-home { color: var(--gp-slate); font-weight: 500; }
.back-home:hover { color: var(--gp-emerald); }

.legal-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.last-updated { font-style: italic; color: var(--gp-slate); margin-bottom: 3rem; }

.legal-section { margin-bottom: 3rem; }
.legal-section h2 { color: var(--gp-emerald); font-size: 1.5rem; margin-bottom: 1.5rem; }
.legal-section h3 { font-size: 1.25rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }
.legal-section p { margin-bottom: 1rem; line-height: 1.8; }
.legal-section ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-section ul li { list-style: disc; margin-bottom: 0.5rem; }

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

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsiveness */
@media (min-width: 640px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-visual { max-width: 320px; }
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .hero { padding: 180px 0 120px; }
    .hero-content { flex-direction: row; text-align: left; gap: 6rem; }
    .hero-text { flex: 1; }
    .app-badges { justify-content: flex-start; }
    .hero-visual { flex: 1; max-width: 320px; }
    
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    
    .step-item { flex-direction: row; text-align: left; gap: 6rem; align-items: center; }
    .step-item:nth-child(even) { flex-direction: row-reverse; text-align: right; }
    .step-item > div { flex: 1; }

    .step-visual { 
        width: 220px; 
        height: 220px; 
        min-width: 220px;
        min-height: 220px;
        max-width: 220px;
        max-height: 220px;
        font-size: 5rem; 
    }
    
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .hero-text h1 { font-size: 4.5rem; }
    .hero-content { gap: 8rem; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gp-surface); }
::-webkit-scrollbar-thumb { background: var(--gp-emerald); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gp-primary); }
