/* =====================================================
   BitXchange inc. — Corporate site
   Design: Navy × Serif / heavy, trust-oriented
   ===================================================== */

:root {
  --navy-900: #0a1a33;
  --navy-800: #0d2145;
  --navy-700: #142d5c;
  --navy-600: #1d3a70;
  --gold-500: #b89550;
  --gold-400: #c9ab6e;
  --gold-300: #e0cfa0;
  --ink: #1a232f;
  --ink-soft: #48546333;
  --paper: #f7f5ef;
  --paper-2: #efece2;
  --white: #ffffff;
  --line: #d9d3c4;
  --muted: #5c6672;
  --max: 1120px;
  --serif-jp: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif-en: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --sans-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 51, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(200, 172, 110, 0.28);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--white); }
.brand .mark {
  font-family: var(--serif-en);
  font-size: 26px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--white);
}
.brand .mark b { color: var(--gold-400); font-weight: 600; }
.brand .sub {
  font-size: 11px; letter-spacing: 0.28em; color: var(--gold-300);
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: #d7ddea; font-size: 13.5px; letter-spacing: 0.14em;
  position: relative; padding: 6px 0;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--gold-400); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold-400); transition: width .3s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid rgba(200,172,110,.55); padding: 9px 18px !important;
  border-radius: 2px; color: var(--gold-300) !important;
}
.nav-cta:hover { background: var(--gold-500); color: var(--navy-900) !important; border-color: var(--gold-500); }
.nav-cta::after { display: none; }

