@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap");

/* ── Variables ── */
:root {
  --color-surface: #f6f9ff;
  --color-surface-off: #f7f8fa;
  --color-surface-muted: #ebf5ff;
  --color-surface-container: #e0f0ff;
  --color-ink: #1a2e4a;
  --color-tertiary: #001935;
  --color-gold: #c8a84b;
  --color-steel: #4a7fa5;
  --color-blue: #2563a8;
  --color-text: #001e30;
  --color-text-muted: #44474d;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-outline: #c4c6ce;
  --color-ui-blue: #e8f0fb;
  --color-ui-gold: #f5edd6;
  --color-error: #ba1a1a;
  --color-error-bg: #ffdad6;

  --font-sans: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;

  --nav-height: 100px;
  --container-max: 80rem;
  --section-y: 3.5rem;
  --section-x: 3rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-surface);
}

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

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

h1, h2, h3, h4, p, ul, dl, dd, dt {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  font-size: 1.25rem;
}

.mono {
  font-family: var(--font-mono);
}

.text-gold {
  color: var(--color-gold);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-x);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, filter 0.15s;
}

.btn--dark {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-tertiary);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-ink);
  padding: 1rem 2rem;
  font-size: 17.6px;
  font-weight: 500;
}

.btn--gold:hover {
  filter: brightness(1.05);
}

.btn--gold .material-symbols-outlined {
  transition: transform 0.15s;
}

.btn--gold:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  border: 0.5px solid var(--color-outline);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
}

.btn--ghost:hover {
  background: var(--color-surface-container);
}

.btn--block {
  width: 100%;
  padding: 1rem;
  font-weight: 700;
  margin-top: 1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(246, 249, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: none;
}

.nav__brand img {
  width: 200px;
  object-fit: contain;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--color-gold);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__portal {
  display: none;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  margin-top: var(--nav-height);
}

.hero__left,
.hero__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem var(--section-x);
}

.hero__left {
  position: relative;
  overflow: hidden;
  background-image: url("../assets/images/container.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  color: var(--color-white);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11.2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 168, 75, 0.8);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11.2px;
  text-transform: uppercase;
  color: var(--color-steel);
}

.hero__meta dd {
  font-family: var(--font-mono);
  font-size: 13.6px;
}

.hero__right {
  background: var(--color-surface-off);
 /* border-left: 0.5px solid var(--color-border); */
}

.hero__intro {
  max-width: 36rem;
}

.lead {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--color-ui-blue);
  color: var(--color-steel);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11.2px;
  text-transform: uppercase;
}

/* ── Ticker ── */
.ticker {
  background: var(--color-blue);
  border-block: 0.5px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.ticker__track span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 11.2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticker__track .material-symbols-outlined {
  color: var(--color-gold);
  font-size: 16px;
}

/* ── Sections ── */
.section {
  padding-block: var(--section-y);
}

.section--muted {
  background: var(--color-surface-muted);
}

.section--off {
  background: var(--color-surface-off);
  border-block: 0.5px solid var(--color-border);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.overline {
  display: block;
  margin-bottom: 1rem;
  font-size: 10.4px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel);
}

.overline--gold {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

/* ── About ── */
.about {
  display: grid;
  gap: 3rem;
}

.about__main p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ── Panel ── */
.panel {
  background: var(--color-surface-off);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details dt {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-steel);
  margin-bottom: 0.25rem;
}

.details dd {
  font-size: 13.6px;
}

.currency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.currency-tags span {
  padding: 0.125rem 0.5rem;
  background: var(--color-ui-gold);
  color: var(--color-gold);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ── Cards ── */
.cards {
  display: grid;
  gap: 1.5rem;
}

.cards--4 {
  grid-template-columns: 1fr;
}

.cards--3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background 0.15s;
}

.card:hover {
  background: var(--color-surface-container);
}

.card__icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--color-ui-blue);
  color: var(--color-blue);
  border-radius: var(--radius-md);
  transition: transform 0.15s;
}

.card:hover .card__icon {
  transform: scale(1.1);
}

.card__icon .material-symbols-outlined {
  font-size: 2.25rem;
}

