:root {
  --apple-blue: #0071e3;
  --link-blue-light: #0066cc;
  --link-blue-dark: #2997ff;
  --pure-black: #000000;
  --light-gray: #f5f5f7;
  --near-black: #1d1d1f;
  --dark-surface-1: #272729;
  --dark-surface-2: #28282a;
  --focus-outline: 2px solid #0071e3;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.374px;
    background: var(--pure-black);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
.display-hero {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -1px;
}
.display-subhero {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}
.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.10;
    letter-spacing: -0.5px;
}
.card-title {
    font-size: 1.31rem;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.231px;
    margin-bottom: 0.5rem;
}
.body-text {
    font-size: 1.06rem;
    font-weight: 400;
    line-height: 1.47;
}
.fs-20 { font-size: 1.25rem; line-height: 1.5; }
.text-gray { color: rgba(255, 255, 255, 0.75); }
.text-left { text-align: left; }
.flex-left { display: flex; justify-content: flex-start; }
.font-weight-600 { font-weight: 600; }
.text-white { color: #ffffff; }
.text-black { color: #1d1d1f; }

/* Buttons */
.btn-primary {
    background: var(--apple-blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 980px; /* Fully rounded buttons like modern OS */
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}
.btn-primary:active {
    background: #005bb5;
    transform: scale(0.98);
}
.btn-primary:hover {
    filter: brightness(1.1);
}
.btn-pill {
    background: transparent;
    color: var(--link-blue-dark);
    padding: 10px 18px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 500;
    border: 1px solid var(--link-blue-dark);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-light .btn-pill {
    color: var(--link-blue-light);
    border-color: var(--link-blue-light);
}
.btn-pill:hover span {
    transform: translateX(4px);
    transition: transform 0.2s;
}
.btn-large {
    padding: 14px 28px;
    font-size: 1.15rem;
}

/* Layout & Sections */
.section-dark {
    background-color: var(--pure-black);
    color: #ffffff;
    padding: 140px 20px;
}
.section-light {
    background-color: var(--light-gray);
    color: var(--near-black);
    padding: 140px 20px;
}
.section-light .body-text, .section-light .text-gray {
    color: rgba(0, 0, 0, 0.65);
}
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-4 { gap: 1rem; }
.pb-0 { padding-bottom: 0px !important; }
.pt-0 { padding-top: 0px !important; }

/* hero specific */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15vh;
}
.hero-content {
    text-align: center;
    z-index: 2;
    margin-bottom: 60px;
}
.hero-image-container {
    width: 100%;
    height: auto;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
}
.hero-image-container img {
    height: 70vh;
    width: auto;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    box-shadow: rgba(0, 0, 0, 0.4) 0px -10px 60px;
}

/* split section */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 834px) {
    .split-grid { grid-template-columns: 1fr; gap: 40px; }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr; }
}
.full-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 40px 0px;
}

/* Specific UI Components */
.apple-list {
    list-style: none;
    padding-left: 0;
}
.apple-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}
.apple-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--apple-blue);
    border-radius: 50%;
}

.card-modern {
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.08) 0px 12px 30px;
}
.card-light-surface {
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.03) 0px 4px 20px;
}
.card-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--apple-blue);
    letter-spacing: 0.02em;
}

.apple-grid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 18px;
    border-radius: 980px;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navigation */
.apple-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    letter-spacing: -0.2px;
}
.nav-links {
    display: flex;
}
@media (max-width: 600px) {
    .nav-links { display: none; }
}
.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    padding: 0 18px;
    transition: color 0.2s;
    font-weight: 400;
}
.nav-links a:hover { color: white; }
.nav-btn-small {
    background: var(--apple-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-btn-small:hover { background: #005bb5; }

/* footer */
.apple-footer {
    background: var(--light-gray);
    color: rgba(0,0,0,0.5);
    padding: 60px 20px;
}
.micro-text {
    font-size: 13px;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: rgba(0,0,0,0.5); text-decoration: none; margin-left: 20px; }
.footer-links a:hover { text-decoration: underline; color: rgba(0,0,0,0.8); }

/* Animations Basics */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
}
.reveal-image {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: 1fr; gap: 30px; }
}
.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.metric-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.metric-label {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Testimonials Carousel */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 30px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.nav-btn {
    background: rgba(0,0,0,0.05);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--near-black);
    transition: all 0.2s;
}
.nav-btn:hover {
    background: rgba(0,0,0,0.1);
    transform: scale(1.05);
}
.carousel-card {
    scroll-snap-align: center;
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: rgba(0,0,0,0.03) 0 10px 40px;
}
@media (max-width: 600px) {
    .carousel-card { min-width: 280px; max-width: 280px; padding: 25px; }
}
.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.8);
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Case Study Block */
.cases-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cases-carousel::-webkit-scrollbar {
    display: none;
}
.case-card-slide {
    scroll-snap-align: center;
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
}
@media (max-width: 1000px) {
    .case-card-slide {
        width: 100%;
        min-width: 100%;
    }
}
@media (max-width: 900px) {
    .case-study-card {
        grid-template-columns: 1fr !important;
        padding: 40px !important;
        gap: 40px !important;
    }
}
@media (max-width: 600px) {
    .case-study-card {
        padding: 25px !important;
    }
}
