:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --card: #f6f7f9;
  --hero: #cfe9f9;
  --red: #ea333b;
  --black: #111111;
  --gold: #f8be14;

  --radius-xl: 18px;
  --radius-lg: 14px;

  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Gabarito", system-ui;
}

html {
  background-color: #ffffff;
}

.aihome-body {
  max-width: 1024px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  /* subtle border so edge is visible if monitor is very wide, but user asked for white edge so it's clean */
}


.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===================== HEADER ===================== */


.aihome-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.aihome-header__logo {
  font-size: 26px;
  letter-spacing: -0.6px;
}

.aihome-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.aihome-header__link {
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
}

.aihome-header__link:hover {
  opacity: 1;
}

.aihome-header__search {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.aihome-header__searchIcon {
  font-weight: 900;
}

/* =========================================
   HEADER & NAV
========================================= */
.fade-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
  margin-right: 40px;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-size: 14px;
  text-transform: capitalize;
  opacity: .9;
}

nav a:hover {
  color: var(--red);
  opacity: 1;
}

.search-icon svg {
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: var(--black);
}

/* ===================== GLOBAL BUTTON ===================== */
.aihome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.aihome-btn:active {
  transform: translateY(1px);
}

.aihome-btn--red {
  background: var(--red);
  color: #fff;
}

.aihome-btn--outline {
  background: #fff;
  color: #111827;
  border-color: var(--line);
}

/* ===================== SECTIONS SPACING ===================== */
.aihome-main {
  padding: 22px 0 36px;
}

.aihome-hero,
.aihome-help,
.aihome-partner,
.aihome-experience,
.aihome-timeline,
.aihome-products,
.aihome-clients {
  padding: 18px 0;
}

/* ===================== CARD: HERO (2 columns) ===================== */
.aihome-cardHero {
  border-radius: 30px;
  background: var(--hero);
  box-shadow: var(--shadow-soft);
  padding: 90px 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-top: -40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.aihome-cardHero__title {
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -1px;
}

.aihome-cardHero__subtitle {
  margin-top: 10px;
  color: #111827;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.aihome-cardHero__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.aihome-cardHero__imgFrame {
  width: 100%;
  height: 240px;
  position: relative;
}

.aihome-cardHero__img {
  position: absolute;
  bottom: -90px;
  right: 5%;
  width: auto;
  height: clamp(300px, 160%, 420px);
  object-fit: contain;
  object-position: bottom right;
}

/* ===================== CARD: HELP (2 columns) ===================== */
.aihome-cardHelp {
  background: #f1f1f1;
  border-radius: 30px;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.aihome-cardHelp::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  right: -10%;
  width: 55%;
  background: #e2e2e2;
  border-radius: 50%;
  z-index: -1;
  /* Adds the circular background that the text and image overlap */
}

.aihome-cardHelp__title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.aihome-cardHelp__text {
  margin-top: 14px;
  color: #111;
  font-size: 14px;
  max-width: 75ch;
  line-height: 1.6;
}

.aihome-cardHelp__imgFrame {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aihome-cardHelp__img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  margin-left: 10%;
  /* Pull image leftward to overlap text column slightly if needed */
  margin-top: -30px;
  margin-bottom: -30px;
}

/* ===================== CARD: PARTNER (2 columns) ===================== */
.aihome-cardPartner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  /* Shift ratio so the text block takes more horizontal space */
  gap: 22px;
  align-items: start;
}

