/* ==========================================================================
   Design System & Variable Declarations
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme: Dark (Default) */
    --bg-primary: #0a0c10;
    --bg-secondary: #12151d;
    --bg-card: rgba(26, 31, 42, 0.7);
    --bg-navbar: rgba(10, 12, 16, 0.75);
    
    --color-primary: #4e8a56;       /* Sage/Emerald */
    --color-primary-rgb: 78, 138, 86;
    --color-primary-light: #88b38f;
    --color-secondary: #f2a97e;     /* Peach */
    --color-secondary-light: #fad6c0;
    --color-muted: #8d94a5;
    
    --text-main: #f3f5f9;
    --text-heading: #ffffff;
    --text-inverse: #0a0c10;
    
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(78, 138, 86, 0.4);
    --shadow-card: rgba(0, 0, 0, 0.4);
    --shadow-glow: rgba(78, 138, 86, 0.25);
    
    /* Layout Constants */
    --max-width: 1200px;
    --navbar-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables overrides */
body.light-theme {
    --bg-primary: #f6f8f5;
    --bg-secondary: #edf1eb;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-navbar: rgba(246, 248, 245, 0.8);
    
    --color-primary: #3c6e42;
    --color-primary-rgb: 60, 110, 66;
    --color-primary-light: #4e8a56;
    --color-secondary: #d47a47;
    --color-secondary-light: #f2a97e;
    --color-muted: #5e665d;
    
    --text-main: #2a312b;
    --text-heading: #121813;
    --text-inverse: #ffffff;
    
    --border-card: rgba(60, 110, 66, 0.12);
    --border-card-hover: rgba(60, 110, 66, 0.35);
    --shadow-card: rgba(60, 110, 66, 0.06);
    --shadow-glow: rgba(60, 110, 66, 0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    transition: color var(--transition-normal);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Ambient Background Effects
   ========================================================================== */
.glow-bg {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-primary-rgb), 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    transition: transform var(--transition-slow);
}

.glow-1 {
    top: -10vw;
    right: -10vw;
}

.glow-2 {
    top: 50vh;
    left: -15vw;
    background: radial-gradient(circle, rgba(242, 169, 126, 0.12) 0%, rgba(242, 169, 126, 0) 75%);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.logo-text {
    background: linear-gradient(to right, var(--text-heading), var(--color-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-heading);
}

.nav-link:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    border: 1px solid var(--border-card);
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--text-heading);
    background-color: var(--border-card);
    border-color: var(--color-primary);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-heading);
    border-radius: 4px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--navbar-height) + 80px);
    padding-bottom: 80px;
    position: relative;
}

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

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 50px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-primary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-heading) 40%, var(--color-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px -5px var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-heading);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background-color: var(--border-card);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Hero Illustration/Canvas Art */
.hero-illustration-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-canvas-art {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-canvas-art::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 60%);
    animation: rotateArt 20s linear infinite;
}

@keyframes rotateArt {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shape {
    position: absolute;
    opacity: 0.75;
    transition: transform var(--transition-normal);
}

.circle-shape {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(78, 138, 86, 0.4), rgba(242, 169, 126, 0.2));
    left: 20%;
    top: 25%;
    backdrop-filter: blur(4px);
    animation: floatShape1 6s ease-in-out infinite alternate;
}

.rectangle-shape {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(242, 169, 126, 0.3), rgba(78, 138, 86, 0.1));
    right: 25%;
    bottom: 25%;
    transform: rotate(45deg);
    animation: floatShape2 8s ease-in-out infinite alternate;
}

.triangle-shape {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(78, 138, 86, 0.25);
    bottom: 30%;
    left: 45%;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: floatShape3 7s ease-in-out infinite alternate;
}

@keyframes floatShape1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15px, -15px) scale(1.05); }
}

@keyframes floatShape2 {
    0% { transform: rotate(45deg) translate(0, 0); }
    100% { transform: rotate(65deg) translate(-20px, 15px); }
}

@keyframes floatShape3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10px, -25px) rotate(15deg); }
}

/* ==========================================================================
   About Section Styles
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    transition: background-color var(--transition-normal);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: 0 10px 30px var(--shadow-card);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-card-hover);
    box-shadow: 0 20px 45px var(--shadow-card), 0 0 30px var(--shadow-glow);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.05);
}

.circle-1 { background-color: rgba(78, 138, 86, 0.15); color: var(--color-primary); }
.circle-2 { background-color: rgba(242, 169, 126, 0.15); color: var(--color-secondary); }
.circle-3 { background-color: rgba(78, 138, 86, 0.1); color: var(--color-primary-light); }

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Product Section Styles
   ========================================================================== */
.product-section {
    padding: 120px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.product-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.product-visual::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--color-primary);
    filter: blur(100px);
    opacity: 0.12;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mockup-frame {
    position: relative;
    border-radius: 36px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-card);
    box-shadow: 0 30px 60px var(--shadow-card);
    max-width: 300px;
    transition: transform var(--transition-normal);
}

.mockup-frame:hover {
    transform: rotate(-1deg) scale(1.02);
}

.app-screenshot {
    border-radius: 28px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.accent-badge {
    color: var(--color-secondary);
}

.product-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 30px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.product-features li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.feature-title {
    color: var(--text-heading);
    display: block;
    margin-bottom: 2px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border-card);
    padding-top: 24px;
}

.app-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

.badge-group {
    display: flex;
    gap: 8px;
}

.tech-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-card);
    color: var(--color-muted);
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    transition: background-color var(--transition-normal);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow-card);
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* Contact Form container card */
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow-card);
    backdrop-filter: blur(10px);
}

.form-heading {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--shadow-glow);
    background-color: var(--bg-primary);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: opacity var(--transition-fast);
}

.form-status.success {
    color: var(--color-primary-light);
}

.form-status.error {
    color: #ff6b6b;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-card);
    background-color: var(--bg-primary);
    padding: 80px 0 40px;
    transition: background-color var(--transition-normal);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-desc {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.footer-links a:hover {
    color: var(--text-heading);
}

.footer-bottom {
    border-top: 1px solid var(--border-card);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet (Large) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .about-card:last-child {
        grid-column: span 2;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .product-visual {
        order: 2;
    }
    
    .product-info {
        order: 1;
        text-align: center;
    }
    
    .product-features {
        align-items: center;
        text-align: left;
    }
    
    .product-actions {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Phone (Medium/Small) */
@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        transform: translateY(-120%);
        transition: transform var(--transition-normal);
        z-index: 999;
        border-top: 1px solid var(--border-card);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    /* Hamburger Transform animation */
    .mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card:last-child {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links-group {
        justify-content: space-around;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 24px 16px;
    }
    
    .footer-links-group {
        flex-direction: column;
        gap: 30px;
    }
}