.card h3 {
  font-size: 17.6px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hs-code {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(74, 127, 165, 0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-steel);
}

.card--region {
  padding: 2rem;
}

.card--region-origin {
  background-image:
    linear-gradient(to bottom, rgba(0, 25, 53, 0.45), rgba(0, 25, 53, 0.8)),
    url("../assets/images/components_lab.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  color: var(--color-white);
}

.card--region-origin h3 {
  color: var(--color-white);
}

.card--region-origin p {
  color: rgba(255, 255, 255, 0.75);
}

.card--region-origin .badge--blue {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.card--region-origin:hover {
  background-image:
    linear-gradient(to bottom, rgba(0, 25, 53, 0.45), rgba(0, 25, 53, 0.8)),
    url("../assets/images/components_lab.png");
  background-size: cover;
  background-position: center;
}

.card__flag {
  font-size: 2.875rem;
  margin-bottom: 1rem;
}

.card__flag img {
  display: block;
  height: 4rem;
  width: auto;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge--blue {
  background: var(--color-ui-blue);
  color: var(--color-steel);
}

.badge--gold {
  background: var(--color-gold);
  color: var(--color-ink);
}

.card--featured {
  background-image:
    linear-gradient(to bottom, rgba(0, 25, 53, 0.45), rgba(0, 25, 53, 0.8)),
    url("../assets/images/hk_sect.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  color: var(--color-white);
  border: 2px solid var(--color-gold);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
  position: relative;
  z-index: 1;
}

.card--featured h3 {
  color: var(--color-white);
}

.card--featured p {
  color: rgba(255, 255, 255, 0.75);
}

.card--featured:hover {
  background-image:
    linear-gradient(to bottom, rgba(0, 25, 53, 0.45), rgba(0, 25, 53, 0.8)),
    url("../assets/images/hk_sect.png");
  background-size: cover;
  background-position: center;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.steps__item {
  padding: 2rem;
  background: var(--color-surface);
  border-top: 0.5px solid var(--color-border);
}

.steps__item:first-child {
  border-top: none;
}

.steps__item--dark {
  background: var(--color-ink);
  color: var(--color-white);
}

.steps__item--dark p {
  color: rgba(255, 255, 255, 0.6);
}

.steps__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 1rem;
}

.steps__item--dark .steps__num {
  color: var(--color-gold);
}

.steps__item:not(.steps__item--dark) .steps__num {
  color: var(--color-steel);
}

.steps__item h3 {
  font-size: 17.6px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.steps__item p {
  font-size: 15px;
  /* color: var(--color-text-muted); */
}

/* ── Contact ── */
.contact {
  display: grid;
  gap: 4rem;
}

.contact__info h2 {
  margin-bottom: 1rem;
}

.contact__info .lead {
  margin-bottom: 3rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
}

.contact-list .material-symbols-outlined {
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.contact-list p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 12px;
}

.form__status--success {
  background: var(--color-ui-blue);
  color: var(--color-steel);
}

.form__status--error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.form__row {
  display: grid;
  gap: 1rem;
}

.form__field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 10.4px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--color-surface);
  border: 0.5px solid var(--color-outline);
  border-radius: var(--radius-md);
  outline: none;
  transition: box-shadow 0.15s;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  box-shadow: 0 0 0 1px var(--color-gold);
}

.form__field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Footer ── */
.footer {
  background: var(--color-ink);
  color: var(--color-surface);
  padding-block: 3rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__logo {
  /* filter: invert(1) brightness(2); */
  margin-bottom: 1.5rem;
}

.footer__brand p {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(202, 230, 255, 0.6);
  max-width: 20rem;
}

.footer h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer ul a,
.footer__grid > div > p {
  font-size: 12px;
  color: rgba(202, 230, 255, 0.6);
  transition: color 0.15s;
}

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

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(202, 230, 255, 0.6);
}

.footer__badges {
  display: flex;
  gap: 1rem;
}

.footer__badges span {
  padding: 0.125rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

@keyframes pulse {
  50% { opacity: 0.5; }
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }

  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .hero {
    flex-direction: row;
  }

  .hero__left,
  .hero__right {
    width: 50%;
    padding: 3rem var(--section-x);
  }

  .about {
    grid-template-columns: 2fr 1fr;
  }

  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps__item {
    border-top: none;
    border-left: 0.5px solid var(--color-border);
  }

  .steps__item:first-child {
    border-left: none;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .nav__portal {
    display: inline-flex;
  }

  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --section-x: 1.5rem;
  }
}
