/* ==========================================================================
   Try Galaxy Official Light / White Theme Clone
   Matching trygalaxy.com pixel-for-pixel
   ========================================================================== */

@font-face {
  font-family: 'SamsungSSHead';
  src: url('./fonts/SamsungSSHead-Bold.56eb7bfda8b50426.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SamsungSSHead';
  src: url('./fonts/SamsungSSHead-Regular.033d528ffbc3cd8a.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SamsungOne';
  src: url('./fonts/SamsungOne-700.ae45dfd00dc8cdd7.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SamsungOne';
  src: url('./fonts/SamsungOne-400.5567ae7eaf24a03c.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --tg-font-title: 'SamsungSSHead', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tg-font-body: 'SamsungOne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tg-bg: #FFFFFF;
  --tg-text-main: #000000;
  --tg-text-sub: #555555;
  --tg-text-muted: #767676;
  --tg-border: #E5E7EB;
  --tg-blue: #0381FE;
}

/* Standalone / PWA Instant Bypass */
html.in-pwa-os #trygalaxyLanding,
body.in-pwa-os #trygalaxyLanding,
#trygalaxyLanding.hidden-landing {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Base Landing Overlay */
#trygalaxyLanding {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: var(--tg-bg);
  color: var(--tg-text-main);
  font-family: var(--tg-font-body);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Aurora Background Elements (exact trygalaxy.com assets) */
.tg-bg-top-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  max-width: 460px;
  height: 100%;
  max-height: 850px;
  background-image: url('./try-galaxy-background-top-left.71f38b4f.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.tg-bg-top-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 45%;
  max-width: 460px;
  height: 100%;
  max-height: 850px;
  background-image: url('./try-galaxy-background-top-right.e3dda09c.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* Mobile Background */
.tg-bg-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-image: url('./try-galaxy-background-mobile.7c799189.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.tg-landing-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Top Header */
.tg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 36px;
}

.tg-samsung-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}

.tg-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tg-font-title);
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.04);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tg-header-badge .sparkle {
  color: var(--tg-blue);
}

/* Two-column Hero Grid (Desktop) */
.tg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  margin: auto 0;
  padding: 20px 0 40px;
}

/* Left Hero Content */
.tg-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tg-app-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
  display: block;
}

.tg-title {
  font-family: var(--tg-font-title);
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tg-text-main);
  margin: 0 0 16px;
}

.tg-title span {
  display: block;
  font-size: 64px;
  font-weight: 700;
}

.tg-scan-instruction {
  font-family: var(--tg-font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--tg-text-sub);
  margin: 0 0 28px;
  line-height: 1.4;
}

/* QR Code Card */
.tg-qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  border: 4px solid #F2F2F2;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.tg-qr-img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 8px;
}

.tg-qr-label {
  font-family: var(--tg-font-body);
  font-size: 12px;
  font-weight: 700;
  color: #767676;
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CTA Launch Buttons */
.tg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF !important;
  font-family: var(--tg-font-title);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tg-btn-primary:hover {
  background: #222222;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.tg-btn-primary .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.tg-btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* Right Hero Phone Preview */
.tg-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tg-phone-mockup {
  position: relative;
  width: 290px;
  height: 600px;
  background: #000000;
  border-radius: 46px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border: 4px solid #DFE2E6;
}

.tg-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.tg-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tg-phone-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--tg-font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Mobile Instructions Card (hidden on desktop, active on mobile) */
.tg-mobile-instructions {
  display: none;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--tg-border);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  margin: 20px 0 28px;
}

.tg-guide-tabs {
  display: flex;
  background: #F4F5F7;
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.tg-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #666666;
  font-family: var(--tg-font-title);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tg-tab-btn.active {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tg-steps-kicker {
  font-family: var(--tg-font-title);
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 18px;
}

.tg-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #F0F2F5;
  text-align: left;
}

.tg-step-row:last-child {
  border-bottom: none;
}

.tg-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F0F2F5;
  color: #111111;
  font-family: var(--tg-font-title);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tg-step-text {
  font-size: 14px;
  line-height: 1.45;
  color: #222222;
}

.tg-step-text strong {
  display: block;
  font-family: var(--tg-font-title);
  font-weight: 700;
  color: #000000;
  margin-bottom: 2px;
}

.tg-inline-icon {
  display: inline-block;
  vertical-align: -3px;
  width: 18px;
  height: 18px;
  color: var(--tg-blue);
}

/* Bottom Legal Section */
.tg-legal {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  text-align: center;
}

.tg-legal p {
  font-family: var(--tg-font-body);
  font-size: 11px;
  line-height: 1.6;
  color: var(--tg-text-muted);
  margin: 0 0 6px;
}

.tg-legal a {
  color: var(--tg-blue);
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 899px) {
  .tg-bg-top-left,
  .tg-bg-top-right {
    display: none !important;
  }

  .tg-bg-mobile {
    display: block;
  }

  .tg-landing-container {
    padding: 24px 20px 40px;
  }

  .tg-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0;
  }

  .tg-hero-left {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .tg-app-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .tg-title {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .tg-title span {
    font-size: 40px;
  }

  .tg-scan-instruction {
    display: none;
  }

  .tg-qr-card {
    display: none;
  }

  #desktopOpenBtn {
    display: none;
  }

  .tg-mobile-instructions {
    display: block;
  }

  .tg-hero-right {
    width: 100%;
    margin-top: 10px;
  }

  .tg-phone-mockup {
    width: 240px;
    height: 490px;
    border-radius: 38px;
  }

  .tg-phone-screen {
    border-radius: 30px;
  }
}

/* Header Navigation */
.tg-nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.tg-nav-item {
  font-family: var(--tg-font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--tg-text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tg-nav-item:hover {
  color: var(--tg-text-main);
}

@media (max-width: 899px) {
  .tg-nav-menu {
    display: none;
  }
}

/* Landing SEO Showcase Sections */
.tg-showcase-section {
  width: 100%;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--tg-border);
}

.tg-section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.tg-section-kicker {
  font-family: var(--tg-font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--tg-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.tg-section-title {
  font-family: var(--tg-font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--tg-text-main);
  letter-spacing: -0.02em;
}

.tg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 899px) {
  .tg-card-grid {
    grid-template-columns: 1fr;
  }
}

.tg-feature-card {
  background: #FFFFFF;
  border: 1px solid var(--tg-border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tg-feature-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: inline-block;
}

.tg-feature-card h3 {
  font-family: var(--tg-font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tg-text-main);
}

.tg-feature-card p {
  font-size: 14px;
  color: var(--tg-text-sub);
  line-height: 1.55;
}
