/* ============================================================
   Home-specific styles for BTC International
   ============================================================ */

/* ─── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-navy-2);
  color: #fff;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #0080FF 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00D0FF 0%, transparent 70%);
  bottom: -200px; left: -100px;
  opacity: .35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
}

.hero-copy h1 { color: #fff; max-width: 16ch; }
.hero-copy h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lede { color: rgba(255,255,255,.74); max-width: 56ch; margin-top: 24px; }

.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.hero-meta-item strong { font-size: 16px; font-weight: 500; color: #fff; }

/* Hero visual composition */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4.4;
  min-height: 520px;
}
@media (max-width: 1080px) { .hero-visual { aspect-ratio: 5/4; min-height: 440px; } }
@media (max-width: 560px) { .hero-visual { min-height: 380px; } }

.dash {
  position: absolute;
  inset: 8% 4% 8% 4%;
  background: linear-gradient(180deg, rgba(20, 54, 111, .6), rgba(6, 26, 63, .8));
  border: 1px solid rgba(0, 208, 255, .18);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px -30px rgba(0, 208, 255, .25), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
}
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.dash-dot:nth-child(1) { background: #FF5F57; opacity: .8; }
.dash-dot:nth-child(2) { background: #FEBC2E; opacity: .8; }
.dash-dot:nth-child(3) { background: #28C840; opacity: .8; }
.dash-title { margin-left: 12px; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .08em; }
.dash-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--btc-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.dash-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--btc-cyan);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.dash-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 0;
  min-height: 0;
}
.net { width: 100%; height: 100%; }

.flow-line {
  stroke-dashoffset: 0;
  animation: dash 8s linear infinite;
}
.nodes circle:nth-child(1) { animation: pulse-dot 3s ease-in-out infinite; }

.dash-side {
  padding: 20px 18px;
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(3, 16, 43, .4);
}
.dash-side-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.dash-side-row strong { color: #fff; font-weight: 500; }
.dash-side-row .warn { color: #FFB347; }
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--btc-cyan); }
.dot-2 { background: var(--btc-blue); }
.dot-3 { background: #FFB347; }
.dash-divider { height: 1px; background: rgba(255,255,255,.06); margin: 4px 0; }
.dash-mini-chart { margin-top: auto; }
.mini-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.45); margin-bottom: 8px;
}
.dash-mini-chart svg { width: 100%; height: 60px; }

/* Floating KPI cards */
.kpi-card {
  position: absolute;
  background: rgba(11, 36, 85, .85);
  border: 1px solid rgba(0, 208, 255, .25);
  border-radius: var(--r-md);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .4);
  z-index: 2;
  min-width: 160px;
  animation: float-y 6s ease-in-out infinite;
}
.kpi-1 { top: 0; left: -2%; animation-delay: 0s; }
.kpi-2 { bottom: 8%; right: -2%; animation-delay: -2s; }
.kpi-3 { top: 38%; right: -6%; animation-delay: -4s; }
@media (max-width: 1080px) {
  .kpi-1 { top: 2%; left: 2%; }
  .kpi-2 { bottom: 4%; right: 2%; }
  .kpi-3 { top: 38%; right: 2%; }
}
@media (max-width: 560px) {
  .kpi-3 { display: none; }
  .kpi-card { padding: 10px 12px; min-width: 140px; }
}

.kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 6px;
}
.kpi-val {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi-val span { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.5); }
.kpi-spark { margin-top: 6px; }
.kpi-spark svg { width: 100%; height: 22px; }
.kpi-delta {
  margin-top: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
}
.kpi-delta.up { color: #5DECC4; }
.kpi-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 28px;
  margin-top: 6px;
}
.kpi-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #00D0FF, #0080FF);
  border-radius: 2px;
  opacity: .85;
}
.kpi-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(93, 236, 196, .15);
  color: #5DECC4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.kpi-foot {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.5);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  z-index: 1;
}
.hero-scroll svg { width: 14px; height: 14px; animation: float-y 2.2s ease-in-out infinite; }

/* ─── TRUST / LOGO STRIP ────────────────────────────────────── */

.trust-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 32px;
}
.trust-head p { color: var(--ink-3); font-size: 15px; margin: 0; max-width: 60ch; }
.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}
@media (max-width: 800px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .logo-strip { grid-template-columns: repeat(2, 1fr); } }

