/* ===== Design tokens ===== */
:root {
  --navy: #1d4e6b;
  --navy-dark: #163b52;
  --navy-600: #24618a;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --muted: #7b8794;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-alt: #eef3f8;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(22, 59, 82, .06), 0 1px 2px rgba(22, 59, 82, .04);
  --shadow-md: 0 10px 30px rgba(22, 59, 82, .10);
  --shadow-lg: 0 24px 60px rgba(22, 59, 82, .14);
  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
body { overflow-x: hidden; }
.hero-copy, .hero-visual, .lms-showcase > * { min-width: 0; }
h1, h2, h3, p, .lead { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Sora', 'Inter', system-ui, sans-serif; line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--ink); text-wrap: balance; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo--footer { height: 62px; }
.brand-text { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .01em; color: var(--ink); }
.brand-ltd { color: var(--muted); font-weight: 700; font-size: 15px; letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.header-inner .lang-switch { margin-left: 24px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--navy); }
.nav .nav-cta {
  background: var(--navy); color: var(--white); padding: 9px 20px;
  border-radius: 999px; font-weight: 600;
}
.nav .nav-cta:hover { background: var(--navy-dark); color: var(--white); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: border-color .2s;
}
.lang-switch:hover { border-color: var(--navy-600); }
.lang-switch .lang-opt { transition: color .2s; }
.lang-switch .lang-opt.is-active { color: var(--navy); }
.lang-switch .lang-sep { color: var(--line); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 80% -10%, #eaf1f8 0%, rgba(234,241,248,0) 60%),
  linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 90px 24px 100px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy-600);
  background: #e7f0f7; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 22px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; color: var(--navy); }
.hero-stats span { font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hero-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,97,138,.18) 0%, rgba(36,97,138,0) 70%);
  filter: blur(6px);
}
.hero-mark { position: relative; width: min(320px, 70%); filter: drop-shadow(0 20px 40px rgba(22,59,82,.18)); animation: float 6s ease-in-out infinite; }
.hero-visual-caption { display: none; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy-600); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }

/* ===== About ===== */
.about-grid { display: grid; gap: 44px; }
.about-lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); font-weight: 500; text-align: center; max-width: 820px; margin: 0 auto; line-height: 1.5; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico {
  width: 52px; height: 52px; margin-bottom: 18px; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  background: #e7f0f7; border-radius: 14px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ===== Products ===== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e9f1f8, #dbe7f2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media img.is-empty { opacity: 0; }
.product-media::after {
  content: "LAPPY"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 30px; letter-spacing: .1em; color: rgba(29,78,107,.18); z-index: 0;
}
.product-media img:not(.is-empty) { position: relative; z-index: 1; }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; box-shadow: var(--shadow-sm);
}
.product-body { padding: 24px 26px 28px; }
.product-body h3 { font-size: 21px; margin-bottom: 10px; }
.product-body p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ===== Flagship LMS showcase ===== */
.lms-tagline { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); color: var(--navy); margin: 22px auto 18px; max-width: 760px; }
.lms-showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; margin-top: 8px; }
.lms-info { display: flex; flex-direction: column; }
.lms-features { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 16px; }
.lms-features li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); font-size: 16.5px; }
.lms-features li svg { flex: 0 0 auto; width: 24px; height: 24px; padding: 4px; color: var(--navy); background: #e7f0f7; border-radius: 7px; }
.lms-info .btn { align-self: flex-start; }

/* Carousel */
.carousel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  background: linear-gradient(135deg, #eef4fa, #dce8f3);
  padding: 0 60px; /* side gutters for nav arrows */
}
.carousel-viewport { overflow: hidden; height: 100%; }
.carousel-track { display: flex; transition: transform .5s var(--ease); }
.carousel-cell {
  flex: 0 0 50%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 8px;
}
.phone {
  width: clamp(150px, 15vw, 190px); aspect-ratio: 9 / 19.5;
  background: #0c1015; border-radius: 26px; padding: 7px; position: relative;
  box-shadow: 0 14px 34px rgba(12,16,21,.26);
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 14px; background: #0c1015; border-radius: 10px; z-index: 3;
}
.phone-screen { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(135deg, #e9f1f8, #dbe7f2); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.phone-screen img.is-empty { opacity: 0; }
.phone-screen::after {
  content: attr(data-label); position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 12.5px; color: rgba(29,78,107,.4);
}
@media (max-width: 700px) {
  .carousel { padding: 0 50px; }
  .carousel-cell { flex-basis: 100%; padding: 30px 8px; }
  .phone { width: clamp(160px, 54vw, 220px); }
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); color: var(--navy);
  font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.carousel-dots button.active { width: 24px; background: #fff; }

/* LMS modules & business value */
.lms-modules { margin-top: 76px; }
.lms-value { margin-top: 64px; }
.lms-block-title { text-align: center; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 0 auto 38px; max-width: 720px; }
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.module-ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: #e7f0f7; border-radius: 12px; color: var(--navy); margin-bottom: 16px; }
.module-ico svg { width: 24px; height: 24px; }
.module-card h4 { font-family: 'Sora', sans-serif; font-size: 18px; color: var(--ink); margin: 0 0 14px; }
.module-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.module-card li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.module-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--navy); font-weight: 700; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-item { text-align: center; padding: 4px 8px; }
.value-ico { width: 54px; height: 54px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); border-radius: 14px; }
.value-ico svg { width: 26px; height: 26px; }
.value-item h4 { font-family: 'Sora', sans-serif; font-size: 18px; margin: 0 0 8px; }
.value-item p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Status badge (in development) */
.status-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: #fff4e0; color: #a1620a; border: 1px solid #f0dcb0;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em;
}
.product-card--soon .product-media img:not(.is-empty) { filter: saturate(.9); }

/* ===== Industries ===== */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.industry {
  padding: 40px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--white), var(--bg-alt));
  position: relative; overflow: hidden;
}
.industry::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(36,97,138,.12), rgba(36,97,138,0) 70%);
}
.industry h3 { font-size: 26px; color: var(--navy); margin: 0 0 4px; }
.industry p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.industry-badge {
  position: relative; z-index: 1; display: inline-block; align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); background: var(--navy); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.industry-badge--muted { color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); }
