/* Sensci Lab – Cricket product site */
:root {
  --color-accent: #1d1d1f;
  --color-accent-soft: #2d2d2d;
  --color-text: #1d1d1f;
  --color-text-muted: #86868b;
  --color-bg: #ffffff;
  --color-bg-card: #f5f5f7;
  --color-border: rgba(0,0,0,.08);
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --page-width: 980px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: none;
  --shadow: 0 2px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.06);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.page-width { max-width: var(--page-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) {
  .page-width { padding: 0 16px; }
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-text-muted); }

/* Back to Senscilab strip */
.back-strip {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  text-align: center;
  padding: 8px 22px;
  font-size: 12px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
  z-index: 9999;
  border-bottom: 1px solid var(--color-border);
}
.back-strip a {
  color: #0066cc;
  font-weight: 400;
  font-size: 12px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.back-strip a:hover { opacity: 0.7; }
.back-strip__sep {
  color: rgba(0, 0, 0, 0.2);
  margin: 0 8px;
  user-select: none;
}
@media (max-width: 640px) {
  .back-strip { padding: 8px 16px; }
}

/* Announcement */
.announcement {
  background: #f5f5f5;
  color: var(--color-text-muted);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 640px) {
  .announcement { padding: 8px 16px; font-size: 0.75rem; }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  box-shadow: none;
}
header .page-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
header .logo-link { display: block; flex-shrink: 0; }
header .logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}
header .logo:hover { opacity: 0.85; }
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-text);
  transition: color var(--transition);
}
header nav a:hover { color: var(--color-text-muted); }

/* Mobile nav */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--color-bg); }
.nav-toggle::before { content: 'Menu'; }

@media (max-width: 768px) {
  header .logo { height: 72px; max-width: 260px; }
  header .page-width { flex-wrap: wrap; gap: 16px; }
  header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 16px 0 8px;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
  }
  header nav a {
    display: block;
    padding: 14px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
  }
  header nav a:last-child { border-bottom: 0; }
  header.header--nav-open nav { display: flex; }
  .nav-toggle { display: flex; }
  header.header--nav-open .nav-toggle::before { content: 'Close'; }
}
@media (max-width: 480px) {
  header .logo { height: 64px; max-width: 220px; }
  header { padding: 14px 0; }
}

/* Hero / Banner */
.banner {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 50%), url('../assets/images/cricket/Bkg.png') center/cover no-repeat;
  padding: 80px 24px 100px;
  margin-bottom: 0;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--color-bg) 95%);
  pointer-events: none;
}
.banner__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.banner .subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0 0 36px;
  color: rgba(255,255,255,.95);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.banner .btn { margin-top: 8px; }
@media (max-width: 768px) {
  .banner { min-height: 60vh; padding: 48px 16px 64px; }
  .banner h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 16px; }
  .banner .subtitle { font-size: 1rem; margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .banner { min-height: 50vh; padding: 40px 16px 56px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn--secondary {
  background: #fff;
  color: var(--color-accent);
  border-color: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.btn--secondary:hover {
  background: rgba(255,255,255,.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-accent);
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fff;
}
@media (max-width: 640px) {
  .btn { min-height: 44px; padding: 12px 24px; font-size: 0.9375rem; }
}

/* Sections */
section {
  padding: 80px 24px;
}
section:nth-child(even) {
  background: var(--color-bg-card);
  box-shadow: 0 -1px 0 var(--color-border);
}
@media (max-width: 768px) {
  section { padding: 56px 24px; }
}
@media (max-width: 640px) {
  section { padding: 40px 16px; }
}

/* Rich text */
.rich-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.rich-text h1, .rich-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--color-text);
  line-height: 1.25;
}
.rich-text .rte p {
  margin: 0 0 1.25em;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}
.rich-text .rte p:last-child { margin-bottom: 0; }
.rich-text .rte a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-text .rte a:hover { color: var(--color-text-muted); }

/* Image with text */
.image-with-text {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .image-with-text {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .image-with-text--reverse .img-wrap { order: 2; }
  .image-with-text--reverse .text-wrap { order: 1; }
}
.image-with-text__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow);
}
.image-with-text__media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.image-with-text__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--color-text);
  line-height: 1.3;
}
.image-with-text__text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}
.image-with-text__text p { margin: 0 0 0.75em; }
.image-with-text__text p:last-child { margin-bottom: 0; }
.image-with-text .btn { margin-top: 4px; }
@media (max-width: 640px) {
  .image-with-text { gap: 28px; }
  .image-with-text__heading { font-size: 1.25rem; }
}

/* Page hero */
.page-hero {
  padding: 64px 24px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--color-text);
  line-height: 1.2;
}
.page-hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 16px auto 0;
  max-width: 540px;
}
@media (max-width: 768px) {
  .page-hero { padding: 48px 24px 40px; }
  .page-hero__title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .page-hero__subtitle { font-size: 1rem; }
}
@media (max-width: 640px) {
  .page-hero { padding: 40px 16px 32px; }
}

