:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
  --brand-color: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--default-font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

input,
select,
textarea,
button {
  outline: 0;
}

/* Main container - responsive layout */
.main-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background layer */
.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-09-26/9D0ZmnxYMn.png)
    no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 0;
}

/* Content wrapper */
.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  max-width: 90%;
  width: 100%;
}

/* Hero image */
.hero-image {
  width: min(477px, 80vw);
  height: min(394px, 60vw);
  max-height: 50vh;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-09-26/CMBxHr2RmO.png)
    no-repeat center center;
  background-size: contain;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Brand title */
.brand-title {
  color: var(--brand-color);
  font-family: Kufam, var(--default-font-family);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-shadow: 2px 2px 4px var(--shadow-color);
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
}

/* Responsive breakpoints */

/* Large tablets and small desktops */
@media (min-width: 768px) {
  .content-wrapper {
    padding: 3rem;
  }
  
  .hero-image {
    margin-bottom: 2rem;
  }
  
  .brand-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
  }
}

/* Medium to large desktops */
@media (min-width: 1024px) {
  .content-wrapper {
    padding: 4rem;
    max-width: 1200px;
  }
  
  .hero-image {
    width: min(477px, 40vw);
    height: min(394px, 32vw);
  }
  
  .brand-title {
    font-size: clamp(2.25rem, 3vw, 2.75rem);
  }
}

/* Extra large screens */
@media (min-width: 1440px) {
  .hero-image {
    width: 477px;
    height: 394px;
  }
  
  .brand-title {
    font-size: 2.25rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .content-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .hero-image {
    width: 85vw;
    height: 68vw;
    margin-bottom: 1rem;
  }
  
  .brand-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    white-space: normal;
    line-height: 1.2;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .content-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .brand-title {
    font-size: 1.25rem;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .main-container {
    min-height: 100vh;
  }
  
  .content-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
  }
  
  .hero-image {
    width: min(300px, 40vw);
    height: min(240px, 32vw);
    margin-bottom: 0;
  }
  
  .brand-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: left;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .background-layer {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .background-layer {
    background-attachment: scroll;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .brand-title {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  }
}

/* Print styles */
@media print {
  .background-layer {
    display: none;
  }
  
  .brand-title {
    color: #000;
    text-shadow: none;
  }
}
