:root {
  --primary-950: #082d68;
  --primary-900: #0d47a1;
  --primary-700: #1565c0;
  --primary-500: #2196f3;
  --primary-100: #dceeff;
  --navy-950: #071326;
  --navy-900: #0b1830;
  --ink: #101828;
  --muted: #5e6b7e;
  --line: #dfe6ef;
  --surface: #f6f9fd;
  --white: #fff;
  --success: #078346;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 28px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 28px 80px rgba(4, 18, 45, 0.2);
  --shell: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--primary-900);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 24px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link { flex: 0 0 auto; }
.brand-link img { width: 238px; height: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.5vw, 25px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--primary-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active { color: var(--primary-900); }

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.is-active::after { transform: scaleX(1); }

.header-cta,
.mobile-cta {
  flex: 0 0 auto;
  padding: 13px 20px;
  color: var(--white);
  background: linear-gradient(115deg, var(--primary-900), var(--primary-500));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(33, 150, 243, 0.24);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(33, 150, 243, 0.32); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 78px 0 auto;
  max-height: calc(100vh - 78px);
  padding: 24px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 13px 8px; color: #374151; font-weight: 600; }
.mobile-nav a.is-active { color: var(--primary-900); }
.mobile-nav .mobile-cta { margin-top: 10px; padding: 14px 18px; color: var(--white); text-align: center; }

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}

.hero-glow--left { top: -180px; left: -160px; background: #0876ca; }
.hero-glow--right { right: -160px; bottom: -220px; background: #4f46e5; }

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
  padding-block: 92px;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(3rem, 4.6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 620px;
  margin: 28px 0 0;
  color: #c5d2e4;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button svg,
.app-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { color: var(--white); background: linear-gradient(115deg, var(--primary-700), var(--primary-500)); box-shadow: 0 12px 32px rgba(33, 150, 243, 0.28); }
.button--primary:hover, .button--primary:focus-visible { box-shadow: 0 17px 38px rgba(33, 150, 243, 0.37); }
.button--ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.button--ghost:hover, .button--ghost:focus-visible { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.09); }

.hero-product { position: relative; }

.browser-frame {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius-lg);
  background: #0e1a2d;
  box-shadow: 0 40px 100px rgba(0,0,0,.48);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 15px; color: #8fa2bb; background: #15243a; font-size: .65rem; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #486078; }
.browser-bar span { margin-left: 7px; }
.browser-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.product-note {
  position: absolute;
  right: -24px;
  bottom: -36px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 250px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: var(--radius);
  background: rgba(9, 25, 50, .9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.product-mark { width: 42px; height: 42px; padding: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: white; object-fit: contain; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.product-note strong, .product-note small { display: block; }
.product-note strong { font-size: .92rem; }
.product-note small { margin-top: 2px; color: #aab8ca; font-size: .67rem; }

.featured-section,
.catalog-section { padding: 108px 0; }
.featured-section { background: var(--white); }
.catalog-section { background: var(--surface); }

.section-heading { margin-bottom: 42px; }
.section-heading--split,
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading--split > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.75; }
.section-label { margin: 0 0 9px; color: var(--primary-700); font-size: .77rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.04em; }

.featured-app {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 52px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff 20%, #f4f9ff 100%);
  box-shadow: var(--shadow-sm);
}

.app-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: #607086; font-size: .72rem; font-weight: 600; }
.app-meta > span:not(.status) { position: relative; }
.app-meta > span:not(.status) + span:not(.status)::before { content: "•"; margin-right: 9px; color: #a4afbc; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(7,131,70,.1); }
.status--development { color: var(--primary-700); }
.status--development::before { box-shadow: 0 0 0 4px rgba(21,101,192,.1); }

.featured-copy h2 { margin: 18px 0 14px; font-size: clamp(2rem, 3vw, 3.1rem); letter-spacing: -.045em; }
.featured-copy > p { margin: 0; color: var(--muted); line-height: 1.75; }
.featured-features { display: grid; gap: 11px; margin: 25px 0 30px; padding: 0; list-style: none; }
.featured-features li { position: relative; padding-left: 27px; color: #334155; font-size: .9rem; font-weight: 500; }
.featured-features li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: var(--primary-700); background: var(--primary-100); font-size: .68rem; font-weight: 800; }

.featured-media { position: relative; display: block; overflow: hidden; padding: 34px 12px 12px; border: 1px solid #d6e2f0; border-radius: var(--radius); background: #e8f1fb; box-shadow: 0 22px 55px rgba(28, 67, 118, .16); }
.featured-media::before,
.app-card__media::before { content: ""; position: absolute; top: 14px; left: 16px; width: 7px; height: 7px; border-radius: 50%; background: #93a4ba; box-shadow: 12px 0 0 #aebbc9, 24px 0 0 #c7d1dc; }
.featured-media::after,
.app-card__media::after { content: attr(data-preview-label); position: absolute; top: 10px; left: 58px; max-width: calc(100% - 76px); overflow: hidden; color: #53657c; font-size: .58rem; font-weight: 600; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.featured-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid rgba(60, 84, 112, .18); border-radius: 11px; box-shadow: 0 10px 25px rgba(28, 67, 118, .13); transition: transform 420ms ease; }
.featured-media:hover img, .featured-media:focus-visible img { transform: scale(1.025); }

.catalog-count { margin: 0 0 8px; color: var(--muted); font-size: .83rem; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-button { min-height: 42px; padding: 9px 18px; border: 1px solid #cfd9e6; border-radius: 999px; color: #4b5b71; background: var(--white); cursor: pointer; font-size: .82rem; font-weight: 600; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.filter-button:hover, .filter-button:focus-visible { transform: translateY(-1px); border-color: var(--primary-500); color: var(--primary-900); }
.filter-button.is-active { color: var(--white); border-color: var(--primary-700); background: linear-gradient(115deg, var(--primary-900), var(--primary-500)); box-shadow: 0 8px 20px rgba(33,150,243,.22); }

.app-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; outline: none; }
.app-card { grid-column: span 2; }
.app-card:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
.app-card:only-child { grid-column: 3 / span 2; }
.app-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 9px 26px rgba(16, 24, 40, .055); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.app-card:hover { transform: translateY(-6px); border-color: #b9cbe0; box-shadow: 0 22px 48px rgba(16, 24, 40, .12); }
.app-card__media { position: relative; display: block; overflow: hidden; padding: 32px 11px 11px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #e7f1fc, #dce8f6); }
.app-card[data-category="hospitality"] .app-card__media { background: linear-gradient(145deg, #252326, #0d0d0e); }
.app-card[data-category="productivity"] .app-card__media { background: linear-gradient(145deg, #ebeafd, #dde6f8); }
.app-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid rgba(60, 84, 112, .16); border-radius: 9px; box-shadow: 0 8px 20px rgba(18, 38, 66, .14); transition: transform 420ms ease; }
.app-card[data-category="hospitality"] .app-card__media::after { color: #d1d5db; }
.app-card:hover .app-card__media img, .app-card__media:focus-visible img { transform: scale(1.035); }
.app-card__body { display: flex; min-height: 260px; flex-direction: column; padding: 25px; }
.app-card h3 { margin: 15px 0 10px; font-size: 1.35rem; letter-spacing: -.025em; }
.app-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.app-link { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: auto; padding-top: 22px; color: var(--primary-700); font-size: .83rem; font-weight: 700; }
.app-link:hover, .app-link:focus-visible { color: var(--primary-900); }
.app-link svg { width: 15px; height: 15px; }

.contact-band { padding: 78px 0; color: var(--white); background: linear-gradient(120deg, var(--primary-950), var(--primary-700)); }
.contact-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-band h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.contact-band p { margin: 9px 0 0; color: #d9e9ff; }
.button--light { color: var(--primary-900); background: var(--white); box-shadow: 0 12px 30px rgba(0,0,0,.17); white-space: nowrap; }

.site-footer { padding: 80px 0 0; color: var(--white); background: #111827; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr 1.12fr; gap: 34px; padding-bottom: 52px; }
.footer-col h2 { position: relative; margin: 0 0 24px; padding-bottom: 13px; font-size: 1.08rem; }
.footer-col h2 span { position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary-500); }
.footer-col p { margin: 0; color: #cbd5e1; font-size: .82rem; line-height: 1.75; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col li a { display: flex; gap: 7px; align-items: center; color: #cbd5e1; font-size: .8rem; transition: color 180ms ease; }
.footer-col li a:hover, .footer-col li a:focus-visible { color: #67b7ff; }
.footer-col li i { font-style: normal; transition: transform 180ms ease; }
.footer-col li a:hover i { transform: translateX(3px); }
.division-logos { display: flex; align-items: center; gap: 15px; margin-top: 19px; }
.division-logos img { width: auto; height: 31px; object-fit: contain; }
.division-logos a:nth-child(2) img { height: 34px; max-width: 94px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: rgba(255,255,255,.09); font-size: .75rem; font-weight: 700; transition: transform 180ms ease, background 180ms ease; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.social-links a:hover, .social-links a:focus-visible { transform: translateY(-3px); background: var(--primary-500); }
.footer-bottom { padding: 26px 0; border-top: 1px solid #374151; color: #9ca3af; text-align: center; }
.footer-bottom p { margin: 0; font-size: .75rem; line-height: 1.7; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: white; }

:focus-visible { outline: 3px solid #6bbcff; outline-offset: 3px; }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-button { display: block; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(3rem, 5.8vw, 4.6rem); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero, .hero-inner { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 76px 110px; }
  .hero-copy { max-width: 720px; }
  .hero-product { max-width: 720px; }
  .product-note { right: 20px; }
  .section-heading--split { align-items: start; flex-direction: column; gap: 20px; }
  .featured-app { grid-template-columns: 1fr; }
  .featured-media { order: -1; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card,
  .app-card:nth-last-child(2):nth-child(3n + 1),
  .app-card:only-child { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 76px; gap: 10px; }
  .brand-link img { width: 176px; }
  .header-cta { display: none; }
  .menu-button { margin-left: auto; }
  .mobile-nav { inset-block-start: 76px; }
  .hero-inner { padding-block: 64px 92px; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-copy > p { margin-top: 22px; font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .browser-frame { transform: none; border-radius: var(--radius); }
  .browser-bar span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-note { right: 10px; bottom: -52px; min-width: 220px; }
  .featured-section, .catalog-section { padding: 78px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 2.2rem; }
  .featured-app { gap: 30px; padding: 20px; }
  .featured-copy { padding: 4px; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 10px; }
  .filters { flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card__body { min-height: 235px; }
  .contact-band { padding: 58px 0; }
  .contact-band__inner { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
