/**
 * DevLanka v8 — Combined Apple Design System & Modern Template
 * High-performance 120 FPS spring physics, continuous squircles, frosted glassmorphism
 */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Container & Layout */
.app-container {
  width: 90%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header & Sticky Frosted Glass Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-text, #1D1D1F);
  text-decoration: none;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-logo .accent {
  color: var(--apple-blue, #0071E3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--apple-text-secondary, #86868B);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--apple-text, #1D1D1F);
  background-color: rgba(0, 0, 0, 0.04);
}

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--apple-text);
  border-radius: 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem 0;
  border-top: 1px solid var(--apple-border-subtle, rgba(0, 0, 0, 0.04));
}

.mobile-menu.is-open {
  display: flex;
}

/* ==========================================================================
   Hero Section & Apple Ambient Orbs
   ========================================================================== */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 10%, #FFFFFF 0%, var(--apple-bg, #F5F5F7) 100%);
  padding: 5rem 0 4rem 0;
}

/* Apple Ambient Floating Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(55px);
  opacity: 0.65;
  will-change: transform;
  transform: translateZ(0);
}

.orb-one {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.35) 0%, rgba(175, 82, 222, 0.18) 60%, transparent 80%);
  animation: floatOrbOne 7s ease-in-out infinite;
}

.orb-two {
  width: 300px;
  height: 300px;
  bottom: 20px;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.30) 0%, rgba(52, 199, 89, 0.18) 60%, transparent 80%);
  animation: floatOrbTwo 9s ease-in-out infinite;
}

@keyframes floatOrbOne {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-24px) rotate(6deg);
  }
}

@keyframes floatOrbTwo {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(-6deg);
  }
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--apple-text, #1D1D1F);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--apple-blue, #0071E3);
  background: linear-gradient(135deg, #0071E3 0%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--apple-text-secondary, #86868B);
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Services Section & Apple Squircle Cards
   ========================================================================== */
.services-section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.section-header .section-eyebrow {
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  letter-spacing: -0.028em;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--apple-text-secondary, #86868B);
  font-size: 1.1rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-squircle-card {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-lg, 22px);
  padding: 2.25rem;
  box-shadow: var(--apple-shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-squircle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-card-hover, 0 12px 32px rgba(0, 0, 0, 0.08));
  border-color: rgba(0, 0, 0, 0.14);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--apple-blue-subtle, rgba(0, 113, 227, 0.09));
  color: var(--apple-blue, #0071E3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-squircle-card:hover .service-icon-box {
  transform: scale(1.06);
}

.service-squircle-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text, #1D1D1F);
  margin-bottom: 0.75rem;
}

.service-squircle-card p {
  color: var(--apple-text-secondary, #86868B);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Contact Section & Elevated Apple Surface
   ========================================================================== */
.contact-section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 2;
}

.contact-card-surface {
  background: var(--apple-surface, #FFFFFF);
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  border-radius: var(--apple-radius-xl, 28px);
  text-align: center;
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  box-shadow: var(--apple-shadow-float, 0 16px 40px rgba(0, 0, 0, 0.07));
  position: relative;
  overflow: hidden;
}

.contact-card-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0071E3, #34C759, #AF52DE);
}

.contact-card-surface h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.028em;
  margin: 1rem 0 0.75rem 0;
}

