/* =========================
   ROOT
========================= */
:root{
  --bg-main:#0b0f14;
  --bg-glass:rgba(15,20,28,.72);
  --border:rgba(255,255,255,.08);
  --text:#e6e8eb;
  --muted:#9ca3af;
  --accent:#3b82f6;
  --accent-2:#22d3ee;
}

/* =========================
   HEADER
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(11,15,20,.92),
    rgba(11,15,20,.7)
  );
  border-bottom: 1px solid var(--border);
}

/* =========================
   NAV WRAPPER
========================= */
.nav{
  max-width: 1280px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   BRAND
========================= */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
}

.brand img{
  height: 34px;
}

/* =========================
   MENU DESKTOP
========================= */
.nav-menu{
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link{
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s ease;
}

.nav-link:hover{
  color: var(--text);
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:2px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  transition: width .25s ease;
}

.nav-link:hover::after{
  width:100%;
}

/* =========================
   ACTIONS (LANG + CTA)
========================= */
.nav-actions{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language */
.lang{
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.lang button{
  background: none;
  border: 0;
  padding: 6px 12px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.lang button.active{
  background: rgba(59,130,246,.25);
  color: #fff;
}

/* CTA */
.cta-btn{
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(59,130,246,.35);
  transition: transform .2s ease;
}

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

/* =========================
   HAMBURGER (TRADING STYLE)
========================= */
.nav-toggle{
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  margin: 5px 0;
  transition: .3s;
}

/* =========================
   MOBILE MENU
========================= */
@media(max-width: 900px){
  .nav-toggle{display:block}

  .nav-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    background: linear-gradient(
      180deg,
      rgba(11,15,20,.98),
      rgba(11,15,20,.92)
    );
    padding: 22px;

    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-menu.open{
  display: flex;
  animation: slideDown .25s ease;
}

  .nav-actions{
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }
}

/* =========================
   ANIMATION
========================= */
@keyframes slideDown{
  from{
    opacity:0;
    transform: translateY(-8px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}


/* ===== MAIN SECTIONS ===== */
main section {
  padding: 80px 8%;
}

main section header {
  margin-bottom: 32px;
}

/* ===== OFFERINGS ===== */
#offerings h2 {
  margin-bottom: 12px;
}

#offerings h3 {
  margin-top: 32px;
  margin-bottom: 8px;
}

#offerings p {
  max-width: 720px;
}

/* ===== LIVE MARKET ===== */
#live-market {
  background: #fafafa;
}

#live-market select,
#live-market button {
  padding: 10px 12px;
  min-width: 160px;
}

#live-market iframe {
  margin-top: 20px;
  background: #fff;
  border-radius: 6px;
}

/* ===== CONTACT ===== */
#contact {
  background: #ffffff;
}

#contact p a {
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background: #0f0f0f;
  color: #b5b5b5;
  font-size: 14px;
}

footer section {
  padding: 32px 8%;
}

footer strong {
  color: #ffffff;
  font-size: 15px;
}

footer a {
  color: #b5b5b5;
}

footer a:hover {
  color: #ffffff;
}

footer hr {
  border-top: 1px solid #222;
}

/* ===== COPYRIGHT ===== */
footer > p {
  text-align: center;
  padding: 16px 8%;
  font-size: 13px;
  color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  main section {
    padding: 60px 6%;
  }

  header nav {
    gap: 8px;
  }
}
/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
}

/* VIDEO */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* OVERLAY – CỰC QUAN TRỌNG */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      120deg,
      rgba(5, 10, 25, 0.85),
      rgba(5, 10, 25, 0.55),
      rgba(0, 0, 0, 0.3)
    );
  backdrop-filter: saturate(120%) blur(2px);
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 960px;
  padding: 0 24px;
}

/* EYEBROW */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

/* HEADLINE */
.hero-inner h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(
    90deg,
    #ffffff,
    #7dd3fc,
    #38bdf8
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* DESCRIPTION */
.hero-desc {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

/* ACTIONS */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* PRIMARY CTA */
.btn-primary {
  background: linear-gradient(
    135deg,
    #38bdf8,
    #2563eb
  );
  color: #fff;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.5);
}

/* SECONDARY CTA */
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .hero-video {
    object-fit: contain;
    transform: scale(1);
    background: #000;
  }
}
/* ================================
   ABOUT HERO – TYPOGRAPHY FIX
   ================================ */

.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at 30% 30%,
    #0f172a,
    #020617
  );
  color: #ffffff;
}

/* WRAPPER */
.about-hero .hero-inner {
  max-width: 1200px;
  padding: 0 24px;
}

