/* ============================================
   IVS Learn Landing Page - Premium EdTech Stylesheet
   ============================================ */

:root {
  --blue: #075fd3;
  --blue2: #003b9a;
  --navy: #06245f;
  --gold: #f59e0b;
  --orange: #f97316;
  --green: #10a66a;
  --ink: #102033;
  --muted: #60708a;
  --bg: #f4f8ff;
  --card: #ffffff;
  --line: rgba(15, 35, 75, 0.12);
  --shadow: 0 20px 55px rgba(4, 39, 105, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef6ff 0%, #fff 44%, #f8fbff 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--navy);
  font-size: 16px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #4aa3ff);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(0, 94, 211, 0.25);
}

.navlinks {
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 700;
  color: #284568;
  font-size: 14px;
}

.navlinks a:hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(7, 95, 211, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.2s;
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7, 95, 211, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blue);
}

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--navy);
  letter-spacing: -2px;
  font-weight: 900;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  flex: 1;
  min-width: 200px;
}

.hero-visual {
  position: relative;
}

.hero-img-desktop {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-img-mobile {
  display: none;
}

/* ============================================
   SECTION TITLES
   ============================================ */

section {
  padding: 72px 0;
}

h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -1.2px;
  font-weight: 900;
}

h3 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 800;
}

h4 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}

p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}

.section-desc {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue2);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

/* ============================================
   ROLES SECTION
   ============================================ */

.roles-section {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 12px 36px rgba(10, 50, 110, 0.06);
  text-align: center;
  transition: all 0.3s;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10, 50, 110, 0.12);
}

.role-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eaf3ff, #d4e7ff);
  display: grid;
  place-items: center;
}

.role-icon img {
  width: 48px;
  height: 48px;
}

.role-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.role-card p {
  font-size: 15px;
  margin-bottom: 20px;
}

.btn-role {
  width: 100%;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
  font-size: 15px;
}

.btn-role:hover {
  background: var(--blue);
  color: #fff;
}

/* ============================================
   PLATFORMS SECTION
   ============================================ */

.platforms-section {
  background: var(--bg);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 14px 40px rgba(10, 50, 110, 0.08);
  transition: all 0.3s;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(10, 50, 110, 0.14);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.platform-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), #4aa3ff);
  display: grid;
  place-items: center;
  color: white;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(0, 94, 211, 0.2);
}

