/* Apple-inspired design system with clean aesthetics and refined colors */

:root {
    /* Apple-inspired color palette */
    --background: hsl(0, 0%, 100%);
    --background-secondary: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 5%);
    --foreground-secondary: hsl(0, 0%, 35%);

    /* Card system */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 5%);
    --card-hover: hsl(0, 0%, 98%);

    /* Apple-style grays */
    --gray-50: hsl(0, 0%, 98%);
    --gray-100: hsl(0, 0%, 95%);
    --gray-200: hsl(0, 0%, 90%);
    --gray-300: hsl(0, 0%, 82%);
    --gray-400: hsl(0, 0%, 64%);
    --gray-500: hsl(0, 0%, 45%);
    --gray-600: hsl(0, 0%, 32%);
    --gray-700: hsl(0, 0%, 25%);
    --gray-800: hsl(0, 0%, 15%);
    --gray-900: hsl(0, 0%, 9%);

    /* Apple blue accent */
    --apple-blue: hsl(211, 100%, 50%);
    --apple-blue-hover: hsl(211, 100%, 45%);
    
    /* System colors */
    --primary: hsl(0, 0%, 9%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-hover: hsl(0, 0%, 15%);

    --secondary: hsl(0, 0%, 95%);
    --secondary-foreground: hsl(0, 0%, 9%);
    --secondary-hover: hsl(0, 0%, 90%);

    --accent: hsl(211, 100%, 50%);
    --accent-foreground: hsl(0, 0%, 98%);
    --accent-hover: hsl(211, 100%, 45%);

    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);

    --border: hsl(0, 0%, 90%);
    --border-light: hsl(0, 0%, 95%);
    --input: hsl(0, 0%, 100%);
    --ring: hsl(211, 100%, 50%);

    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 98%);

    /* Apple-style radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Apple-style shadows */
    --shadow-sm: 0 1px 2px 0 hsla(0, 0%, 0%, 0.05);
    --shadow: 0 1px 3px 0 hsla(0, 0%, 0%, 0.1), 0 1px 2px -1px hsla(0, 0%, 0%, 0.1);
    --shadow-md: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1), 0 2px 4px -2px hsla(0, 0%, 0%, 0.1);
    --shadow-lg: 0 10px 15px -3px hsla(0, 0%, 0%, 0.1), 0 4px 6px -4px hsla(0, 0%, 0%, 0.1);
    --shadow-xl: 0 20px 25px -5px hsla(0, 0%, 0%, 0.1), 0 8px 10px -6px hsla(0, 0%, 0%, 0.1);

    /* Typography scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Spacing scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode follows Apple's sophisticated dark theme */
        --background: hsl(0, 0%, 6%);
        --background-secondary: hsl(0, 0%, 8%);
        --foreground: hsl(0, 0%, 95%);
        --foreground-secondary: hsl(0, 0%, 70%);

        --card: hsl(0, 0%, 8%);
        --card-foreground: hsl(0, 0%, 95%);
        --card-hover: hsl(0, 0%, 10%);

        --gray-50: hsl(0, 0%, 8%);
        --gray-100: hsl(0, 0%, 10%);
        --gray-200: hsl(0, 0%, 15%);
        --gray-300: hsl(0, 0%, 20%);
        --gray-400: hsl(0, 0%, 40%);
        --gray-500: hsl(0, 0%, 55%);
        --gray-600: hsl(0, 0%, 70%);
        --gray-700: hsl(0, 0%, 80%);
        --gray-800: hsl(0, 0%, 90%);
        --gray-900: hsl(0, 0%, 95%);

        --primary: hsl(0, 0%, 95%);
        --primary-foreground: hsl(0, 0%, 6%);
        --primary-hover: hsl(0, 0%, 90%);

        --secondary: hsl(0, 0%, 10%);
        --secondary-foreground: hsl(0, 0%, 95%);
        --secondary-hover: hsl(0, 0%, 15%);

        --accent: hsl(211, 100%, 55%);
        --accent-foreground: hsl(0, 0%, 6%);
        --accent-hover: hsl(211, 100%, 60%);

        --muted: hsl(0, 0%, 10%);
        --muted-foreground: hsl(0, 0%, 55%);

        --border: hsl(0, 0%, 15%);
        --border-light: hsl(0, 0%, 12%);
        --input: hsl(0, 0%, 8%);
        --ring: hsl(211, 100%, 55%);

        --destructive: hsl(0, 84%, 60%);
        --destructive-foreground: hsl(0, 0%, 95%);
    }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--foreground-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: var(--accent-foreground);
    font-weight: bold;
    font-size: var(--font-size-sm);
}

.logo-text {
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link {
    color: var(--foreground-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: var(--font-size-sm);
}

.btn-xl {
    height: 3rem;
    padding: 0 2rem;
    font-size: var(--font-size-lg);
    min-width: 12rem;
}

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

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

.btn-ghost {
    background-color: transparent;
    color: var(--foreground-secondary);
}

.btn-ghost:hover {
    background-color: var(--gray-100);
    color: var(--foreground);
}

.btn-hero {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-xl);
}

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

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

.btn-outline:hover {
    background-color: var(--gray-100);
}

.btn-outline-white {
    background-color: hsla(255, 255%, 255%, 0.1);
    color: white;
    border: 1px solid hsla(255, 255%, 255%, 0.2);
}

.btn-outline-white:hover {
    background-color: hsla(255, 255%, 255%, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(0, 0%, 0%, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: hsla(255, 255%, 255%, 0.9);
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: hsla(255, 255%, 255%, 0.8);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 1s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid hsla(255, 255%, 255%, 0.3);
    border-radius: 999px;
    display: flex;
    justify-content: center;
}

.scroll-dot {
    width: 0.25rem;
    height: 0.75rem;
    background-color: hsla(255, 255%, 255%, 0.6);
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* EDS Benefits */
.eds-benefits {
    padding: var(--spacing-5xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
}

.benefit-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background-color: hsla(211, 100%, 50%, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--accent);
}

.benefit-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: 1.3;
}

.benefit-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-color: hsla(211, 100%, 50%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
    flex-shrink: 0;
    color: var(--accent);
    font-size: var(--font-size-xs);
}

.benefit-item span {
    color: var(--foreground-secondary);
}

/* Business Solutions */
.business-solutions {
    padding: var(--spacing-5xl) 0;
    background-color: var(--background-secondary);
}

.solutions-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.solution-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.solution-card:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.solution-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.1);
}

.solution-content {
    padding: 2rem;
}

.solution-category {
    font-size: var(--font-size-sm);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.solution-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.solution-description {
    color: var(--foreground-secondary);
    margin-bottom: 1.5rem;
}

.solution-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.solution-link:hover {
    color: var(--accent-hover);
}

/* Call to Action */
.cta {
    padding: var(--spacing-5xl) 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--background-secondary) 100%);
}

.cta-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--foreground-secondary);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--foreground-secondary);
}

.phone-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--accent-hover);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(-50%, 0, 0);
    }
    40%, 43% {
        transform: translate3d(-50%, -10px, 0);
    }
    70% {
        transform: translate3d(-50%, -5px, 0);
    }
    90% {
        transform: translate3d(-50%, -2px, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-xl {
        min-width: auto;
        width: 100%;
    }
}