/* HEADLINE */
.about-hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.15;              /* FIX DÍNH DẤU TIẾNG VIỆT */
  letter-spacing: -0.01em;
  max-width: 11ch;                /* FIX LỘN DÒNG */
  margin-bottom: 24px;
  font-weight: 800;
}

/* HIGHLIGHT WORD */
.about-hero h1 .highlight {
  color: #5ecbff;
}

/* SUB TEXT */
.about-hero .hero-desc {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* TAGLINE / SMALL TEXT */
.about-hero .hero-sub {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ================================
   RESPONSIVE FIX
   ================================ */

/* LAPTOP */
@media (max-width: 1200px) {
  .about-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    max-width: 12ch;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .about-hero {
    min-height: 90vh;
  }

  .about-hero h1 {
    font-size: clamp(36px, 9vw, 48px);
    line-height: 1.2;
    max-width: 100%;
  }

  .about-hero .hero-desc {
    font-size: 16px;
  }
}
/* ===== ABOUT PAGE – RESPONSIVE LAYOUT ===== */

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}

.about-section{
  padding:80px 8%;
  max-width:1200px;
  margin:auto;
}

.about-section.dark{
  background:#0b0e11;
  color:#fff;
}

.about-section.black{
  background:#0b0b0b;
  color:#eaeaea;
}

.section-image img{
  width:100%;
  height:auto;
  border-radius:14px;
  display:block;
}

/* ===== MOBILE ===== */
@media (max-width:768px){

  .about-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  .about-section{
    padding:56px 20px;
  }

  .about-grid .section-image{
    order:2;
  }

  .about-grid > div:not(.section-image){
    order:1;
  }

  #hero{
    min-height:auto;
    padding:90px 20px 60px;
  }

  #hero h1{
    font-size:32px;
    line-height:1.2;
  }

  #hero p{
    font-size:15px;
  }

  main#about h2{
    font-size:26px;
    line-height:1.25;
  }

  main#about p,
  main#about li{
    font-size:15px;
    line-height:1.7;
  }

}
/* ===== PARTNERSHIP PAGE – RESPONSIVE ===== */

.partner-section{
  padding:80px 8%;
}

.partner-dark{
  background:#0b0e11;
  color:#eaecef;
}

.partner-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:center;
}

.partner-card{
  background:#131722;
  border-radius:12px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}

/* MOBILE */
@media (max-width:768px){

  .partner-section{
    padding:56px 20px;
  }

  .partner-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .partner-grid > div:first-child{
    order:1;
  }

  .partner-grid > div:last-child{
    order:2;
  }

  .partner-card{
    padding:18px;
  }

  #tickmill-profile table{
    font-size:14px;
  }

  #tickmill-profile td,
  #tickmill-profile th{
    padding:8px 6px !important;
    word-break:break-word;
  }

  #tickmill-profile a{
    word-break:break-all;
  }

  .hero{
    padding:90px 20px !important;
  }

  .hero h1{
    font-size:32px;
  }

}
/* ===== PARTNERSHIP MOBILE POLISH ===== */

@media (max-width:768px){

  /* hero gọn lại */
  .hero.partner-dark{
    padding:84px 20px 56px !important;
  }

  .hero.partner-dark h1{
    font-size:30px;
    line-height:1.2;
    margin-bottom:12px;
  }

  .hero.partner-dark p{
    font-size:15px;
    line-height:1.6;
  }

  /* section spacing nhịp đẹp hơn */
  .partner-section{
    padding:56px 20px;
  }

  /* list checkmark dễ đọc */
  .partner-section ul{
    margin-top:12px;
    padding-left:18px;
    line-height:1.7;
    font-size:15px;
  }

  /* ảnh partnership */
  .partner-section img{
    border-radius:14px;
    display:block;
    margin-top:16px;
  }

  /* process block */
  .grid-3 .card{
    padding:18px;
    font-size:15px;
    text-align:left;
  }

  /* CTA */
  .partner-section h2{
    font-size:26px;
    line-height:1.25;
  }

}
/* ===== PARTNERSHIP CTA FIX ===== */

.partner-cta{
  text-align:center;
  padding-bottom:120px;
}

.partner-cta p{
  margin:12px 0 28px;
  color:var(--muted);
}

@media (max-width:768px){
  .partner-cta{
    padding-bottom:140px;
  }
}
/* ===== CTA BOTTOM SPACE FIX ===== */

.partner-section:last-of-type{
  padding-bottom:140px;
}

/* iOS safe area */
@supports (padding: max(0px)) {
  .partner-section:last-of-type{
    padding-bottom: max(140px, env(safe-area-inset-bottom));
  }
}