.logo-slot {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 18px 22px;
  transition: border-color .25s, box-shadow .25s;
}
.logo-slot:hover { border-color: rgba(0, 128, 255, .25); box-shadow: var(--shadow-sm); }
.logo-slot img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ph-logo {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  position: relative;
}
.ph-logo::before {
  content: "logo";
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--ink-4);
}
.ph-logo.on-dark { color: rgba(255,255,255,.7); }
.ph-logo.on-dark::before { color: rgba(255,255,255,.4); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  position: relative;
}
.trust-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40px;
  height: 1px;
  background: var(--grad-brand);
}
.trust-num {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.trust-card h3 { font-size: 17px; margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.5; }

/* ─── BULLET LIST MINI ──────────────────────────────────────── */
.bullet-list.mini { margin-top: 18px; }
.bullet-list.mini li { font-size: 14px; padding-left: 18px; }
.bullet-list.mini li::before { top: 9px; width: 10px; height: 2px; }

/* ─── SERVICES GRID ─────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background .25s, color .25s;
  cursor: pointer;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { background: var(--navy-950); color: #fff; }
.svc-card:hover h3 { color: #fff; }
.svc-card:hover .svc-num { color: var(--btc-cyan); }
.svc-card:hover p { color: rgba(255,255,255,.75); }
.svc-card:hover .svc-arrow {
  background: var(--btc-cyan);
  color: var(--navy-950);
  transform: translate(4px, -4px);
}
.svc-num {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .14em;
  margin-bottom: 24px;
  transition: color .25s;
}
.svc-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  max-width: 22ch;
  transition: color .25s;
}
.svc-card p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  transition: color .25s;
}
.svc-arrow {
  position: absolute;
  top: 28px; right: 28px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, border-color .25s;
}
.svc-arrow svg { width: 16px; height: 16px; }

/* ─── OPTISMART BLOCK ───────────────────────────────────────── */

.optismart-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
  margin-bottom: 88px;
  padding: clamp(32px, 4vw, 56px);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(0, 208, 255, .15);
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
}
.optismart-block::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,208,255,.2), transparent 65%);
  pointer-events: none;
}
@media (max-width: 900px) { .optismart-block { grid-template-columns: 1fr; } }

.opti-left { display: flex; flex-direction: column; justify-content: center; position: relative; }
.opti-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.opti-mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,208,255,.1); border-radius: var(--r-md); }
.opti-mark svg { width: 24px; height: 24px; }
.opti-name { font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.opti-title { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; color: #fff; margin-bottom: 18px; max-width: 22ch; }
.opti-left .lede { margin-bottom: 28px; max-width: 50ch; }
.opti-left .btn { align-self: flex-start; }

.opti-right { display: flex; flex-direction: column; gap: 14px; position: relative; }
.opti-module {
  display: block;
  padding: 22px 26px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  transition: border-color .25s, background .25s, transform .25s;
  position: relative;
}
.opti-module:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(0, 208, 255, .45);
}
.opti-mod-num { font-size: 11px; color: var(--btc-cyan); letter-spacing: .14em; margin-bottom: 8px; }
.opti-module h4 { font-size: 17px; color: #fff; margin-bottom: 6px; font-weight: 500; }
.opti-module p { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; max-width: 50ch; line-height: 1.5; }

.opti-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ─── PARTNERS BLOCK ────────────────────────────────────────── */

.partners-head { margin-bottom: 32px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .partners-grid { grid-template-columns: 1fr; } }

.partner-card {
  --accent: var(--btc-cyan);
  padding: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  transition: transform .25s, border-color .25s, background .25s;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: .65;
  transition: opacity .25s, height .25s;
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.partner-card:hover::before { opacity: 1; height: 3px; }
.partner-logo {
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 14px;
}
.partner-logo img {
  max-height: 44px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}
.partner-logo img.invert-on-dark {
  filter: brightness(0) invert(1);
  opacity: .9;
}
.partner-card p { font-size: 14px; color: rgba(255,255,255,.7); flex: 1; margin: 0 0 18px; line-height: 1.5; }
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.partner-link svg { width: 14px; height: 14px; transition: transform .25s; }
.partner-card:hover .partner-link svg { transform: translateX(4px); }

/* ─── CASES ─────────────────────────────────────────────────── */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.case-ph {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #557086 0%, #324A60 45%, #1F2F42 100%);
}
.case-ph-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.case-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,16,43,.18) 0%, rgba(3,16,43,.72) 100%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.12), transparent 24%);
  pointer-events: none;
  z-index: 1;
}
.case-ph-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.case-sector-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.case-ph-note {
  max-width: 28ch;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(3, 16, 43, .44);
  border: 1px dashed rgba(255,255,255,.16);
  color: rgba(255,255,255,.82);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
}
.case-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 22px 0;
}
.case-num {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-card h3 { padding: 14px 22px 8px; font-size: 19px; line-height: 1.25; }
.case-card p { padding: 0 22px; color: var(--ink-3); font-size: 14px; margin: 0 0 18px; line-height: 1.55; }
.case-result {
  margin: 0 22px 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,128,255,.08), rgba(0,208,255,.08));
  border: 1px solid rgba(0,128,255,.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.case-tags { padding: 0 22px 22px; display: flex; flex-wrap: wrap; gap: 6px; }

.industries-strip {
  margin-top: 56px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.industries-label {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .14em;
  margin-right: 8px;
}

/* ─── METHOD ────────────────────────────────────────────────── */

.method {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .method-line { display: none; }
}

.method-step {
  position: relative;
  padding: 0 16px 0 0;
}
.method-num {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--btc-blue);
  font-weight: 500;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.method-line {
  position: absolute;
  top: 20px;
  left: 40px;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.method-step h4 { font-size: 17px; margin-bottom: 6px; }
.method-step p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.5; max-width: 24ch; }

/* ─── CTA FINAL ─────────────────────────────────────────────── */

.cta-final { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg svg { width: 100%; height: 100%; }
.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 208, 255, .25), transparent 65%);
  filter: blur(60px);
}
.cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 800px) { .cta-final-grid { grid-template-columns: 1fr; } }