/* Multicolumn */
.multicolumn { padding: 64px 24px 80px; }
.multicolumn__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 768px) {
  .multicolumn__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.multicolumn__column {
  padding: 40px 36px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.multicolumn__column:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.multicolumn__column h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--color-text);
  line-height: 1.3;
}
.multicolumn__column .rte p {
  margin: 0 0 0.75em;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.multicolumn__column .rte p:last-child { margin-bottom: 0; }
.multicolumn__column--reading { border-left-color: var(--color-text-muted); }
.multicolumn__column--reading .rte p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5em;
}
.multicolumn__column--reading h3 { margin-bottom: 20px; }
@media (max-width: 640px) {
  .multicolumn { padding: 40px 16px 56px; }
  .multicolumn__column { padding: 28px 24px; }
  .multicolumn__column h3 { font-size: 1.125rem; }
}

/* Video */
.video-section {
  padding: 80px 24px;
  text-align: center;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.video-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.video-section .video-section__sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 40px;
}
.video-section .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Tech split */
.tech-split { padding: 64px 24px 80px; }
.tech-split__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) {
  .tech-split__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
}
.tech-split__text { max-width: 540px; }
.tech-split__body {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.tech-split__body p { margin: 0 0 1em; }
.tech-split__body p:last-child { margin-bottom: 0; }
.tech-split__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--color-text);
}
.tech-split__teaser-wrap { min-width: 0; }
.tech-split__teaser-wrap .dev-banner__teaser {
  max-width: 100%;
  margin: 0;
}
@media (max-width: 640px) {
  .tech-split { padding: 40px 16px 56px; }
  .tech-split__grid { gap: 32px; }
  .tech-split__body { font-size: 1rem; }
}

/* Dev slideshow */
.dev-banner__teaser {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--color-bg-card);
}
.dev-banner__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.dev-banner__slide--1 { animation: dev-teaser-1 16s ease-in-out infinite; }
.dev-banner__slide--2 { animation: dev-teaser-2 16s ease-in-out infinite; }
.dev-banner__slide--3 { animation: dev-teaser-3 16s ease-in-out infinite; }
.dev-banner__slide--4 { animation: dev-teaser-4 16s ease-in-out infinite; }
@keyframes dev-teaser-1 {
  0%, 22% { opacity: 1; }
  27%, 100% { opacity: 0; }
}
@keyframes dev-teaser-2 {
  0%, 22% { opacity: 0; }
  27%, 47% { opacity: 1; }
  52%, 100% { opacity: 0; }
}
@keyframes dev-teaser-3 {
  0%, 47% { opacity: 0; }
  52%, 72% { opacity: 1; }
  77%, 100% { opacity: 0; }
}
@keyframes dev-teaser-4 {
  0%, 72% { opacity: 0; }
  77%, 100% { opacity: 1; }
}
@media (max-width: 640px) {
  .dev-banner__teaser { max-height: 280px; }
}

/* Footer */
footer {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  padding: 48px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
footer a { color: #0066cc; transition: opacity var(--transition); }
footer a:hover { opacity: 0.7; }
footer .footer-logo-link { display: inline-block; margin-bottom: 20px; }
footer .footer-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  opacity: 1;
}
footer .footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 400;
}
footer p { margin: 0; font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 640px) {
  footer { padding: 40px 16px 36px; }
  footer .footer-logo { height: 56px; max-width: 200px; }
  footer .footer-links { gap: 16px; font-size: 0.875rem; }
  footer .footer-links a { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Contact form */
.contact-form { max-width: 480px; margin: 0 auto 48px; padding: 0 24px; }
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { margin-top: 8px; }
@media (max-width: 640px) {
  .contact-form { padding: 0 16px 32px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; }
}

/* Product page */
.product-page { padding: 80px 24px; }
.product-page .grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 768px) { .product-page .grid { grid-template-columns: 1fr 1fr; } }
.product-page .product__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: contain;
  background: var(--color-bg);
}
.product-page .product__vendor {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.product-page .product__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.product-page .product__tagline {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}
.product-page .product__description { margin: 0 0 24px; }
.product-page .product__description p { margin: 0 0 0.75em; color: var(--color-text-muted); line-height: 1.7; }
.product-page .product__description p:last-child { margin-bottom: 0; }
.product-page .product__heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.product-page .product__features { margin: 0 0 24px; }
.product-page .product__features ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.product-page .product__features li { margin-bottom: 0.5em; }
.product-page .product__features li:last-child { margin-bottom: 0; }
.product-page .product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.product-page .product__actions .btn { margin: 0; }
@media (max-width: 640px) {
  .product-page { padding: 40px 16px; }
  .product-page .grid { gap: 32px; }
  .product-page .product__actions { flex-direction: column; }
  .product-page .product__actions .btn { width: 100%; justify-content: center; }
}
