:root {
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: #d2d2d7;
    --bg-light: #ffffff;
    --bg-lighter: #fbfbfd;
    --accent: #0071e3;
    --accent-dark: #0077ed;
    --radius-sm: 12px;
    --radius-lg: 18px;
    --radius-pill: 980px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    --transition-fast: all 0.25s cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

/* Apple's actual font stack - uses system fonts */
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--text-primary);
    color: white;
}

/* ==========================================
   Global Navigation - Professional 2025/2026 style
   ========================================== */

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-wrapper {
    height: 100%;
}

.nav-content {
    max-width: 1280px; /* Wider, more relaxed container */
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo img {
    height: 56px; /* Larger, more prominent logo */
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Main navigation links */
.nav-items {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-items li {
    position: relative;
}

.nav-items a {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 430;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    line-height: 72px;
    opacity: 0.9;
    position: relative;
    padding: 0 4px;
    display: block;
    white-space: nowrap;
}

/* Subtle underline animation */
.nav-items a::after {
    content: "";
    position: absolute;
    bottom: 22px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0071e3;
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-items a:hover,
.nav-items a:focus {
    opacity: 1;
    color: #0071e3;
}

.nav-items a:hover::after {
    width: 75%;
}

/* Special treatment for Contact/Login Button */
.nav-items .submit-btn {
    font-weight: 500;
    color: white !important;
    opacity: 1;
    background: #1d1d1f;
    padding: 8px 20px;
    border-radius: 20px;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* margin-left: 8px; */
}

.nav-items .submit-btn:hover {
    background: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-items .submit-btn::after {
    display: none; /* No underline for button */
}

.contact {
    font-weight: 520;
    color: #0071e3 !important;
    opacity: 1;
}

.contact::after {
    background: #0071e3;
}

/* Very subtle active state (optional) */
.nav-items a.active {
    opacity: 1;
    font-weight: 520;
}

.nav-items a.active::after {
    width: 60%;
}

/* Hamburger Menu Button - Apple Style */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-origin: center;
}

/* Animated hamburger to X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile menu toggle */
@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .nav-items {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(24px);
        -webkit-backdrop-filter: saturate(180%) blur(24px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        z-index: 1000;
    }

    .nav-items.active {
        max-height: calc(100vh - 72px);
        opacity: 1;
        overflow-y: auto;
    }

    .nav-items li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-items li:last-child {
        border-bottom: none;
    }

    .nav-items a {
        display: block;
        padding: 18px 24px;
        line-height: 1.5;
        font-size: 17px;
        width: 100%;
        opacity: 0.85;
    }

    .nav-items a:hover {
        background: rgba(0, 113, 227, 0.04);
        opacity: 1;
    }

    .nav-items a::after {
        display: none; /* No underline in mobile */
    }

    .nav-items .submit-btn {
        margin: 12px 24px 24px;
        width: calc(100% - 48px);
        text-align: center;
        padding: 14px 20px;
        border-radius: 24px;
    }

    .global-nav.scrolled {
        height: 64px;
    }

    .global-nav.scrolled .nav-items {
        top: 64px;
    }

    .global-nav.scrolled .nav-items.active {
        max-height: calc(100vh - 64px);
    }

    .logo img {
        height: 48px; /* Slightly smaller on mobile */
    }
}

/* Smooth scroll enhancement */
.global-nav.scrolled {
    height: 64px; /* Slightly smaller on scroll */
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.global-nav.scrolled .nav-items a {
    line-height: 64px;
}

.global-nav.scrolled .nav-items a::after {
    bottom: 18px;
}

.global-nav.scrolled ~ .mega-menu {
    top: 64px; /* Adjust mega-menu position when navbar is scrolled */
}

/* ─── Mega Menu – Professional with Icons ───────────────────────────── */
.mega-menu {
    position: fixed;
    top: 72px; /* matches navbar height */
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 56px 0 64px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
        opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 0s linear 0.35s;
    z-index: 998;
}

/* Create invisible hover bridge between nav and mega-menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.menu-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}

.mega-column h3 {
    font-size: 11px;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column li {
    margin-bottom: 4px;
}

.mega-column a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 430;
    color: #1d1d1f;
    text-decoration: none;
    line-height: 1.4;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mega-column a:hover {
    background: rgba(0, 113, 227, 0.06);
    color: #0071e3;
    transform: translateX(4px);
}

.mega-column a:hover .menu-icon {
    color: #0071e3;
    transform: scale(1.1);
}

/* Icon styling */
.menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #86868b;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-column a span {
    flex: 1;
}

/* Special styling for primary column */
.mega-column.primary a {
    font-size: 17px;
    font-weight: 460;
}

/* OS Info Box styling */
.os-info-box {
    background: linear-gradient(135deg, #f5f5f7 0%, #fafafa 100%);
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.os-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.os-item:first-child {
    padding-top: 0;
}

.os-item:last-child {
    padding-bottom: 0;
}

.os-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.os-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.os-item > div {
    flex: 1;
}

.os-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.os-item p {
    font-size: 13px;
    color: #6e6e73;
    margin: 0;
    line-height: 1.4;
}

/* OS Range text styling in mega menu */
.mega-column .os-range {
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e73;
    font-weight: 400;
    margin-bottom: 16px;
}

/* Mobile – stack columns vertically */
@media (max-width: 1024px) {
    .menu-grid-three {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mega-menu {
        padding: 40px 0 56px;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    
    .mega-menu-content {
        padding: 0 24px;
    }
    
    .os-info-box {
        margin-bottom: 16px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 997;
    pointer-events: none;
}

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

/* ─── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000; /* fallback color */
}

.hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Dark overlay - controls text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58); /* 0.55–0.65 works best for most videos */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    color: white;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 400;
    line-height: 1.3;
    max-width: 720px;
    margin: 0 auto 40px;
    opacity: 0.92;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 21px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }
}

/* Optional: subtle parallax effect on scroll (modern touch) */
.hero-video {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.022em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.cta-btn.primary:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.05);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: scale(1.05);
}

/* Fade in animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* ─── Static Legal / CMS Pages ───────────────────────── */

.static-page-section {
    background: var(--bg-lighter);
    padding: 50px 0;
}

.static-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.static-header {
    text-align: center;
    margin-bottom: 72px;
}

.static-header h2 {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.static-content {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 72px;
    box-shadow: var(--shadow-md);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* CKEditor safe content */
.static-content h1,
.static-content h2,
.static-content h3,
.static-content h4 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.static-content h3 {
    font-size: 24px;
}

.static-content p {
    margin-bottom: 16px;
}

.static-content ul,
.static-content ol {
    margin: 16px 0 24px 22px;
}

.static-content li {
    margin-bottom: 8px;
}

.static-content a {
    color: var(--accent);
    text-decoration: underline;
}

.static-content img,
.static-content table {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .static-page-section {
        padding: 25px 0;
    }

    .static-header h2 {
        font-size: 40px;
    }

    .static-content {
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .static-content {
        padding: 32px 24px;
        font-size: 16px;
    }
}

.services-section {
    background:
        radial-gradient(1200px 400px at 50% -200px, rgba(0, 0, 0, 0.04), transparent 60%),
        linear-gradient(180deg, #f5f5f7 0%, #fafafa 45%, #ffffff 100%);
}

@media (min-width: 1024px) {
    .services-section {
        padding: 20px 120px;
    }
}

@media (min-width: 1440px) {
    .services-section {
        padding: 20px 150px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 21px;
    line-height: 1.38;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: #86868b;
}

.service-card {
    background: #ffffff;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
    min-height: 500px;
    align-items: stretch;
    border-radius: 36px;

    /* Subtle elevation */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.06);
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse > * {
    direction: ltr;
}

.service-card.reverse .service-visual {
    border-radius: 0 36px 36px 0;
}

.service-card.reverse .service-content {
    border-radius: 36px 0 0 36px;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.03);
}

.service-visual {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 36px 0 0 36px;
    overflow: hidden;
}

.service-visual svg {
    width: 110%;
    height: 110%;
    flex-shrink: 0;

    /* Keep it centered */
    position: absolute;
    inset: -5%;

    /* Prevent distortion */
    object-fit: cover;
}

.service-content {
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-radius: 0 36px 36px 0;
    box-shadow: -1px 0 0 rgba(0, 0, 0, 0.03);
}

.service-content h3 {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    line-height: 1.08;
    margin-bottom: 20px;
}

.service-content p {
    font-size: 17px;
    line-height: 1.47;
    font-weight: 400;
    letter-spacing: -0.012em;
    color: #86868b;
    margin-bottom: 24px;
}

.service-cta {
    color: #0071e3;
    font-size: 17px;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
}

.service-cta:hover {
    text-decoration: underline;
}

.icon {
    stroke: white;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .service-card {
        transition:
            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 40px;
    }

    .section-header p {
        font-size: 19px;
    }

    .service-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-card.reverse {
        direction: ltr;
    }

    .service-content {
        padding: 60px 40px;
    }

    .service-content h3 {
        font-size: 32px;
    }

    .service-visual {
        min-height: 350px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 30px 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 17px;
    }

    .service-card {
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .service-content {
        padding: 40px 28px;
    }

    .service-content h3 {
        font-size: 28px;
    }

    .service-content p {
        font-size: 16px;
    }

    .service-visual {
        min-height: 280px;
    }
}

@media (max-width: 1024px) {
    /* Card becomes one surface */
    .service-card {
        border-radius: 28px;
        overflow: hidden;
    }

    /* Visual section: only top corners rounded */
    .service-visual {
        border-radius: 28px 28px 0 0;
    }

    /* Content section: only bottom corners rounded */
    .service-content {
        border-radius: 0 0 28px 28px;

        /* Remove seam shadow */
        box-shadow: none;
    }

    /* Reverse cards behave the same on mobile */
    .service-card.reverse .service-visual,
    .service-card.reverse .service-content {
        border-radius: unset;
    }

    .service-card.reverse .service-visual {
        border-radius: 28px 28px 0 0;
    }

    .service-card.reverse .service-content {
        border-radius: 0 0 28px 28px;
    }
}

@media (max-width: 640px) {
    .service-card {
        border-radius: 24px;
    }

    .service-visual {
        border-radius: 24px 24px 0 0;
    }

    .service-content {
        border-radius: 0 0 24px 24px;
    }
}

@media (max-width: 1024px) {
    .service-visual {
        width: 100%;
        aspect-ratio: 4 / 3;
        /* Apple-like hero ratio */
        min-height: 260px;
        overflow: hidden;
    }

    .service-visual svg {
        /* width: 100%; */
        height: 100%;
        display: block;
    }
}

@media (max-width: 640px) {
    .service-visual {
        aspect-ratio: 1 / 1;
        /* square feels better on phones */
        min-height: 220px;
    }
}


/* ─── Detail Sections (Apple Style) ──────────────── */
.detail-section.apple-style {
    padding: 60px 0;
    background: white;
}

.detail-section.apple-style.alt {
    background: var(--bg-lighter);
}

.detail-container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 72px;
}

.detail-eyebrow {
    font-size: 17px;
    line-height: 1.47;
    font-weight: 600;
    letter-spacing: 0.012em;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.detail-header h2 {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.detail-lead {
    font-size: 24px;
    line-height: 1.38;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.os-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.os-badge {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.os-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.os-version {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.012em;
    color: var(--text-secondary);
}

/* Detail Cards Grid */
.detail-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 0 auto 56px;
}

.detail-cards-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.detail-section.apple-style.alt .detail-card {
    background: white;
}

.detail-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.2);
}

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

.detail-card-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
    line-height: 0; /* critical for SVG centering */
}

.detail-card-icon svg {
    display: block;
    transform: translateY(-0.5px);
}

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

.detail-card h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.detail-card p {
    font-size: 15px;
    line-height: 1.47;
    font-weight: 400;
    letter-spacing: -0.012em;
    color: var(--text-secondary);
}

.detail-cta-container {
    text-align: center;
    margin-top: 56px;
}

.detail-cta-large {
    display: inline-block;
    background: var(--text-primary);
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.016em;
    transition: var(--transition);
}

.detail-cta-large:hover {
    background: #000;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Legacy detail container for backwards compatibility */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: center;
}

.detail-container.reverse {
    direction: rtl;
}

.detail-container.reverse > * {
    direction: ltr;
}

.detail-content h2 {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.detail-content .subheading {
    font-size: 24px;
    line-height: 1.38;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.detail-content p {
    font-size: 17px;
    line-height: 1.47;
    font-weight: 400;
    letter-spacing: -0.012em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detail-list {
    list-style: none;
    margin: 32px 0;
}

.detail-list li {
    font-size: 17px;
    line-height: 1.47;
    padding: 16px 0;
    padding-left: 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
    letter-spacing: -0.015em;
}

.detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-cta {
    display: inline-block;
    margin-top: 32px;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.016em;
    color: var(--accent);
    transition: color 0.3s ease;
}

.detail-cta:hover {
    color: var(--accent-dark);
}

.detail-visual {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ─── Footer ───────────────────────────────────── */
.footer {
    background: var(--bg-light);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 60px;
    margin-bottom: 32px;
}

/* Left Column - Links */
.footer-links-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--text-primary);
}

/* Right Column - Contact Form */
.footer-contact {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    height: fit-content;
}

.footer-contact h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact p {
    display: none;
}

.contact-form .form-group {
    margin-bottom: 10px;
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

#charCount {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.06);
}

.contact-form textarea {
    min-height: 70px;
    resize: vertical;
    padding-bottom: 28px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.submit-btn {
    width: 100%;
    background: var(--text-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-bottom-links a {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom-links span {
    color: var(--border);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-contact {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 56px 0 24px;
    }

    .footer-main {
        padding: 0 24px;
        gap: 40px;
        margin-bottom: 48px;
        display: flex;
        flex-direction: column;
    }

    .footer-contact {
        order: -1;
        max-width: 100%;
    }

    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        padding: 24px 24px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── Scroll Animations ───────────────────────────── */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for cards */
.detail-card.scroll-animate:nth-child(1) {
    transition-delay: 0.05s;
}
.detail-card.scroll-animate:nth-child(2) {
    transition-delay: 0.1s;
}
.detail-card.scroll-animate:nth-child(3) {
    transition-delay: 0.15s;
}
.detail-card.scroll-animate:nth-child(4) {
    transition-delay: 0.2s;
}
.detail-card.scroll-animate:nth-child(5) {
    transition-delay: 0.25s;
}
.detail-card.scroll-animate:nth-child(6) {
    transition-delay: 0.3s;
}
.detail-card.scroll-animate:nth-child(7) {
    transition-delay: 0.35s;
}
.detail-card.scroll-animate:nth-child(8) {
    transition-delay: 0.4s;
}

.service-card,
.detail-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpScroll 0.8s ease-out forwards;
}

@keyframes fadeInUpScroll {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Media Queries ────────────────────────────────── */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 64px;
    }

    .hero p {
        font-size: 24px;
    }

    .section-header h2,
    .detail-content h2,
    .detail-header h2 {
        font-size: 48px;
    }

    .detail-container {
        gap: 64px;
    }

    .detail-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .detail-cards-grid.cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .mega-menu {
        display: none;
    }

    .menu-grid-three {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 21px;
    }

    .section-header h2 {
        font-size: 40px;
    }

    .section-header p {
        font-size: 19px;
    }

    .services-section,
    .contact-section,
    .detail-section {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .detail-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-container.reverse {
        direction: ltr;
    }

    .detail-visual {
        order: -1;
        height: 320px;
    }

    .detail-content h2,
    .detail-header h2 {
        font-size: 40px;
    }

    .detail-lead {
        font-size: 19px;
    }

    .os-info-grid {
        grid-template-columns: 1fr;
    }

    .detail-cards-grid,
    .detail-cards-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 19px;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .detail-content h2 {
        font-size: 32px;
    }

    .contact-form {
        padding: 24px;
    }
}