.menu-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(184,149,80,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .wrap { position: relative; padding: 108px 28px 96px; }
.hero .eyebrow {
  font-family: var(--serif-en);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-400); font-size: 13px; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif-jp); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.4;
  letter-spacing: 0.04em; margin-bottom: 28px;
}
.hero h1 .accent { color: var(--gold-400); }
.hero .lead {
  max-width: 640px; color: #cfd7e6; font-size: 16.5px; line-height: 2.1;
}
.hero .hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 64px; display: flex; gap: 46px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 30px;
}
.hero-meta .item .k {
  font-family: var(--serif-en); font-size: 30px; color: var(--gold-300); letter-spacing: .03em;
}
.hero-meta .item .v { font-size: 12.5px; letter-spacing: .16em; color: #aeb8cb; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: 0.12em; padding: 14px 26px;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); font-weight: 500; }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }
.btn .arrow { font-family: var(--serif-en); }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); }
.section.navy { background: var(--navy-900); color: var(--white); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--serif-en);
  letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px;
  color: var(--gold-500); margin-bottom: 18px;
}
.navy .kicker { color: var(--gold-400); }
.section h2 {
  font-family: var(--serif-jp); font-weight: 600;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.5;
  letter-spacing: 0.04em; color: var(--navy-900);
}
.navy h2 { color: var(--white); }
.section h2 .thin { color: var(--gold-500); }
.section .sub { margin-top: 20px; color: var(--muted); font-size: 15.5px; }
.navy .sub { color: #b8c2d4; }

/* ---------- Business cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.biz-card {
  background: var(--white); border: 1px solid var(--line);
  padding: 38px 32px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.biz-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 46px;
  background: var(--gold-500);
}
.biz-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -30px rgba(10,26,51,0.45); border-color: var(--gold-300); }
.biz-card .no {
  font-family: var(--serif-en); font-size: 14px; letter-spacing: .2em;
  color: var(--gold-500); margin-bottom: 18px;
}
.biz-card h3 {
  font-family: var(--serif-jp); font-weight: 600; font-size: 20px;
  color: var(--navy-900); margin-bottom: 6px; letter-spacing: .04em;
}
.biz-card .en {
  font-family: var(--serif-en); font-size: 13px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 16px;
}
.biz-card p { font-size: 14.5px; color: #47525f; line-height: 1.95; }

/* ---------- Detail blocks (works) ---------- */
.detail {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: start;
  padding: 62px 0; border-bottom: 1px solid var(--line);
}
.detail:last-child { border-bottom: 0; }
.detail .side .num {
  font-family: var(--serif-en); font-size: 64px; color: var(--gold-300); line-height: 1;
}
.detail .side h3 {
  font-family: var(--serif-jp); font-weight: 600; font-size: 26px;
  color: var(--navy-900); margin: 14px 0 8px; letter-spacing: .04em;
}
.detail .side .en {
  font-family: var(--serif-en); letter-spacing: .2em; text-transform: uppercase;
  font-size: 12.5px; color: var(--gold-500);
}
.detail .body p { color: #45505d; font-size: 15.5px; margin-bottom: 18px; }
.detail .body ul { list-style: none; margin-top: 22px; }
.detail .body li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 14.5px; color: var(--ink);
}
.detail .body li::before {
  content: "—"; position: absolute; left: 0; color: var(--gold-500);
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 85% -20%, rgba(184,149,80,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.page-hero .wrap { padding: 84px 28px 70px; }
.page-hero .crumbs { font-size: 12px; letter-spacing: .12em; color: #9aa6bd; margin-bottom: 20px; }
.page-hero .crumbs a:hover { color: var(--gold-300); }
.page-hero h1 {
  font-family: var(--serif-jp); font-weight: 600;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: .05em;
}
.page-hero .en {
  font-family: var(--serif-en); letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-400); font-size: 13px; margin-top: 14px;
}

/* ---------- Table (outline) ---------- */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.info-table th, .info-table td {
  text-align: left; vertical-align: top; padding: 22px 26px;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 210px; background: var(--paper-2); color: var(--navy-900);
  font-weight: 600; font-family: var(--serif-jp); letter-spacing: .04em;
}
.info-table td { color: #3c4753; }
.info-table td .note { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Quote / statement ---------- */
.statement { text-align: center; max-width: 820px; margin: 0 auto; }
.statement p {
  font-family: var(--serif-jp); font-size: clamp(19px, 2.5vw, 27px);
  line-height: 2.1; letter-spacing: .05em; color: var(--white);
}
.statement .mk { color: var(--gold-400); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); padding: 40px 36px;
}
.contact-card h3 {
  font-family: var(--serif-jp); font-size: 20px; color: var(--navy-900);
  margin-bottom: 20px; letter-spacing: .04em;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; letter-spacing: .06em; color: var(--navy-900); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  background: var(--paper); font-family: var(--sans-jp); font-size: 15px; color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info li { list-style: none; margin-bottom: 22px; }
.contact-info .lab { font-family: var(--serif-en); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--gold-500); }
.contact-info .val { font-size: 16px; color: var(--navy-900); margin-top: 4px; }
.contact-info .val small { color: var(--muted); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(184,149,80,0.2), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: var(--white); text-align: center; padding: 80px 0;
}
.cta-band h2 { font-family: var(--serif-jp); font-weight: 600; font-size: clamp(23px,3vw,34px); letter-spacing: .05em; margin-bottom: 18px; }
.cta-band p { color: #c1cadb; margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aab4c7; padding: 60px 0 30px; border-top: 1px solid rgba(200,172,110,.25); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand .mark { font-family: var(--serif-en); font-size: 24px; color: var(--white); letter-spacing: .06em; }
.foot-brand .mark b { color: var(--gold-400); }
.foot-brand p { font-size: 13px; margin-top: 12px; max-width: 320px; color: #8f9bb0; }
.foot-nav { display: flex; gap: 54px; flex-wrap: wrap; }
.foot-nav .col h4 { font-size: 12px; letter-spacing: .2em; color: var(--gold-300); margin-bottom: 16px; text-transform: uppercase; }
.foot-nav .col a { display: block; font-size: 13.5px; color: #aab4c7; margin-bottom: 10px; }
.foot-nav .col a:hover { color: var(--white); }
.foot-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #7c889d; }
.foot-bottom .en { font-family: var(--serif-en); letter-spacing: .14em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 84px 28px 72px; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy-900); padding: 18px 28px 26px;
    border-bottom: 1px solid rgba(200,172,110,.3);
  }
  .nav.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav.open .nav-cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
  .info-table th { width: 130px; padding: 16px; }
  .info-table td { padding: 16px; }
  .foot-top { flex-direction: column; }
}

/* =====================================================
   HERO CAROUSEL — refined image version
   ===================================================== */
.hero-carousel {
  position: relative;
  height: calc(100vh - 78px);
  min-height: 620px;
  max-height: 820px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.hero-carousel .slides,
.hero-carousel .slide {
  position: absolute;
  inset: 0;
}

.hero-carousel .slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.05s ease;
}

.hero-carousel .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-carousel .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.045);
  transition: transform 8s ease-out;
}

.hero-carousel .slide.active .slide-bg {
  transform: scale(1);
}

.hero-carousel .slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,14,30,0.84) 0%, rgba(6,14,30,0.64) 42%, rgba(6,14,30,0.28) 100%),
    radial-gradient(1000px 520px at 24% 46%, rgba(184,149,80,0.10), transparent 64%),
    linear-gradient(180deg, rgba(5,12,26,0.18), rgba(5,12,26,0.72));
}