.contact-card-surface p {
  color: var(--apple-text-secondary, #86868B);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.email-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--apple-blue, #0071E3);
  background-color: var(--apple-blue-subtle, rgba(0, 113, 227, 0.08));
  padding: 0.85rem 1.75rem;
  border-radius: var(--apple-radius-full, 9999px);
  border: 1px solid rgba(0, 113, 227, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.email-pill-btn:hover {
  background-color: var(--apple-blue, #0071E3);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
}

.email-pill-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  background-color: var(--apple-surface, #FFFFFF);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--apple-text-secondary, #86868B);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--apple-text-secondary, #86868B);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--apple-text, #1D1D1F);
}

/* ==========================================================================
   Toast Notification for Email Copy
   ========================================================================== */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(29, 29, 31, 0.92);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--apple-radius-full, 9999px);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 2000;
  pointer-events: none;
}

.copy-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints & Reduced Motion
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-section {
    text-align: center;
    padding: 3.5rem 0 3rem 0;
    min-height: auto;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .orb-one {
    width: 240px;
    height: 240px;
    top: -50px;
    right: -50px;
  }

  .orb-two {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -50px;
  }

  .contact-card-surface {
    padding: 2.75rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-links {
    justify-content: center;
    gap: 0.6rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-one,
  .orb-two {
    animation: none !important;
  }

  .ambient-orb {
    transform: none !important;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Subpage Layouts & Apple Components (Services, Blog, About, Privacy)
   ========================================================================== */
.subpage-container {
  padding: 4rem 0 6rem 0;
  position: relative;
  z-index: 2;
}

.apple-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--apple-text-secondary, #86868B);
  background: var(--apple-surface, #FFFFFF);
  padding: 0.4rem 1rem;
  border-radius: var(--apple-radius-full, 9999px);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  margin-bottom: 2.5rem;
  box-shadow: var(--apple-shadow-sm);
}

.apple-breadcrumb a {
  color: var(--apple-text-secondary, #86868B);
  text-decoration: none;
  transition: color 0.15s ease;
}

.apple-breadcrumb a:hover {
  color: var(--apple-blue, #0071E3);
}

.apple-subpage-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.apple-subpage-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 1rem 0;
}

.apple-subpage-header p {
  font-size: 1.15rem;
  color: var(--apple-text-secondary, #86868B);
  line-height: 1.7;
}

/* Service Detail Components */
.tech-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.service-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.service-highlight-card {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-md, 16px);
  padding: 1.5rem;
  text-align: left;
}

.service-highlight-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-blue, #0071E3);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-highlight-card .detail {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--apple-text, #1D1D1F);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.process-step-card {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-lg, 22px);
  padding: 2rem;
  position: relative;
}

.process-step-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--apple-blue, #0071E3);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

.process-step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step-card p {
  font-size: 0.875rem;
  color: var(--apple-text-secondary, #86868B);
  line-height: 1.6;
}

/* FAQ Accordion */
.apple-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.apple-faq-item {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-md, 16px);
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apple-faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--apple-text, #1D1D1F);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apple-faq-item summary::-webkit-details-marker {
  display: none;
}

.apple-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--apple-blue, #0071E3);
  transition: transform 0.2s ease;
}

.apple-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.apple-faq-item p {
  margin-top: 1rem;
  color: var(--apple-text-secondary, #86868B);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Editorial Article Layout */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-xl, 28px);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--apple-shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.article-header {
  border-bottom: 1px solid var(--apple-border-subtle, rgba(0, 0, 0, 0.05));
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--apple-text-secondary, #86868B);
  margin-top: 1rem;
}

.article-prose {
  color: var(--apple-text, #1D1D1F);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-prose h2 {
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  margin: 2.5rem 0 1rem 0;
}

.article-prose h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem 0;
}

.article-prose p {
  margin-bottom: 1.4rem;
  color: #333336;
}

.article-prose ul, .article-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.875rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-prose th, .article-prose td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  text-align: left;
}

.article-prose th {
  background-color: var(--apple-bg, #F5F5F7);
  font-weight: 600;
  color: var(--apple-text, #1D1D1F);
}

.article-prose pre {
  background: #1E1E24;
  color: #E2E8F0;
  padding: 1.5rem;
  border-radius: var(--apple-radius-md, 16px);
  overflow-x: auto;
  font-family: var(--apple-font-mono);
  font-size: 0.875rem;
  margin: 1.75rem 0;
}

.article-prose blockquote {
  border-left: 3px solid var(--apple-blue, #0071E3);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  color: var(--apple-text-secondary, #86868B);
  font-style: italic;
}

/* About Stats Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

.about-stat-card {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-lg, 22px);
  padding: 1.75rem;
  text-align: center;
}

.about-stat-card .val {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--apple-text, #1D1D1F);
}

.about-stat-card .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-text-secondary, #86868B);
  margin-top: 0.35rem;
}

.milestones-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.milestone-item {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-md, 16px);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.milestone-year {
  background: var(--apple-blue-subtle, rgba(0, 113, 227, 0.10));
  color: var(--apple-blue, #0071E3);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--apple-radius-full, 9999px);
  white-space: nowrap;
}


/* ==========================================================================
   Flagship Platforms 2x2 Grid (Apple Squircle Style)
   ========================================================================== */
.platforms-section {
  padding: 5rem 0 3rem 0;
  position: relative;
  z-index: 2;
}

.platforms-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1040px;
  margin: 0 auto;
}

.platform-apple-card {
  background: var(--apple-surface, #FFFFFF);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--apple-radius-lg, 24px);
  padding: 2.25rem;
  box-shadow: var(--apple-shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-apple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-card-hover, 0 12px 32px rgba(0, 0, 0, 0.08));
  border-color: rgba(0, 113, 227, 0.22);
}

.platform-card-top {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.platform-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-apple-card:hover .platform-icon {
  transform: scale(1.05);
}

.platform-card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--apple-text, #1D1D1F);
  margin-bottom: 0.75rem;
}

.platform-card-body p {
  color: var(--apple-text-secondary, #86868B);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.platform-overview-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--apple-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.platform-overview-link:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

.platform-card-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--apple-border-subtle, rgba(0, 0, 0, 0.04));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Responsive: Mobile 2x2 Grid Adaptation
   Preserves 2x2 Grid layout on Mobile with Apple App Store proportions
   ========================================================================== */
@media (max-width: 768px) {
  .platforms-2x2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .platform-apple-card {
    padding: 1rem 0.75rem !important;
    border-radius: 18px;
  }

  .platform-card-top {
    margin-bottom: 0.85rem;
  }

  .platform-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .platform-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
  }

  .platform-card-body p {
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .platform-card-footer {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .platform-overview-link {
    font-size: 0.72rem;
    display: flex;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .platform-card-footer .platform-launch-btn {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 0.4rem;
    font-size: 0.72rem;
    gap: 0.25rem;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .platforms-2x2-grid {
    gap: 0.55rem;
  }

  .platform-apple-card {
    padding: 0.85rem 0.65rem;
    border-radius: 16px;
  }

  .platform-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .platform-card-body h3 {
    font-size: 0.95rem;
  }

  .platform-card-body p {
    font-size: 0.72rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }

  .platform-overview-link {
    font-size: 0.65rem;
  }

  .platform-card-footer .platform-launch-btn {
    font-size: 0.65rem;
    padding: 0.4rem 0.35rem;
  }
}
