/* 
 * Swift Intelligence - Apple Style Minimalist CSS 
 * Pure Vanilla CSS, high performance
 */

:root {
    /* Apple Color Palette */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F5F5F7;
    --color-text-main: #1D1D1F;
    --color-text-muted: #86868B;
    --color-blue-primary: #0071E3;
    --color-blue-hover: #0077ED;
    --color-border: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Nav */
    --nav-height: 80px;
    --nav-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-blue-primary);
}

/* Typography classes */
.text-center { text-align: center; }
.text-left { text-align: left; }

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 50px;
    line-height: 1.5;
}

/* Layout */
.section {
    padding: 100px 20px;
}

.bg-light { background-color: var(--color-bg-light); }
.bg-white { background-color: var(--color-bg-white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--color-blue-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-blue-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-blue-primary);
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* ---------------------------------
   Nav
   --------------------------------- */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    height: 56px;
    width: auto;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text-main);
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 10000;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-text-main);
    position: absolute;
    transition: transform 0.3s;
}

.mobile-menu-toggle .bar:nth-child(1) { top: 6px; }
.mobile-menu-toggle .bar:nth-child(2) { bottom: 6px; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-white);
    z-index: 9998;
    padding-top: 80px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 0 40px;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu a {
    display: block;
    padding: 20px 0;
    color: var(--color-text-main);
    font-size: 24px;
    font-weight: 600;
}

/* ---------------------------------
   Hero Section
   --------------------------------- */
.hero {
    padding-top: calc(var(--nav-height) + 120px);
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--color-bg-light);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-headline {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-headline span {
    color: var(--color-blue-primary);
}

.hero-subheadline {
    font-size: clamp(19px, 3vw, 24px);
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-logo {
    max-width: 360px;
    width: 60%;
    height: auto;
    margin-bottom: 30px;
}

.hero-visual {
    margin-top: 60px;
    width: 100%;
    max-width: 980px;
    height: 300px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.abstract-device {
    width: 80%;
    height: 100%;
    background: linear-gradient(180deg, #E2E2E5 0%, #FFFFFF 100%);
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
    border-radius: 30px 30px 0 0;
    border: 1px solid rgba(255,255,255,1);
    position: relative;
    overflow: hidden;
}

.abstract-device::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 0 0 20px 20px;
}

/* ---------------------------------
   Features Grid
   --------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--color-bg-white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-title {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------------------------------
   Intro Section & Product Showcase
   --------------------------------- */
.intro-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.product-shot {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); /* Apple style deep shadow */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.intro-image:hover .product-shot {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 113, 227, 0.15); /* Tinted shadow to highlight */
}

/* ---------------------------------
   Servers Array
   --------------------------------- */
.servers-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.server-pill {
    padding: 14px 20px;
    background: var(--color-bg-light);
    border-radius: 100px;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    white-space: nowrap;
}

/* ---------------------------------
   Company Profile
   --------------------------------- */
.company-section {
    border-top: 1px solid var(--color-border);
}

.company-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 40px;
    font-weight: 600;
    color: var(--color-blue-primary);
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.corporate-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F5F5F7 0%, #E2E2E5 100%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* ---------------------------------
   Apple Reveal Animations
   --------------------------------- */
.apple-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------
   Footer
   --------------------------------- */
.global-footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 40px 20px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 30px;
}

.footer-col h4 {
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    text-decoration: underline;
    color: var(--color-text-main);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a {
    color: var(--color-text-muted);
}

.legal-links a:hover {
    color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 800px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-directory {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .intro-text .section-title, .intro-text .section-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* App Showcase Section */
.showcase-section {
    padding: 6rem 0;
    overflow-x: hidden;
}
.showcase-section.theme-dark {
    background-color: #FFFFFF;
    color: #1D1D1F;
}
.showcase-section.theme-light {
    background-color: #f7f7f9;
    color: #1D1D1F;
}

.showcase-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    padding: 0 5%;
}

.mockup-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 3rem; 
    padding: 2rem 5vw 5rem 5vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mockup-gallery::-webkit-scrollbar { display: none; }

/* Minimalist Ultra-Premium Edge */
.iphone-frame {
    flex: 0 0 auto;
    width: 280px;
    height: 606px;
    border-radius: 44px;
    background-color: #000;
    box-shadow: 
        0 0 0 2px #333,
        0 30px 60px rgba(0,0,0,0.4); 
    overflow: hidden; 
    scroll-snap-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px; 
}

/* Light mode minimal edge */
.iphone-frame.silver {
    background-color: #fff;
    box-shadow: 
        0 0 0 2px #e5e5ea,
        0 30px 60px rgba(0,0,0,0.1);
}

.iphone-frame:hover {
    transform: scale(1);
}

/* Screen */
.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 38px; 
    overflow: hidden;
    background: #000; 
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .iphone-frame {
        width: 250px;
        height: 540px;
        border-radius: 40px;
        padding: 6px;
    }
    .iphone-screen { border-radius: 34px; }
}
