/* ==========================================================================
   TryGalaxy / GalaxyOS Shared Production Styles
   Elegant, Light, High-Performance UI matching trygalaxy.com design language
   ========================================================================== */

@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 {
  --font-title: 'SamsungSSHead', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'SamsungOne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --brand-blue: #0381FE;
  --brand-blue-hover: #0266CA;
  --brand-purple: #7C3AED;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Global Navigation Header
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.25s ease;
}

.site-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.nav-brand-badge {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  background: #EEF2F6;
  color: var(--brand-blue);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-launch-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  color: #FFFFFF !important;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-launch-nav:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links .nav-link {
  font-size: 16px;
  display: block;
  padding: 8px 0;
}

/* ==========================================================================
   Page Headers & Hero Layouts
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 72px 24px 48px;
  text-align: center;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  overflow: hidden;
}

.page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(3, 129, 254, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.page-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Section Layouts & Grid
   ========================================================================== */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

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

.section-title {
  font-family: var(--font-title);
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Responsive Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.card-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--text-primary) !important;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* Banner CTA Section */
.cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-banner-desc {
  font-size: 17px;
  color: #94A3B8;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-banner .btn-primary {
  background: var(--brand-blue);
  box-shadow: 0 4px 20px rgba(3, 129, 254, 0.4);
}

.cta-banner .btn-primary:hover {
  background: var(--brand-blue-hover);
}

/* ==========================================================================
   Global Footer
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  font-size: 14px;
  padding: 64px 24px 36px;
  border-top: 1px solid #1E293B;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-col {
  padding-right: 20px;
}

.footer-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #94A3B8;
  margin-bottom: 20px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1E293B;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: #64748B;
  line-height: 1.6;
}

.footer-disclaimer {
  max-width: 900px;
}

.footer-disclaimer a {
  color: var(--brand-blue);
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .page-title {
    font-size: 32px;
  }
  .page-subtitle {
    font-size: 16px;
  }
  .section {
    padding: 56px 20px;
  }
  .section-title {
    font-size: 28px;
  }
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .cta-banner-title {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