.aihome-cardPartner__title {
  font-size: 34px;
  /* Larger title as seen in mock */
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.aihome-cardPartner__mediaSingle {
  margin-top: 14px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  /* Align left to match top grid */
}

.aihome-cardPartner__mediaImg {
  width: 100%;
  max-width: 384px;
  /* Reduced by 20% from 480px */
  height: auto;
  object-fit: contain;
}

.aihome-cardPartner__lead {
  color: #111827;
  font-size: 18px;
  margin-top: 6px;
  max-width: 62ch;
}

.aihome-cardPartner__featureList {
  margin-top: 90px;
  display: grid;
  gap: 16px;
}

.aihome-cardPartner__feature {
  display: flex;
  gap: 16px;
  /* Increased gap */
  align-items: flex-start;
}

.aihome-cardPartner__badge {
  width: 68px;
  /* Larger icons like mock */
  height: 68px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  flex: 0 0 auto;
}

.aihome-cardPartner__badge--blue {
  background: #2563eb;
}

.aihome-cardPartner__badge--red {
  background: var(--red);
}

.aihome-cardPartner__badge--black {
  background: #111827;
}

.aihome-cardPartner__badge--gold {
  background: var(--gold);
  color: #111827;
}

.aihome-cardPartner__featureTitle {
  font-weight: 900;
  font-size: 18px;
  /* Bigger feature title */
  text-align: left;
}

.aihome-cardPartner__featureDesc {
  margin-top: 2px;
  color: #4b5563;
  font-size: 14px;
  max-width: 62ch;
  text-align: left;
}

/* ===================== CARD: EXPERIENCE (2 columns) ===================== */
.aihome-cardExperience {
  background: #efefef;
  border-radius: 30px;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.aihome-cardExperience__title {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.aihome-cardExperience__subtitle {
  margin-top: 8px;
  font-weight: 900;
  font-size: 13px;
}

.aihome-cardExperience__text {
  margin-top: 10px;
  color: #374151;
  font-size: 13px;
  max-width: 52ch;
}

.aihome-cardExperience__imgFrame {
  width: 100%;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
}

.aihome-cardExperience__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== TIMELINE ===================== */
.aihome-timeline__title,
.aihome-products__title,
.aihome-clients__title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.aihome-timeline__rail {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow: auto;

  /* Horizontal connecting line */
  background-image: linear-gradient(to bottom, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px));
  background-position: center;
  background-attachment: local;
}

.aihome-timeline__year {
  color: #6b7280;
  font-size: 21px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg);
  /* Mask the line behind the text */
}

/* Mask line extending past the last item */
.aihome-timeline__rail::after {
  content: "";
  flex: 1;
  align-self: stretch;
  background: var(--bg);
  min-width: 1px;
}

.aihome-timeline__year--active {
  background: var(--red);
  color: #fff;
}

.aihome-cardTimeline {
  margin-top: 24px;
  border-radius: 30px;
  background: #efefef;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.aihome-cardTimeline__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.aihome-cardTimeline__content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  align-items: center;
}

.aihome-cardTimeline__thumb {
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
}

.aihome-cardTimeline__thumbImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aihome-cardTimeline__yearBig {
  font-size: 18px;
  font-weight: 900;
}

.aihome-cardTimeline__desc {
  margin-top: 6px;
  color: #4b5563;
  font-size: 13px;
  max-width: 70ch;
}

/* ===================== PRODUCTS ===================== */
.aihome-products__grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1.05fr;
  /* Reduced width of software and golf by ~10% relative to center */
  gap: 14px;
  margin-top: 10px;
}

.aihome-cardProductSoftware,
.aihome-cardProductHardware {
  border-radius: var(--radius-xl);
  height: 288px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  padding: 16px;
}

.aihome-cardProductGolf {
  border-radius: var(--radius-xl);
  height: 288px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  padding: 16px;
}


.aihome-cardProductSoftware__label,
.aihome-cardProductHardware__label,
.aihome-cardProductGolf__label {

  color: #fff;
  font-size: 37px;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2;
  margin-top: 10px;
  margin-left: 10px;
}

.aihome-cardProductSoftware__btn,
.aihome-cardProductHardware__btn,
.aihome-cardProductGolf__btn {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: inline-flex;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease;
  z-index: 2;
}

.aihome-cardProductSoftware__btn {
  color: var(--red);
}

.aihome-cardProductHardware__btn {
  color: var(--gold);
}

.aihome-cardProductGolf__btn {
  color: #22c55e;
}

/* ===================== HARDWARE PROD IMGS ===================== */
.aihome-cardProductHardware__imgTv,
.aihome-cardProductHardware__imgKiosk,
.aihome-cardProductHardware__imgSignage {
  position: absolute;
  object-fit: contain;
}

.aihome-cardProductHardware__imgTv {
  height: 65%;
  width: auto;
  top: 17%;
  left: 36%;
  z-index: 1;
}

.aihome-cardProductHardware__imgKiosk {
  height: 105%;
  width: auto;
  bottom: -2%;
  right: 2%;
  z-index: 2;
}

.aihome-cardProductHardware__imgSignage {
  height: 48%;
  width: auto;
  bottom: 4%;
  left: 45%;
  z-index: 3;
}

.aihome-cardProductSoftware__btn:hover,
.aihome-cardProductHardware__btn:hover,
.aihome-cardProductGolf__btn:hover {
  transform: translateY(-2px);
}

/* ===================== CLIENTS ===================== */
.aihome-clients__marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 10px 0 4px;
  position: relative;
}

.aihome-clients__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: scrollClients 24s linear infinite;

  /* Hardware Acceleration optimizations */
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  perspective: 1000px;
}

.aihome-clients__track:hover {
  animation-play-state: paused;
}

@keyframes scrollClients {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
    /* Scroll halfway because of the exact duplicate block */
  }
}

.aihome-clientLogo-img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 10px 30px;
  /* Add horizontal spacing between logos */
  flex-shrink: 0;
}

/* ===================== FOOTER ===================== */
.aihome-footer {
  margin-top: 24px;
  background: #121212;
  color: rgba(255, 255, 255, 0.85);
  padding: 26px 0;
}

.aihome-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.aihome-footer__brand {
  font-weight: 900;
  font-size: 24px;
  color: #fff;
}

.aihome-footer__meta,
.aihome-footer__contact {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.aihome-footer__copy {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.aihome-footer__center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 0 20px;
}

.aihome-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.aihome-footer__lineBtn {
  background: #06c755;
  /* Line standard green */
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 2px;
}

.aihome-footer__qr {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.aihome-footer__qr img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #fff;
  padding: 2px;
  background: #fff;
}

.aihome-footer__qrText {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);
}