@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #f5f5f5;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(254, 1, 0, 0.25);
  --primary: #FE0100;
  --primary-rgb: 254, 1, 0;
  --primary-glow: rgba(254, 1, 0, 0.5);
  --secondary: #DDBE00; /* Gold from official BRT theme */
  --secondary-rgb: 221, 190, 0;
  --secondary-glow: rgba(221, 190, 0, 0.5);
  --accent: #FE0100;
  --accent-rgb: 254, 1, 0;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --merah-on: rgb(255, 145, 145);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Carbon Texture & Aurora Effects */
.aurora-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Carbon grid texture inspired by racing heritage */
.aurora-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0),
    radial-gradient(rgba(254, 1, 0, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  opacity: 0.5;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.aurora-1 {
  top: -10%;
  left: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.8) 0%, transparent 70%);
  animation: float-slow 22s infinite alternate;
}

.aurora-2 {
  bottom: -15%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.5) 0%, transparent 70%);
  animation: float-slow 28s infinite alternate-reverse;
}

.aurora-3 {
  top: 40%;
  right: 10%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, transparent 70%);
  animation: float-medium 18s infinite alternate;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(6%, 10%) scale(1.1);
  }
}

@keyframes float-medium {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-10%, -6%) scale(1.05);
  }
}

/* Layout Grid */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper-triple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 10px 24px;
  display: inline-flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: float-logo 6s ease-in-out infinite;
  overflow: hidden;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.header-logo-img {
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: var(--transition);
}

.logo-brt-electric {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.logo-brtplaza {
  border-radius: 10px;
}

.header-logo-img:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.logo-separator {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.12);
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Left Card: Info & Announcement */
.info-section {
  animation: fadeInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 100px;
  color: #ff4d4d;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #1a1a2e 40%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 span {
  display: block;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.6rem;
  }
}

.description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

/* Feature highlight list */
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 480px) {
  .features-list {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-item p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* Right Card: QR Code & Mobile App */
.app-card-wrapper {
  perspective: 1000px;
  animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02) 50%, rgba(var(--primary-rgb), 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12), 
              0 0 40px rgba(var(--primary-rgb), 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-card-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1.5px solid rgba(var(--primary-rgb), 0.2);
  background: #fff;
  padding: 4px;
  transition: var(--transition);
}

.app-card-logo-img:hover {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.2);
}


.app-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* QR Code Container with High-tech overlays */
.qr-container-outer {
  position: relative;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  margin-bottom: 24px;
}

.qr-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
  transition: var(--transition);
}

.qr-corner-tl { top: 8px; left: 8px; border-width: 2.5px 0 0 2.5px; }
.qr-corner-tr { top: 8px; right: 8px; border-width: 2.5px 2.5px 0 0; }
.qr-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2.5px 2.5px; }
.qr-corner-br { bottom: 8px; right: 8px; border-width: 0 2.5px 2.5px 0; }

.app-card:hover .qr-corner {
  border-color: var(--secondary);
  width: 18px;
  height: 18px;
}

.qr-code-box {
  width: 180px;
  height: 180px;
  background: white;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
}

/* Scanner Animation Effect */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  box-shadow: 0 0 10px var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.app-card:hover .scanner-line {
  opacity: 1;
  animation: scan 2.2s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 5%; }
  50% { top: 95%; }
  100% { top: 5%; }
}

.qr-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}

/* Google Play Store Link Button */
.btn-googleplay {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px 20px;
  color: #1a1a2e;
  text-decoration: none;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.btn-googleplay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(var(--primary-rgb), 0.06) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.btn-googleplay:hover::before {
  left: 125%;
}

.btn-googleplay:hover {
  background: #f5f5f5;
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.12);
}

.play-store-icon {
  width: 24px;
  height: 24px;
  fill: #1a1a2e;
}

.btn-text-wrapper {
  text-align: left;
}

.btn-text-small {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #888;
  display: block;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.btn-text-large {
  font-size: 0.95rem;
  font-weight: 800;
  display: block;
  margin-top: 1px;
}

/* Share & Copy Link Area */
.share-area {
  margin-top: 16px;
  width: 100%;
}

.btn-copy {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-copy:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.btn-copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(var(--primary-rgb), 0.1);
  color: #1a1a2e;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 100;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast svg {
  fill: var(--primary);
  width: 16px;
  height: 16px;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 30px 24px;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

footer a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================ */
/* Mobile Responsive Overrides                  */
/* ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }

  header {
    margin-bottom: 32px;
  }

  .logo-wrapper-triple {
    gap: 12px;
    padding: 8px 16px;
    border-radius: 60px;
    max-width: 100%;
  }

  .header-logo-img {
    height: 28px;
  }

  .logo-separator {
    height: 16px;
  }

  .main-content {
    gap: 36px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .description {
    font-size: 1rem;
    max-width: 100%;
  }

  .app-card {
    padding: 24px 20px;
  }

  .app-title {
    font-size: 1.2rem;
  }

  .qr-code-box {
    width: 160px;
    height: 160px;
  }

  .qr-container-outer {
    padding: 12px;
  }

  .features-list {
    gap: 14px;
  }

  footer {
    padding: 20px 16px;
    font-size: 0.8rem;
  }

  .aurora-1 {
    width: 80vw;
    height: 80vw;
  }

  .aurora-2 {
    width: 80vw;
    height: 80vw;
  }

  .aurora-3 {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }

  header {
    margin-bottom: 24px;
  }

  .logo-wrapper-triple {
    gap: 8px;
    padding: 6px 12px;
    border-radius: 40px;
    max-width: 100%;
  }

  .header-logo-img {
    height: 22px;
  }

  .logo-separator {
    height: 12px;
  }

  h1 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
  }

  .description {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .features-list {
    gap: 12px;
    margin-bottom: 24px;
  }

  .feature-item {
    gap: 10px;
  }

  .feature-item p {
    font-size: 0.85rem;
  }

  .feature-item span {
    font-size: 0.78rem;
  }

  .app-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .app-card-logo-img {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .app-title {
    font-size: 1.05rem;
  }

  .qr-code-box {
    width: 140px;
    height: 140px;
    padding: 8px;
  }

  .qr-container-outer {
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .qr-instruction {
    font-size: 0.78rem;
    margin-bottom: 18px;
  }

  .btn-googleplay {
    padding: 8px 16px;
    border-radius: 10px;
  }

  .play-store-icon {
    width: 20px;
    height: 20px;
  }

  .btn-text-small {
    font-size: 0.58rem;
  }

  .btn-text-large {
    font-size: 0.85rem;
  }

  .btn-copy {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .btn-copy svg {
    width: 12px;
    height: 12px;
  }

  .share-area {
    margin-top: 12px;
  }

  .main-content {
    gap: 28px;
  }

  footer {
    padding: 16px 12px;
    font-size: 0.75rem;
  }

  .toast {
    bottom: 16px;
    padding: 10px 18px;
    font-size: 0.82rem;
    max-width: calc(100vw - 32px);
  }

  .aurora-1, .aurora-2 {
    width: 100vw;
    height: 100vw;
    filter: blur(100px);
    opacity: 0.06;
  }
}

@media (max-width: 360px) {
  .logo-wrapper-triple {
    gap: 6px;
    padding: 5px 10px;
    max-width: 100%;
  }

  .header-logo-img {
    height: 18px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .qr-code-box {
    width: 120px;
    height: 120px;
    padding: 6px;
  }

  .app-card {
    padding: 16px 12px;
  }
}

/* Disable heavy animations on mobile for performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
