:root {
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-link: #0066cc;
  --bg-white: #fbfbfd;
  --bg-dark: #000000;
  --bg-gray: #f5f5f7;
  --accent-blue: #0071e3;
  --font-family: 'SF Pro Display', 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-white);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================
   APPLE-STYLE GLOBAL NAV
   ======================== */
header.navbar {
  width: 100%;
  height: 44px;
  padding: 0 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 9999;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1024px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

.lang-btn {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease;
}
.lang-btn:hover {
  opacity: 1;
}

/* ========================
   MAIN CONTAINER
   ======================== */
main {
  width: 100%;
}

/* ========================
   HERO SECTION (Dark, Full-Width)
   ======================== */
.hero-section {
  background: var(--bg-dark);
  text-align: center;
  padding: 10rem 2rem 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.04em;
  line-height: 1.07;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
}

.hero-link-primary {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #fff;
  background: var(--accent-blue);
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero-link-primary:hover {
  background: #0077ed;
}

.hero-link-secondary {
  font-size: 1.3125rem;
  font-weight: 400;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: text-decoration 0.3s ease;
}

.hero-link-secondary:hover {
  text-decoration: underline;
}

.hero-link-secondary .chevron {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.hero-link-secondary:hover .chevron {
  transform: translateX(3px);
}

/* ========================
   SECTION: TILE PANELS (Apple Bento Style)
   ======================== */
.tile-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.75rem;
}

.tile-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tile-row.two-col {
  grid-template-columns: 1fr 1fr;
}

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

.tile {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.tile-dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.tile-light {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.tile-content {
  padding: 3.5rem 2.5rem 2rem;
}

.tile-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.625rem;
}

.tile-desc {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.47;
  max-width: 480px;
  margin: 0 auto;
}

.tile-dark .tile-desc {
  color: var(--text-secondary);
}

.tile-light .tile-desc {
  color: #6e6e73;
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--accent-blue);
  text-decoration: none;
  margin-top: 0.75rem;
  transition: text-decoration 0.3s ease;
}

.tile-link:hover {
  text-decoration: underline;
}

.tile-link .chevron {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.tile-link:hover .chevron {
  transform: translateX(3px);
}

/* ========================
   SECTION: FULL-WIDTH SHOWCASE (Dark bg, Centered)
   ======================== */
.showcase-section {
  background: var(--bg-dark);
  padding: 5rem 2rem 6rem;
  text-align: center;
  border-radius: 0;
}

.showcase-section .section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}

.splide {
  max-width: 1600px; /* Much wider for large monitors */
  width: 95%;
  margin: 0 auto;
  padding-bottom: 3rem; /* space for pagination dots */
}

.splide__pagination__page.is-active {
  background: var(--accent-blue);
}

.slide-content {
  position: relative;
  height: 700px; /* Taller for cinematic feel */
  background: #111112; /* Deep dark background */
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating frosted-glass text box */
.slide-text {
  position: absolute;
  left: 4rem;
  bottom: 4rem;
  max-width: 480px;
  background: rgba(29, 29, 31, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.slide-text h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slide-text p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #a1a1a6;
  line-height: 1.5;
}

/* Full-area image wrapper */
.slide-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3rem; /* keep image away from edges */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.slide-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents any squishing or stretching */
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); /* Cinematic shadow */
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--bg-gray);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid #d2d2d7;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 992px) {
  .tile-row.two-col {
    grid-template-columns: 1fr;
  }
  .slide-content {
    height: 600px;
  }
  .slide-text {
    left: 2rem;
    bottom: 2rem;
    padding: 2rem;
    max-width: 400px;
  }
  .slide-text h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
  .hero-section {
    padding: 7rem 1.5rem 3.5rem;
  }
  .hero-links {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    display: none;
  }
  .tile-content {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  .tile-title {
    font-size: 1.4rem;
  }
  .slide-content {
    flex-direction: column;
    justify-content: flex-end;
    height: auto;
    min-height: 600px;
  }
  .slide-image-wrapper {
    position: relative;
    height: 350px;
    padding: 1rem;
  }
  .slide-text {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  .splide__arrow {
    display: none; /* Hide arrows on small screens, rely on swipe */
  }
}