.card-learningcare .platform-logo {
  background: linear-gradient(135deg, var(--green), #34d399);
}

.card-lms .platform-logo {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
}

.card-teachermatch .platform-logo {
  background: linear-gradient(135deg, var(--orange), #fb923c);
}

.platform-thumbnail {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f6ff, #e0edff);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.platform-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-card p {
  font-size: 16px;
  margin-bottom: 16px;
}

.platform-tags {
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  background: #f2f6ff;
  color: #315176;
  margin: 4px 6px 4px 0;
}

.btn-platform {
  width: 100%;
}

/* ============================================
   INTEGRATION FLOW SECTION
   ============================================ */

.integration-section {
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.integration-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(10, 50, 110, 0.06);
  overflow-x: auto;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #eaf3ff, #d4e7ff);
  border-radius: 18px;
}

.flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 15px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.flow-step p {
  font-size: 13px;
  margin: 0;
  color: var(--blue2);
  font-weight: 700;
}

.flow-arrow {
  font-size: 28px;
  color: var(--blue);
  font-weight: 900;
}

/* ============================================
   PRODUCT SHOWCASE SECTION
   ============================================ */

.showcase-section {
  background: #fff;
}

.showcase-block {
  margin-bottom: 64px;
}

.showcase-block:last-child {
  margin-bottom: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-content h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.showcase-content p {
  font-size: 17px;
  margin-bottom: 20px;
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.showcase-features li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #f4f8ff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-left: 4px solid var(--blue);
}

.btn-showcase {
  min-width: 180px;
}

.showcase-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-visual img {
  width: 100%;
  height: auto;
}

.lms-screens {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #fff7ef, #edf7ff);
  border-radius: 20px;
  overflow-x: auto;
}

.lms-screens img {
  min-width: 200px;
  max-width: 240px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CASE STUDY SECTION
   ============================================ */

.cases-section {
  background: var(--bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(10, 50, 110, 0.06);
  transition: all 0.3s;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10, 50, 110, 0.12);
}

.case-visual {
  height: 200px;
  background: linear-gradient(135deg, #eaf3ff, #d4e7ff);
  overflow: hidden;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 24px;
}

.case-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.case-problem,
.case-solution,
.case-outcome {
  margin-bottom: 14px;
}

.case-problem strong,
.case-solution strong,
.case-outcome strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--blue2);
}

.case-problem p,
.case-solution p,
.case-outcome p {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.final-cta-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.final-cta-content h2 {
  color: white;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.final-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 28px;
}

.final-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: white;
  color: var(--blue);
}

.btn-cta-primary:hover {
  background: #f0f6ff;
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-cta-secondary:hover {
  background: white;
  color: var(--blue);
}

.btn-cta-tertiary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-cta-tertiary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.final-cta-visual {
  border-radius: 20px;
  overflow: hidden;
}

.css-fallback-visual {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fallback-card {
  color: white;
  font-size: 48px;
  font-weight: 900;
  text-align: center;
}

/* ============================================
   CONTACT & LINKS SECTION
   ============================================ */

.contact-section {
  background: #fff;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.link-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(7, 95, 211, 0.15);
}

.link-card b {
  font-size: 22px;
  color: var(--blue);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 48px 0;
  background: #061c49;
  color: white;
}

footer strong {
  font-size: 20px;
  display: block;
  margin-bottom: 12px;
}

footer p {
  color: #c8d7f4;
  font-size: 15px;
  margin-bottom: 20px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social a {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 14px;
  color: white;
  transition: all 0.2s;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.lang-switch {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid transparent;
  font-weight: 900;
  font-size: 13px;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-switch.active {
  background: white;
  color: var(--navy);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .navlinks {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-grid.reverse {
    direction: ltr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-card {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --radius: 22px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  header {
    background: rgba(255, 255, 255, 0.96);
  }

  .nav {
    height: auto;
    min-height: 68px;
    padding: 10px 0;
    gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    font-size: 15px;
    gap: 10px;
  }

  .logo {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .nav > div > .btn {
    padding: 11px 18px;
    font-size: 14px;
  }

  section {
    padding: 48px 0;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 16px;
  }

  .section-desc {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .hero-section {
    padding: 32px 0 40px;
  }

  .hero-content h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-img-desktop {
    display: none;
  }

  .hero-img-mobile {
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .roles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .role-card {
    padding: 24px;
  }

  .integration-flow {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .flow-step {
    width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .lms-screens {
    flex-direction: column;
    gap: 12px;
  }

  .lms-screens img {
    min-width: 100%;
    max-width: 100%;
  }

  .final-cta-card {
    padding: 28px;
    gap: 32px;
  }

  .final-cta-buttons {
    flex-direction: column;
  }

  .final-cta-buttons .btn {
    width: 100%;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  footer .social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  footer .social a {
    text-align: center;
  }
}

/* ============================================
   IMAGE FALLBACK STYLES - Prevent broken containers
   ============================================ */

.css-fallback {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #eaf3ff 0%, #d4e7ff 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--blue2);
  text-align: center;
  border: 2px dashed var(--blue);
}

.css-fallback-hero-desktop {
  min-height: 500px;
  font-size: 48px;
  background: linear-gradient(135deg, #06245f 0%, #075fd3 50%, #4aa3ff 100%);
  color: white;
  border: none;
}

.css-fallback-hero-mobile {
  min-height: 400px;
  font-size: 36px;
  background: linear-gradient(135deg, #075fd3 0%, #4aa3ff 100%);
  color: white;
  border: none;
}

.css-fallback-centercare {
  background: linear-gradient(135deg, #e9fff5 0%, #c6f6d5 100%);
  color: var(--green);
  border-color: var(--green);
}

.css-fallback-learningcare {
  background: linear-gradient(135deg, #e9f2ff 0%, #c3d9ff 100%);
  color: var(--blue);
  border-color: var(--blue);
}

.css-fallback-lms {
  background: linear-gradient(135deg, #fff6da 0%, #ffe69c 100%);
  color: #9a6800;
  border-color: var(--gold);
}

.css-fallback-teachermatch {
  background: linear-gradient(135deg, #fff0e5 0%, #ffd4b8 100%);
  color: var(--orange);
  border-color: var(--orange);
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 24px);
  }

  h2 {
    font-size: 26px;
  }

  .platform-card {
    padding: 24px;
  }

  .platform-header {
    gap: 12px;
  }

  .platform-logo {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .case-visual {
    height: 160px;
  }

  .case-content {
    padding: 20px;
  }
}
/* ============================================
   IVS Landing Page - Optimized Stylesheet
   ============================================ */

:root {
  --blue: #075fd3;
  --blue2: #003b9a;
  --navy: #06245f;
  --gold: #f59e0b;
  --orange: #f97316;
  --green: #10a66a;
  --ink: #102033;
  --muted: #60708a;
  --bg: #f4f8ff;
  --card: #ffffff;
  --line: rgba(15, 35, 75, 0.12);
  --shadow: 0 20px 55px rgba(4, 39, 105, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef6ff 0%, #fff 44%, #f8fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--navy);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #4aa3ff);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  box-shadow: 0 10px 25px rgba(0, 94, 211, 0.25);
}

.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 700;
  color: #284568;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(7, 95, 211, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn.alt {
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(7, 95, 211, 0.2);
  box-shadow: none;
}

.hero {
  padding: 34px 0 28px;
}

.hero-card {
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(7, 95, 211, 0.1);
}

.hero-card img {
  width: 100%;
  display: block;
}

.intro {
  padding: 42px 0 24px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  margin: 0 0 18px;
  color: var(--navy);
  letter-spacing: -1.8px;
}

h2 {
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.08;
  margin: 0 0 14px;
  color: #151e2b;
  letter-spacing: -1.1px;
}

h3 {
  font-size: 23px;
  margin: 0 0 10px;
  color: #14233a;
}

p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue2);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 32px rgba(10, 50, 110, 0.07);
}

.stat b {
  display: block;
  font-size: 25px;
  color: var(--blue2);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

section {
  padding: 58px 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 44px rgba(10, 50, 110, 0.08);
  position: relative;
  overflow: hidden;
}

.card:before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(7, 95, 211, 0.07);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 18px;
}

.green {
  background: #e9fff5;
  color: var(--green);
}

.blue {
  background: #e9f2ff;
  color: var(--blue);
}

.orange {
  background: #fff0e5;
  color: var(--orange);
}

.gold {
  background: #fff6da;
  color: #9a6800;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  background: #f2f6ff;
  color: #315176;
  margin: 4px 6px 0 0;
}

.lms {
  background: radial-gradient(circle at top right, rgba(255, 193, 77, 0.25), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fff7ef 45%, #edf7ff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.phone {
  background: #fff;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(34, 20, 0, 0.12);
  border: 1px solid rgba(127, 86, 0, 0.12);
}

.phone img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.feature {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  font-weight: 800;
  color: #263b56;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  border-radius: 32px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 25px 60px rgba(6, 36, 95, 0.25);
}

.cta-band p,
.cta-band h2 {
  color: white;
  margin-bottom: 8px;
}

.links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.link-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

footer {
  padding: 34px 0;
  background: #061c49;
  color: white;
}

footer p {
  color: #c8d7f4;
  font-size: 14px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  color: white;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.lang-switch {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid transparent;
  font-weight: 900;
  font-size: 13px;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-switch.active {
  background: white;
  color: var(--navy);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Mobile-First Optimization
   ============================================ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  max-width: 100%;
}

.btn {
  min-height: 48px;
  white-space: nowrap;
}

.card .btn,
.link-card,
.cta-band .btn {
  position: relative;
  z-index: 2;
}

/* ============================================
   Responsive - Tablet (max-width: 920px)
   ============================================ */

@media (max-width: 920px) {
  .navlinks {
    display: none;
  }

  .grid2,
  .products {
    grid-template-columns: 1fr;
  }

  .stats,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .phone-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .links {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    display: block;
  }
}

/* ============================================
   Responsive - Mobile (max-width: 560px)
   ============================================ */

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card {
    border-radius: 18px;
  }

  section {
    padding: 42px 0;
  }

  .phone-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .btn {
    width: 100%;
    margin-top: 8px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Responsive - Small Mobile (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --radius: 22px;
  }

  .wrap {
    width: calc(100% - 24px);
    max-width: 520px;
  }

  header {
    background: rgba(255, 255, 255, 0.94);
  }

  .nav {
    height: auto;
    min-height: 66px;
    padding: 8px 0;
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 14px;
    line-height: 1.12;
    letter-spacing: -0.2px;
  }

  .brand span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 155px;
  }

  .logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
    font-size: 15px;
  }

  .nav > .btn {
    width: auto;
    margin: 0;
    padding: 12px 20px;
    min-height: 44px;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(7, 95, 211, 0.22);
  }

  .navlinks {
    display: none !important;
  }

  .lang-switcher {
    padding: 5px;
  }

  .lang-switch {
    padding: 7px 14px;
    font-size: 12px;
    min-height: 36px;
  }

  .hero {
    padding: 14px 0 10px;
  }

  .hero-card {
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(4, 39, 105, 0.12);
  }

  .hero-card img {
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: center;
  }

  .intro {
    padding: 26px 0 14px;
  }

  section {
    padding: 34px 0;
  }

  .grid2 {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
  }

  h3 {
    font-size: 22px;
    line-height: 1.18;
  }

  p {
    font-size: 15.5px;
    line-height: 1.62;
    margin-bottom: 14px;
  }

  .eyebrow {
    font-size: 11.5px;
    padding: 7px 11px;
    margin-bottom: 12px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .stat {
    padding: 14px;
    border-radius: 18px;
  }

  .stat b {
    font-size: 20px;
  }

  .stat span {
    font-size: 12px;
  }

  .products {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 20px;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(10, 50, 110, 0.08);
  }

  .card:before {
    width: 150px;
    height: 150px;
    right: -50px;
    bottom: -64px;
  }

  .icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 27px;
    margin-bottom: 16px;
  }

  .tag {
    font-size: 11px;
    padding: 7px 10px;
    margin-top: 5px;
  }

  .card .btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    min-height: 46px;
  }

  .feature-list {
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-top: 18px;
  }

  .feature {
    padding: 14px 15px;
    border-radius: 17px;
    font-size: 14px;
  }

  .phone-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    margin-left: -2px;
    margin-right: -12px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .phone-grid::-webkit-scrollbar {
    height: 0;
  }

  .phone {
    min-width: 74%;
    max-width: 74%;
    scroll-snap-align: start;
    border-radius: 22px;
    padding: 7px;
  }

  .phone img {
    border-radius: 17px;
  }

  .cta-band {
    display: block !important;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(6, 36, 95, 0.22);
  }

  .cta-band h2 {
    font-size: 27px;
  }

  .cta-band p {
    font-size: 15px;
  }

  .cta-band .btn {
    width: 100%;
    margin-top: 12px;
  }

  .links {
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-top: 18px;
  }

  .link-card {
    padding: 16px 17px;
    border-radius: 17px;
    font-size: 15px;
  }

  footer {
    padding: 28px 0 34px;
  }

  footer .social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  footer .social a {
    text-align: center;
    border-radius: 15px;
  }

  .fb-embed,
  .facebook-embed {
    overflow: hidden;
    border-radius: 20px;
  }

  .fb-embed iframe,
  .facebook-embed iframe,
  iframe[src*="facebook.com/plugins"] {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px;
  }
}

/* ============================================
   Responsive - Extra Small (max-width: 420px)
   ============================================ */

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    max-width: 138px;
    font-size: 13px;
  }

  .nav > .btn {
    padding: 11px 17px;
    font-size: 14px;
    min-height: 42px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 21px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    aspect-ratio: 16/11;
  }

  .phone {
    min-width: 82%;
    max-width: 82%;
  }
}

/* ============================================
   Responsive - Ultra Small (max-width: 360px)
   ============================================ */

@media (max-width: 360px) {
  .brand span:last-child {
    max-width: 118px;
    font-size: 12.5px;
  }

  .logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .nav > .btn {
    padding: 10px 14px;
    font-size: 13.5px;
  }
}
