/* ============================================
   HOMBIN - Single Page Website
   Enterprise-grade Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #5B9A8B;
    --color-primary-dark: #4A8477;
    --color-primary-light: #7AB5A7;
    --color-primary-subtle: #E8F4F0;
    --color-primary-ghost: #F4FAF8;

    --color-text: #1A2332;
    --color-text-secondary: #5A6B7F;
    --color-text-muted: #8A96A6;

    --color-bg: #FFFFFF;
    --color-bg-subtle: #F8FAFB;
    --color-bg-muted: #F1F4F7;

    --color-border: #E2E8EF;
    --color-border-light: #EEF2F6;

    --color-white: #FFFFFF;
    --color-dark: #0F1923;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    --navbar-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-nav {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-nav:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 154, 139, 0.3);
}

/* --- Section Utilities --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-4xl);
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-top: var(--space-md);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* --- Fade In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--navbar-height) + var(--space-5xl)) 0 var(--space-5xl);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    margin-bottom: var(--space-xl);
}

.highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, var(--color-primary-ghost) 0%, var(--color-primary-subtle) 100%);
    border-radius: 0 0 0 40%;
    z-index: 0;
    opacity: 0.6;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.25rem;
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.store-btn svg {
    flex-shrink: 0;
}

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

.store-btn-small {
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.85;
    line-height: 1;
}

.store-btn-large {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

.store-btn-light {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-btn-light:hover {
    background-color: var(--color-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Phone Mockup */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--color-white);
    border-radius: 36px;
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.02);
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--color-white);
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border: 3px solid var(--color-border);
    border-top: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-subtle);
    border-radius: 24px;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow: hidden;
}

.screen-header {
    text-align: center;
    padding: var(--space-lg) 0 var(--space-sm);
}

.screen-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.screen-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    animation: slideInCard 0.5s ease forwards;
    opacity: 0;
}

.screen-card:nth-child(2) { animation-delay: 0.3s; }
.screen-card:nth-child(3) { animation-delay: 0.6s; }
.screen-card:nth-child(4) { animation-delay: 0.9s; }

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-check {
    background-color: var(--color-primary-subtle);
    color: var(--color-primary);
}

.icon-budget {
    background-color: #FEF3E2;
    color: #E89B2D;
}

.icon-price {
    background-color: #EDE9FE;
    color: #7C5CFC;
}

.screen-progress {
    margin-top: auto;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: slideInCard 0.5s ease 1.2s forwards;
    opacity: 0;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.progress-bar {
    height: 6px;
    background-color: var(--color-bg-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-full);
    animation: fillProgress 1.5s ease 1.5s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes fillProgress {
    to {
        transform: scaleX(1);
    }
}

.progress-percent {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: var(--space-5xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-subtle);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card > p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: var(--space-5xl) 0;
    background-color: var(--color-bg-subtle);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-2xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.step:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-subtle);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary-subtle);
    line-height: 1;
    letter-spacing: -0.03em;
    min-width: 60px;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

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

.step-icon-wrapper {
    width: 72px;
    height: 72px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: var(--space-sm) 0;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary-subtle));
    border-radius: 1px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-5xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-text .section-tag {
    display: inline-block;
}

.about-text h2 {
    margin-bottom: var(--space-xl);
}

.about-text p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 500;
    color: var(--color-text);
}

.about-highlight svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

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

.about-card {
    background: linear-gradient(135deg, var(--color-primary-ghost), var(--color-primary-subtle));
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-2xl);
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.about-card-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

.about-card-quote {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.6;
    font-style: italic;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.cta-text > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .store-buttons {
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-footer {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
    margin-top: var(--space-md);
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3xl);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .store-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .hero-bg-shape {
        width: 80%;
        top: -10%;
        right: -20%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-highlights {
        align-items: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        padding: var(--space-2xl);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-slow);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
    }

    .hero {
        padding-top: calc(var(--navbar-height) + var(--space-3xl));
        padding-bottom: var(--space-3xl);
        min-height: auto;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .phone-screen {
        padding: var(--space-lg) var(--space-md);
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .step {
        grid-template-columns: auto 1fr;
        gap: var(--space-lg);
    }

    .step-visual {
        display: none;
    }

    .step-number {
        font-size: 2rem;
        min-width: 40px;
    }

    .about-content {
        gap: var(--space-2xl);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    .feature-card {
        padding: var(--space-xl);
    }

    .step {
        padding: var(--space-xl);
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
