/* ===================================
   Global Styles & Reset
   =================================== */

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

:root {
    /* Color System - Clean Blue Theme (inspired by reference) */
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #60a5fa;
    --color-secondary: #1e40af;
    --color-accent: #3b82f6;

    /* Neutrals */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-background: #ffffff;
    --color-background-alt: #f8fafc;
    --color-background-blue: #eff6ff;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-info: #3b82f6;
    --color-warning: #f59e0b;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */

    /* Spacing Scale */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 0.75rem;  /* 12px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 3rem;    /* 48px */
    --spacing-3xl: 4rem;    /* 64px */
    --spacing-4xl: 6rem;    /* 96px */

    /* Borders & Radius */
    --border-radius-sm: 0.375rem;  /* 6px */
    --border-radius-md: 0.5rem;    /* 8px */
    --border-radius-lg: 0.75rem;   /* 12px */
    --border-radius-xl: 1rem;      /* 16px */
    --border-radius-2xl: 1.5rem;   /* 24px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

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

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: var(--color-background-blue);
    padding: var(--spacing-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* ===================================
   Apps Section
   =================================== */

.apps-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-background-alt);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    letter-spacing: -0.02em;
}

.app-card {
    background: white;
    border-radius: var(--border-radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-xl);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.app-header {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.app-icon {
    flex-shrink: 0;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.app-icon img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.app-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.policy-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.policy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: var(--color-background-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.policy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.policy-link:hover {
    border-color: var(--color-primary);
    background: white;
    transform: translateX(4px);
}

.policy-link:hover::before {
    transform: scaleY(1);
}

.policy-link-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.policy-link-content svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.policy-link span {
    font-size: var(--font-size-base);
    font-weight: 600;
}

.arrow-icon {
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.policy-link:hover .arrow-icon {
    color: var(--color-primary);
    transform: translateX(4px);
}

.app-meta {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.meta-item {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.future-apps-notice {
    text-align: center;
    padding: var(--spacing-2xl);
    background: white;
    border-radius: var(--border-radius-xl);
    border: 2px dashed var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    padding: var(--spacing-4xl) 0;
    background: white;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-primary);
    color: white !important;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.contact-button svg {
    color: white;
}

.contact-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--color-background-alt);
    border-top: 1px solid var(--color-border-light);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-text {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

/* ===================================
   Policy Page Styles
   =================================== */

.policy-header {
    background: var(--color-background-blue);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-light);
}

.policy-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.policy-meta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.policy-meta-item {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.policy-breadcrumb {
    padding: var(--spacing-lg) 0;
    background: white;
    border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.policy-content {
    padding: var(--spacing-4xl) 0;
    background: white;
}

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

.policy-text h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
}

.policy-text h2:first-child {
    margin-top: 0;
}

.policy-text h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.policy-text p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.policy-text ul,
.policy-text ol {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.policy-text li {
    margin-bottom: var(--spacing-sm);
}

.policy-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.policy-text a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.policy-text a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
}

.policy-actions {
    max-width: 800px;
    margin: var(--spacing-2xl) auto 0;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.action-button-primary {
    background: var(--color-primary);
    color: white !important;
    box-shadow: var(--shadow-md);
}

.action-button-primary svg {
    color: white;
}

.action-button-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.action-button-secondary {
    background: var(--color-background-alt);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.action-button-secondary:hover {
    background: white;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .hero-title,
    .policy-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .policy-links {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        gap: var(--spacing-md);
    }

    .hero,
    .policy-header {
        padding: var(--spacing-2xl) 0;
    }

    .apps-section,
    .contact-section,
    .policy-content {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title,
    .policy-title {
        font-size: var(--font-size-2xl);
    }

    .app-card {
        padding: var(--spacing-lg);
    }

    .policy-link {
        padding: var(--spacing-md);
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
