/* ============================================================
   LOTUS BRIDGE TRADING FZE — Industrial Corporate Stylesheet
   ============================================================ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0:        #080c11;
  --bg-1:        #0e1420;
  --bg-2:        #141d2e;
  --bg-card:     #18243a;
  --bg-card-h:   #1f2f4a;
  --gold:        #c8921a;
  --gold-light:  #e0a82a;
  --gold-dim:    #7a5510;
  --steel:       #2563a0;
  --steel-light: #3a7bc8;
  --text-0:      #eaf0f8;
  --text-1:      #9aabbd;
  --text-2:      #5f7285;
  --border:      #1e2f45;
  --border-h:    #2a4060;
  --accent-line: #c8921a;
  --radius:      4px;
  --radius-lg:   8px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.45);
  --transition:  0.25s ease;
  --font-sans:   'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono:   'SF Mono', 'Fira Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,26,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-0);
  border-color: var(--border-h);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── SITE HEADER ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 12, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-0);
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: var(--transition);
  border-radius: var(--radius);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav a:hover { color: var(--text-0); }
.nav a:hover::after { transform: scaleX(1); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--gold); }

.lang-opt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
  transition: var(--transition);
  cursor: pointer;
}
.lang-opt.active { color: var(--gold); }
.lang-divider { color: var(--border-h); font-size: 0.7rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-0);
  border-radius: 1px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-0);
  padding-top: 68px;
}

/* Subtle grid background */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 47, 69, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 47, 69, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 160, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at bottom right, rgba(200, 146, 26, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 120px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 146, 26, 0.12);
  border: 1px solid rgba(200, 146, 26, 0.35);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 28px;
}
.hero-title .accent {
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-1);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-0);
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-1); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 16px;
}
.section-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 24px;
}
.section-desc {
  color: var(--text-1);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.about-main .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-0);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-main p {
  color: var(--text-1);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.pillar:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card-h);
}
.pillar-icon {
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.pillar h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 8px;
}
.pillar p {
  font-size: 0.82rem;
  color: var(--text-1);
  line-height: 1.6;
}

.partners-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  flex-wrap: wrap;
}
.partners-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.partner-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.partner-tags span {
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  color: var(--text-1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius);
}

/* ─── PRODUCTS GRID ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ─── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--gold-dim);
}

/* Image container with bottom-right mask */
.product-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}

.product-img-container img {
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-container img {
  transform: scale(1.04);
}

/* Bottom-right 20% mask — diagonal gradient overlay */
.img-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    /* Bottom-right triangular mask covering ~20% of image area */
    linear-gradient(
      to top left,
      rgba(8, 12, 17, 0.97) 0%,
      rgba(8, 12, 17, 0.97) 22%,
      rgba(8, 12, 17, 0.6) 32%,
      transparent 46%
    );
  /* Ensure mask is anchored to bottom-right */
  background-origin: padding-box;
}

/* Hover overlay */
.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 17, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
}
.img-overlay span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: var(--radius);
}
.product-card:hover .img-overlay { opacity: 1; }

/* Product info */
.product-info {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-0);
}
.product-desc {
  font-size: 0.8rem;
  color: var(--text-1);
  line-height: 1.6;
  flex: 1;
}
.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.product-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 146, 26, 0.1);
  border: 1px solid rgba(200, 146, 26, 0.25);
  padding: 3px 10px;
  border-radius: 2px;
}

/* Wide card (2-col grid) */
.product-card-wide .product-img-container {
  aspect-ratio: 16 / 7;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(6px);
}

.modal-container {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.modal.open .modal-container { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.modal-close:hover { color: var(--gold); }

.modal-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 10px;
}
.modal-desc {
  font-size: 0.88rem;
  color: var(--text-1);
  line-height: 1.7;
  max-width: 680px;
}

.modal-gallery {
  padding: 28px 40px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.modal-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.modal-img-wrap:hover img { transform: scale(1.03); }

/* Modal image mask */
.modal-img-wrap .img-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to top left,
    rgba(8, 12, 17, 0.97) 0%,
    rgba(8, 12, 17, 0.97) 22%,
    rgba(8, 12, 17, 0.6) 32%,
    transparent 46%
  );
}

/* ─── SECTION DIVIDERS ──────────────────────────────────────── */
.section + .section-dark,
.section-dark + .section {
  position: relative;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  /* Header */
  .nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: rgba(8, 12, 17, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-title { font-size: 2.4rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .hero-scroll { display: none; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .products-grid-2 { grid-template-columns: 1fr; }
  .product-card-wide .product-img-container { aspect-ratio: 16 / 9; }

  /* About */
  .about-pillars { grid-template-columns: 1fr; }

  /* Modal */
  .modal-gallery { grid-template-columns: 1fr; padding: 20px; }
  .modal-header { padding: 24px 20px 20px; }
  .modal-close { top: 12px; right: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* ─── UTILITY ────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Fade-in animation on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
