/* ================================================================
   Ganzin Home Page 2026 – HomeStyle_2026.css
   ================================================================ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* ─── Custom Properties ─── */
:root {
  --accent:        #4dccff;
  --btn-light:     #b5c8d9;
  --surface:       #121212;
  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,0.85);
  --border:        rgba(255,255,255,0.15);
  --border-photo:  rgba(227,237,247,0.15);
  --radius-card:   22px;
  --radius-inner:  12px;
  --max-w:         1300px;
  --pad-section:   120px;
}

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Shared Section Title ─── */
.section-heading {
  font-size: 58px;
  font-weight: 600;
  letter-spacing: 1.74px;
  text-align: center;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 60px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-hero {
  background-color: var(--accent);
  color: #000;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .36px;
  padding: 0 32px;
  height: 38px;
  border-radius: 24px;
}
.btn-hero:hover { background-color: #6fd7ff; }

.btn-light {
  background-color: var(--btn-light);
  color: #000;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .1px;
  padding: 0 24px;
  height: 38px;
  border-radius: 28px;
}
.btn-light:hover { background-color: #c8d8e6; }

.btn-sm-light {
  background-color: var(--btn-light);
  color: #000;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .36px;
  padding: 0 24px;
  height: 38px;
  border-radius: 28px;
}
.btn-sm-light:hover { background-color: #c8d8e6; }

/* ─── NavBar Placeholder ─── */
#navbar-placeholder {
  height: 50px;
  background-color: #000;
  box-shadow: 0 4px 4px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.section-hero {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://staging-14a5-ganzincomtw.wpcomstaging.com/wp-content/uploads/2026/05/homeCover.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  /* shift up so the midpoint of the gap between H1 and subtitle
     lands exactly at the section's vertical centre (320px).
     Measured: midGap was 359.8px with -33px offset → need -73px */
  transform: translate(-50%, -73px);
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.hero-content .hero-sub  { margin-top: 40px; }
.hero-content .btn-hero  { margin-top: 80px; }
.hero-title {
  font-size: 60px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1.8px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .48px;
}

/* ═══════════════════════════════════════
   INTRO TEXT
═══════════════════════════════════════ */
.section-intro {
  padding: 120px 0 0;   /* top-only → 120px between sections */
  background-color: #000;
}
.section-intro p {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 38px;
  letter-spacing: .36px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   WHAT IS EYE TRACKING
═══════════════════════════════════════ */
.section-what-is {
  padding: 120px 0 0;   /* top-only → 120px between sections */
  background-color: #000;
}
.section-what-is .section-heading {
  margin-bottom: 60px;
}
.section-body {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  line-height: 32px;
  letter-spacing: .36px;
  max-width: 1120px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   NEXT-GEN VISUAL ATTENTION
═══════════════════════════════════════ */
.section-features {
  padding: var(--pad-section) 0 0;
  background-color: #000;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 464px 460px;
  gap: 35px 40px;
}
.feature-left     { grid-area: 1 / 1; }
.feature-right    { grid-area: 1 / 2; }
.feature-bottom   { grid-area: 2 / 1 / 3 / 3; }

.feature-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-photo);
}
.feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform .5s ease;
}
.feature-card:hover .feature-bg {
  transform: scale(1.04);
}
.feature-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,.88) 100%);
  z-index: 1;
}
/* Seamless Integration (full-width): left→right gradient so right side stays bright */
.feature-bottom .feature-gradient {
  background: linear-gradient(
    to right,
    rgba(0,0,0,.90) 0%,
    rgba(0,0,0,.60) 38%,
    rgba(0,0,0,0)   62%
  );
}

.feature-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 36px 36px;
  z-index: 2;
  text-align: center;          /* Observational & Interactive: centred text */
}
.feature-text h3 {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .2px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.feature-text p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 22px;
  letter-spacing: .14px;
  max-width: 600px;
  margin: 0 auto;              /* centre the paragraph block when max-width kicks in */
}
/* Seamless Integration: text vertically centred, constrained to left half */
.feature-bottom .feature-text {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  right: auto;
  max-width: 520px;
  text-align: center;
}

/* ═══════════════════════════════════════
   COMPREHENSIVE SOLUTIONS
═══════════════════════════════════════ */
.section-solutions {
  padding: var(--pad-section) 0 0;
  background-color: #000;
}
.section-solutions .section-heading {
  margin-bottom: 50px;
}
.product-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}
.product-row:last-child { margin-bottom: 0; }
.product-row-reverse   { flex-direction: row-reverse; }

.product-visual { flex: 0 0 48%; }
.product-text   { flex: 1; }

.product-name {
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 1.08px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.product-desc {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 32px;
  letter-spacing: .36px;
  margin-bottom: 28px;
}
.product-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .36px;
  transition: opacity .2s;
}
.product-link:hover { opacity: .75; }

/* ── Aurora Diagram ── */
.aurora-diagram {
  position: relative;
  padding: 36px 0 48px;
}
.aurora-module-img {
  display: block;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(77,204,255,.15));
}
.aurora-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .48px;
  pointer-events: none;
  white-space: nowrap;
}
.aurora-label::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.aurora-label img.arrow-img {
  height: 28px;
  width: auto;
  opacity: .7;
}
.label-processor {
  top: 0;
  right: 0;
  flex-direction: row-reverse;
}
.label-processor::before { order: 2; }
.label-camera {
  left: 0;
  top: 54%;
  transform: translateY(-50%);
}
.label-illuminator {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

/* ── Sol Glasses Showcase ── */
.sol-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sol-glasses-wrap {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 40px 80px rgba(77,204,255,.1);
}
.sol-glasses-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: inherit;
}
.sol-bottom-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
  align-items: end;
}
.sol-usecases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sol-usecases img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}
.sol-phones {
  position: relative;
  height: 200px;
}
.sol-phone {
  position: absolute;
  width: 90px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  background: #1a1a1a;
}
.sol-phone img { width: 100%; height: auto; }
.sol-phone-back  { top: 18px; right: 0; opacity: .85; }
.sol-phone-front { top: 0;    left:  0; z-index: 2; }