.slide-1 .slide-bg { background-image: url("img/hero-01.jpg"); }
.slide-2 .slide-bg { background-image: url("img/hero-02.jpg"); }
.slide-3 .slide-bg { background-image: url("img/hero-03.jpg"); }
.slide-4 .slide-bg { background-image: url("img/hero-04.jpg"); }
.slide-5 .slide-bg { background-image: url("img/hero-05.jpg"); }

.hero-carousel .slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
}

.hero-carousel .eyebrow {
  font-family: var(--serif-en);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-size: 13px;
  margin-bottom: 26px;
}

.hero-carousel h1 {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: clamp(31px, 4.7vw, 56px);
  line-height: 1.42;
  letter-spacing: 0.045em;
  margin-bottom: 28px;
  text-shadow: 0 4px 28px rgba(0,0,0,0.42);
}

.hero-carousel h1 .accent {
  color: var(--gold-400);
}

.hero-carousel .lead {
  max-width: 680px;
  color: #d7dfec;
  font-size: 16.5px;
  line-height: 2.08;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.hero-carousel .hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.70);
  font-family: var(--serif-en);
  font-size: 46px;
  line-height: 1;
  padding: 14px 20px;
  cursor: pointer;
  transition: color .25s ease, opacity .25s ease;
}

.car-nav:hover {
  color: var(--white);
}

.car-prev { left: 14px; }
.car-next { right: 14px; }

.car-counter {
  position: absolute;
  top: 30px;
  right: 36px;
  z-index: 6;
  font-family: var(--serif-en);
  letter-spacing: 0.18em;
  font-size: 14px;
  color: rgba(255,255,255,0.76);
}

.car-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 12px;
}

.car-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.40);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

.car-dots button.active {
  width: 30px;
  background: var(--gold-400);
}

@media (max-width: 900px) {
  .hero-carousel {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-carousel .slides,
  .hero-carousel .slide {
    position: relative;
  }
  .hero-carousel .slide {
    display: none;
    min-height: 620px;
  }
  .hero-carousel .slide.active {
    display: block;
  }
  .hero-carousel .slide-content {
    min-height: 620px;
    padding-top: 78px;
    padding-bottom: 92px;
  }
}

@media (max-width: 680px) {
  .hero-carousel .slide {
    min-height: 560px;
  }
  .hero-carousel .slide-content {
    min-height: 560px;
    padding-top: 92px;
    padding-bottom: 92px;
  }
  .car-nav {
    font-size: 34px;
    padding: 10px;
  }
  .car-prev { left: 2px; }
  .car-next { right: 2px; }
  .car-counter {
    top: 18px;
    right: 22px;
    font-size: 12px;
  }
}
