/* HOMESTYLE Landing Page - Design System */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Primary Colors - Deep Navy */
    --color-primary: #1A1A2E;
    --color-primary-50: #F5F5F7;
    --color-primary-100: #E8E8ED;
    --color-primary-200: #D1D1DB;
    --color-primary-300: #A3A3B3;
    --color-primary-400: #6B6B80;
    --color-primary-500: #1A1A2E;
    --color-primary-600: #151525;
    --color-primary-700: #10101C;
    --color-primary-800: #0A0A12;
    --color-primary-900: #050509;

    /* Accent Colors - Rich Gold */
    --color-accent: #C9A962;
    --color-accent-50: #FBF8F1;
    --color-accent-100: #F5EFD9;
    --color-accent-200: #EBDFB3;
    --color-accent-300: #DFCC88;
    --color-accent-400: #D4BA6D;
    --color-accent-500: #C9A962;
    --color-accent-600: #B8944A;
    --color-accent-700: #96763B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-300) 100%);
    --gradient-gold-subtle: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.05) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.8) 100%);

    /* Light Theme (default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #585866;
    --text-muted: #9CA3AF;
    --border-color: #E2E8F0;
    --shadow-color: rgba(26, 26, 46, 0.06);
    --shadow-hover: rgba(26, 26, 46, 0.12);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 20px;

    /* Spacing */
    --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;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Font Family */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

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

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

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: transform var(--transition-base), background var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.1);
}

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

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
}

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

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

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

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

/* Language Selector */
.lang-selector {
    display: flex;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lang-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.15);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-sm);
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: var(--space-xl);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(201, 169, 98, 0.08) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(26, 26, 46, 0.03) 0%, transparent 40%);
}

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

.hero-content {
    position: relative;
    z-index: 1;
    padding-right: var(--space-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(201, 169, 98, 0.1);
    color: var(--color-accent-700);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Store Buttons */
.store-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 28px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    transition: all var(--transition-bounce);
    box-shadow: 0 10px 25px rgba(26, 26, 46, 0.15);
    border: 1px solid transparent;
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 26, 46, 0.25);
    background: var(--color-primary-600);
}

.store-btn svg {
    width: 28px;
    height: 28px;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.store-btn-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

/* App Preview */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    background: var(--color-primary);
    border-radius: 56px;
    padding: 12px;
    box-shadow:
        0 50px 100px -20px rgba(26, 26, 46, 0.4),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 44px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
}

.hero-decoration:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -100px;
    background: rgba(201, 169, 98, 0.15);
}

.hero-decoration:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -200px;
    background: rgba(26, 26, 46, 0.05);
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-content {
        padding-right: 0;
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

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

    .phone-mockup {
        width: 260px;
        height: 520px;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    margin: 0 auto 4rem;
    font-size: 1.25rem;
    max-width: 600px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: rgba(201, 169, 98, 0.3);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-gold-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(201, 169, 98, 0.1);
    transition: transform var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto var(--space-2xl);
    position: relative;
    z-index: 1;
}

.cta .hero-buttons {
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta .store-btn {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta .store-btn:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-4xl) var(--space-lg);
}

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

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-column h4 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer .container {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   Page Specific: Legal (Privacy, Terms)
   ============================================ */

/* Page Header with Gradient */
.page-header {
    padding: calc(72px + var(--space-4xl)) 0 var(--space-3xl);
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a4a 50%, var(--color-primary-600) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(201, 169, 98, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 169, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Content Section */
.content-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    min-height: 60vh;
}

/* Legal Content Card */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.legal-content ul {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: 0;
    list-style: none;
}

.legal-content li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content {
        margin: 0 var(--space-md);
        padding: var(--space-xl);
        border-radius: var(--radius-lg);
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Utilities
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}