.industry-tag { position: relative; z-index: 1; display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.industry { display: flex; flex-direction: column; }
.industry--primary { border-color: var(--navy); box-shadow: var(--shadow-md); background: linear-gradient(160deg, #fff, #eaf1f8); }
.industry--primary::before { background: radial-gradient(circle, rgba(36,97,138,.2), rgba(36,97,138,0) 70%); }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); }
.cta-inner { text-align: center; padding: 84px 24px; }
.cta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.82); font-size: 18px; margin: 0 0 32px; }
.cta .btn-primary { background: var(--white); color: var(--navy); }
.cta .btn-primary:hover { background: #eef3f8; }

/* Contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; margin-top: 56px; text-align: left; }
.contact-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.contact-card .c-ico {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border-radius: 10px; color: #fff; margin-bottom: 4px;
}
.contact-card .c-ico svg { width: 20px; height: 20px; }
.contact-card .c-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); font-weight: 600; }
.contact-card .c-value { color: #fff; font-size: 15px; line-height: 1.45; word-break: break-word; }
a.c-value:hover { text-decoration: underline; }

.footer-legal { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.footer-legal a { color: var(--navy-600); }
.footer-legal a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.brand--footer .brand-mark { width: 34px; height: 34px; }
.footer-note { color: var(--ink-soft); margin: 4px 0 0; }
.footer-copy { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 72px; }
  .hero-visual { order: -1; min-height: 200px; flex-direction: column; gap: 16px; }
  .hero-mark { width: 180px; }
  .hero-visual-caption {
    display: block; position: relative;
    font-family: 'Sora', sans-serif; font-weight: 600;
    font-size: clamp(15px, 4vw, 18px); color: var(--ink-soft);
    text-align: center; letter-spacing: .01em;
  }
  .about-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .lms-showcase { grid-template-columns: 1fr; gap: 32px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; gap: 36px; }
  .industries { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .contact-cards { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-cta { text-align: center; margin-top: 8px; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .header-inner .lang-switch { margin-left: auto; margin-right: 6px; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-stats { gap: 24px; }
}