/* ═══════════════════════════════════════
   FEATURED NEWS
═══════════════════════════════════════ */
.section-news {
  padding: var(--pad-section) 0 0;
  background-color: #000;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 50px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(77,204,255,.15);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 60px rgba(77,204,255,.25),
              0 16px 48px rgba(0,0,0,.45);
}
.news-card a { display: block; color: inherit; text-decoration: none; }
.news-img-wrap {
  height: 270px;
  overflow: hidden;
  border-radius: 12px;
  margin: 9px;
}
.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform .4s ease;
}
.news-card:hover .news-img-wrap img { transform: scale(1.06); }
.news-body {
  padding: 14px 22px 24px;
}
.news-body p {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 28px;
  letter-spacing: .4px;
}
.news-footer {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.section-cta {
  /* no overflow:hidden — bg is now scoped inside cta-inner */
  display: flex;
  justify-content: center;
  padding: 120px 0 0;   /* 120px gap from the News section above */
  margin-bottom: 120px; /* 120px gap to the footer */
}
.cta-inner {
  position: relative;          /* bg/overlay anchor to this box */
  overflow: hidden;
  border-radius: 16px;         /* matches .news-card border-radius */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 80px 20px;
  width: 100%;
  /* subtract the container's l+r padding (20px × 2) so cta-inner aligns with the news cards */
  max-width: calc(var(--max-w) - 40px);
  margin: 0 auto;
}
.cta-bg {
  position: absolute;
  inset: 0;                    /* fills cta-inner exactly */
  background-image: url('https://staging-14a5-ganzincomtw.wpcomstaging.com/wp-content/uploads/2026/05/home_cta_bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,.78);
  z-index: 1;
}
/* content sits above bg/overlay */
.cta-title,
.cta-desc,
.section-cta .btn { position: relative; z-index: 2; }
.cta-title {
  font-size: 58px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1.74px;
  line-height: 1.1;
}
.cta-desc {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 30px;
  letter-spacing: .4px;
  max-width: 1080px;
}

/* ─── Footer Placeholder ─── */
#footer-placeholder {
  min-height: 60px;
  background-color: #000;
}

/* ═══════════════════════════════════════
   SCROLL-REVEAL ANIMATION
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --pad-section: 80px; }
  .section-heading { font-size: 48px; }
  .hero-title      { font-size: 48px; }
  .cta-title       { font-size: 48px; }
  .features-grid   { grid-template-rows: 380px 380px; }
  /* 380px cards: pull gradient in slightly */
  .feature-gradient {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0) 48%,
      rgba(0,0,0,.88) 100%);
  }
}

@media (max-width: 1024px) {
  .sol-bottom-row { grid-template-columns: 1fr; }
  .sol-phones     { display: none; }
}

@media (max-width: 960px) {
  :root { --pad-section: 70px; }
  .section-heading { font-size: 40px; letter-spacing: 1px; }
  .cta-title       { font-size: 40px; }
  .features-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  .feature-left, .feature-right, .feature-bottom {
    grid-area: auto;
    height: 320px;
  }
  /* Shorter cards → bring gradient in earlier so text stays in the dark zone.
     Also reset feature-bottom back to vertical gradient (diagonal looks odd
     on a narrow single-column card at this size). */
  .feature-gradient,
  .feature-bottom .feature-gradient {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,.88) 100%);
  }
  /* Reset feature-bottom text to bottom-anchored (matches side cards on mobile) */
  .feature-bottom .feature-text {
    top: auto;
    transform: none;
    bottom: 0;
    right: 0;
    max-width: none;
    text-align: center;
  }
  .feature-text { padding: 22px 28px 28px; }
  .product-row,
  .product-row-reverse { flex-direction: column; }
  .product-visual { flex: 0 0 auto; width: 100%; }
  .product-text   { width: 100%; }
  .aurora-label   { font-size: 12px; }
  /* Sol Glasses: image before text on mobile (DOM order is text→visual) */
  #sol-glasses .product-visual { order: -1; }
}

@media (max-width: 720px) {
  :root { --pad-section: 56px; }
  .section-heading { font-size: 34px; }
  .hero-title  { font-size: 34px; }
  .hero-sub    { font-size: 18px; }
  .section-hero { height: 500px; }
  .cta-title   { font-size: 32px; }
  .cta-desc    { font-size: 16px; }
  .news-grid   { grid-template-columns: 1fr; }
  .product-name { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-title      { font-size: 28px; }
  .section-heading { font-size: 28px; }
  .btn-hero        { font-size: 16px; }
  .feature-left, .feature-right, .feature-bottom { height: 260px; }
  /* Very short cards → gradient covers most of the card.
     Reset feature-bottom diagonal at this narrow size too. */
  .feature-gradient,
  .feature-bottom .feature-gradient {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0) 25%,
      rgba(0,0,0,.88) 100%);
  }
  .feature-text    { padding: 16px 22px 22px; }
  .feature-text h3 { font-size: 22px; margin-bottom: 10px; }
  .feature-text p  { font-size: 14px; line-height: 22px; }
}
