:root {
    /* Basic Colors (Súkun Premium Deep Navy & Gold Theme) */
    --md-sys-color-background: #F8F9FA;
    --md-sys-color-on-background: #111827;
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-surface-dim: #E5E7EB;
    --md-sys-color-surface-bright: #FFFFFF;
    --md-sys-color-surface-container: #F3F4F6;
    --md-sys-color-surface-container-high: #E5E7EB;
    --md-sys-color-surface-container-highest: #D1D5DB;
    --md-sys-color-on-surface: #111827;
    --md-sys-color-on-surface-variant: #4B5563;
    --md-sys-color-outline: #9CA3AF;
    --md-sys-color-outline-variant: #D1D5DB;

    /* Primary (Deep Premium Green/Navy) */
    --md-sys-color-primary: #042F2E;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #134E4A;
    --md-sys-color-on-primary-container: #CCFBF1;

    /* Secondary (Rich Gold/Sand) */
    --md-sys-color-secondary: #D97706;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #FEF3C7;
    --md-sys-color-on-secondary-container: #78350F;

    /* Tertiary (Warm Taupe) */
    --md-sys-color-tertiary: #A8A29E;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #F5F5F4;
    --md-sys-color-on-tertiary-container: #44403C;

    /* Error */
    --md-sys-color-error: #DC2626;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #FEE2E2;
    --md-sys-color-on-error-container: #7F1D1D;

    /* Elevation */
    --md-sys-elevation-1: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
    --md-sys-elevation-2: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
    --md-sys-elevation-3: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Shape */
    --md-sys-shape-corner-medium: 16px;
    --md-sys-shape-corner-large: 24px;
    --md-sys-shape-corner-extra-large: 32px;
    --md-sys-shape-corner-full: 9999px;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

body {
    font-family: var(--font-family);
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a:not(.btn) {
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--md-sys-color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--md-sys-shape-corner-full);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    font-family: var(--font-family);
    border: none;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: var(--md-sys-shape-corner-large);
}

.btn-primary {
    background: linear-gradient(-45deg, var(--md-sys-color-primary) 0%, #085a58 50%, var(--md-sys-color-primary) 100%);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 4px 14px 0 rgba(4, 47, 46, 0.39);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(4, 47, 46, 0.6);
    transform: translateY(-2px);
    /* Make the animation slightly faster on hover for a subtle pop */
    animation: gradientMove 2s ease infinite;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-accent {
    background: linear-gradient(-45deg, var(--md-sys-color-secondary) 0%, #dfad6b 50%, var(--md-sys-color-secondary) 100%);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    color: var(--md-sys-color-on-secondary);
    box-shadow: 0 4px 14px 0 rgba(196, 144, 79, 0.4);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px 0 rgba(196, 144, 79, 0.65);
    transform: translateY(-2px);
    animation: gradientMove 2s ease infinite;
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-tonal {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.btn-tonal:hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
    box-shadow: var(--md-sys-elevation-1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}

.btn-outline:hover {
    background-color: rgba(208, 188, 255, 0.08);
    /* Primary color at 8% */
    border-color: var(--md-sys-color-primary);
}

/* Main Layout */
main {
    flex-grow: 1;
    padding-top: 80px;
    /* Account for fixed nav */
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 64px;
    min-height: calc(100vh - 160px);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge .star {
    font-size: 16px;
    color: var(--md-sys-color-tertiary);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--md-sys-color-on-surface);
    font-weight: 700;
}

.highlight-text {
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 500px;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* App Mockup UI */
.app-screenshot {
    width: 320px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.2);
    display: block;
    animation: float 6s ease-in-out infinite;
    /* Extra styling for edge smoothness since image is transparent webp */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* Features Section */
.features-section {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}

.feature-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(107, 80, 66, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-2);
    background-color: var(--md-sys-color-surface-container-high);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--md-sys-shape-corner-large);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon .material-symbols-rounded {
    font-size: 32px;
}

.primary-container {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.secondary-container {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.tertiary-container {
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
}

.error-container {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--md-sys-color-on-surface-variant);
}

/* Showcase Section */
.showcase-section {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-top: 80px;
    text-align: left;
}

.showcase-row.reversed {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-content h3 {
    font-size: 2.5rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.showcase-content p {
    font-size: 1.125rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
}

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

.showcase-visual::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(4, 47, 46, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.showcase-img {
    width: 280px;
    height: auto;
    border-radius: 40px;
    box-shadow: var(--md-sys-elevation-2);
    border: 8px solid var(--md-sys-color-surface-bright);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.showcase-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--md-sys-elevation-3);
}

/* Steps Section */
.steps-section {
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
    text-align: left;
}

.step-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-extra-large);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    background-color: var(--md-sys-color-surface-container-high);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-secondary) 100%);
    color: var(--md-sys-color-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--md-sys-elevation-2);
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding-bottom: 120px;
}

.cta-container {
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-primary-container) 100%);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 80px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-2);
}

.cta-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 80, 66, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-container h2 {
    font-size: 3rem;
    color: var(--md-sys-color-on-primary);
    margin-bottom: 16px;
}

.cta-container p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
footer {
    background-color: var(--md-sys-color-surface-container-highest);
    padding: 64px 24px 32px 24px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 64px;
}

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

.footer-brand p {
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 16px;
}

.footer-links h4 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 24px;
    font-size: 1rem;
}

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

.link-column a {
    color: var(--md-sys-color-on-surface-variant);
}

.link-column a:hover {
    color: var(--md-sys-color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--md-sys-color-surface-container-high);
        padding: 24px;
        border-bottom: 1px solid var(--md-sys-color-outline-variant);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .btn-large {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {

    .showcase-row,
    .showcase-row.reversed {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        margin-top: 64px;
    }

    .showcase-content h3 {
        font-size: 2rem;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

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

/* Stagger grid items for cascading effect */
.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: 0.3s;
}

.steps-grid .step-card:nth-child(2) {
    transition-delay: 0.1s;
}

.steps-grid .step-card:nth-child(3) {
    transition-delay: 0.2s;
}

.steps-grid .step-card:nth-child(4) {
    transition-delay: 0.3s;
}