/* Homecoming Noculator Official Web Portal — Brand Palette Theme
   Signature tokens sourced from ic_launcher_foreground.xml:
   Forest Pine: #2F5D50 | Deep Pine: #19342D | Cream: #FFF7E8
   Warm Gold: #E0A94A | Terracotta: #C56B4A
*/

:root {
  --pine: #2F5D50;
  --pine-dark: #163029;
  --pine-deeper: #0E201B;
  --cream: #FFF7E8;
  --cream-soft: #FBF3E4;
  --white: #FFFFFF;
  --gold: #E0A94A;
  --gold-bright: #F3C86B;
  --terracotta: #C56B4A;
  --ink: #172722;
  --ink-muted: #4E615A;
  --border: #E5DEC9;
  --shadow-sm: 0 4px 14px rgba(14, 32, 27, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 32, 27, 0.12);
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Myanmar', 'Pyidaungsu', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[data-lang="my"] body {
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

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

.hidden {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, #9F3C20, #C56B4A, #B77C1D);
  color: #FFFDF8;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.promo-banner-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.promo-pill {
  background: rgba(14, 32, 27, 0.45);
  border: 1px solid rgba(255, 247, 232, 0.45);
  color: #FFF7E8;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.promo-sub {
  opacity: 0.92;
  font-size: 0.85rem;
}

.promo-countdown {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(14, 32, 27, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 48, 41, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 169, 74, 0.2);
  color: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--cream);
}

.brand-domain {
  font-size: 0.75rem;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a {
  color: rgba(255, 247, 232, 0.86);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 247, 232, 0.08);
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 247, 232, 0.78);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--pine-deeper);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 0.9rem 1.35rem;
  text-align: left;
}

.btn-lg strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.btn-lg small {
  display: block;
  font-size: 0.78rem;
  opacity: 0.86;
  font-weight: 600;
}

.btn-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--pine-deeper);
  box-shadow: 0 8px 20px rgba(224, 169, 74, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 10px 24px rgba(224, 169, 74, 0.42);
}

.btn-pine {
  background: var(--pine);
  color: var(--cream);
}

.btn-pine:hover {
  background: #254b40;
}

.btn-outline-light {
  background: rgba(255, 247, 232, 0.08);
  border-color: rgba(255, 247, 232, 0.32);
  color: var(--cream);
}

.btn-outline-light:hover {
  background: rgba(255, 247, 232, 0.16);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine);
}

.btn-outline-dark:hover {
  background: rgba(47, 93, 80, 0.08);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 18%, rgba(224, 169, 74, 0.16), transparent 45%),
              linear-gradient(155deg, var(--pine-deeper) 0%, var(--pine-dark) 52%, #23493E 100%);
  color: var(--cream);
  padding: 4.5rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.version-pill,
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
}

.version-pill {
  background: rgba(224, 169, 74, 0.18);
  border: 1px solid rgba(224, 169, 74, 0.42);
  color: var(--gold-bright);
}

.platform-pill {
  background: rgba(255, 247, 232, 0.1);
  border: 1px solid rgba(255, 247, 232, 0.22);
  color: var(--cream);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.95rem, 4vw, 3.05rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html[data-lang="my"] .hero h1 {
  line-height: 1.42;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  color: rgba(255, 247, 232, 0.86);
  font-size: 1.06rem;
  max-width: 60ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  font-size: 0.86rem;
  color: rgba(255, 247, 232, 0.82);
}

.showcase-card {
  background: rgba(255, 247, 232, 0.08);
  border: 1px solid rgba(224, 169, 74, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.showcase-title {
  font-weight: 800;
  font-size: 0.98rem;
}

.showcase-sub {
  font-size: 0.8rem;
  color: rgba(255, 247, 232, 0.74);
}

.showcase-tag {
  margin-left: auto;
  background: #238636;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}

.showcase-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-tile {
  background: rgba(14, 32, 27, 0.55);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.showcase-loot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.loot-chip {
  background: rgba(255, 247, 232, 0.1);
  border: 1px solid rgba(224, 169, 74, 0.28);
  border-radius: 12px;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.loot-chip small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 247, 232, 0.76);
}

.loot-chip strong {
  font-size: 0.84rem;
  color: var(--gold-bright);
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-pine {
  background: linear-gradient(160deg, var(--pine-dark), var(--pine-deeper));
  color: var(--cream);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.section-head.light .eyebrow {
  color: var(--gold-bright);
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
}

html[data-lang="my"] .section-head h2 {
  line-height: 1.48;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
}

.section-head.light .section-desc {
  color: rgba(255, 247, 232, 0.8);
}

/* Download Center */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.dl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.dl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dl-platform-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.badge-android {
  background: #E6F4EC;
  color: #166534;
}

.badge-windows {
  background: #E8F0FE;
  color: #1D4ED8;
}

.dl-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.dl-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.dl-summary {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.dl-specs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  background: var(--cream-soft);
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.dl-specs dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-muted);
}

.dl-specs dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  word-break: break-all;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.dl-note {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.feature-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card img {
  margin-bottom: 0.9rem;
  border-radius: 12px;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Tabs & Pricing */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(224, 169, 74, 0.2);
}

.price-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.plan-name {
  font-weight: 800;
  font-size: 1rem;
}

.plan-badge {
  background: var(--cream-soft);
  color: var(--pine);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-discount {
  background: #FFF1E8;
  color: var(--terracotta);
  border-color: #F4CCB8;
}

.badge-gold {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.plan-orig {
  font-size: 0.9rem;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 600;
}

.plan-price {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--pine);
}

.plan-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Changelog */
.changelog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.log-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.log-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--pine);
}

.log-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.loading-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
}

/* Support & Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-card {
  background: rgba(255, 247, 232, 0.08);
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--pine-deeper);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.04rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 247, 232, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: rgba(14, 32, 27, 0.55);
  border: 1px solid rgba(224, 169, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-all;
}

.contact-email {
  font-size: 0.94rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

/* Footer */
.site-footer {
  background: #0B1915;
  color: rgba(255, 247, 232, 0.76);
  padding: 2rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand a {
  color: var(--gold-bright);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.72;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--pine-deeper);
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 Page */
.notfound-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--pine-deeper), var(--pine-dark));
  color: var(--cream);
  padding: 1.5rem;
}

.notfound-card {
  width: min(500px, 100%);
  text-align: center;
  background: rgba(255, 247, 232, 0.08);
  border: 1px solid rgba(224, 169, 74, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
}

.notfound-logo {
  margin: 0 auto 1rem;
}

.notfound-copy,
.notfound-copy-my {
  color: rgba(255, 247, 232, 0.85);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .hero-grid,
  .download-grid,
  .features-grid,
  .pricing-grid,
  .changelog-grid,
  .steps-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 3rem 0;
  }

  .showcase-loot {
    grid-template-columns: 1fr;
  }
}

