/* TechSpot Trading LLC — hero/globe + page-specific layout */

/* ---------- Hero / Globe ---------- */
/* The globe is a full-bleed canvas behind the hero. --globe-cy / --globe-r
   are the CSS defaults; globe.js overwrites them with the exact pixel values
   it renders with, so the headline stays locked beneath the sphere. */
.hero {
  --globe-cy: max(38svh, min(33vmin, 256px) + 120px);
  --globe-r: min(33vmin, 256px);
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.hero.is-globe-ready .hero-globe-canvas {
  opacity: 1;
}

/* Static fallback when WebGL is unavailable: the dot-earth image where the
   sphere would have been. */
.hero-globe-fallback {
  position: absolute;
  left: 50%;
  top: var(--globe-cy);
  width: calc(var(--globe-r) * 2);
  height: calc(var(--globe-r) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 38% 32%, oklch(20% 0 0), var(--bg) 72%);
  box-shadow: inset 0 0 80px 20px oklch(0% 0 0 / 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: none;
}

.hero-globe-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-globe-fallback .fallback-hub {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4007c;
  box-shadow: 0 0 0 6px rgba(228, 0, 124, 0.18), 0 0 20px 4px rgba(228, 0, 124, 0.35);
  top: 44%;
  left: 61%;
}

.js-globe-error .hero-globe-fallback {
  display: block;
}

.js-globe-error .hero-globe-canvas {
  display: none;
}

.hero-copy {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: calc(var(--globe-cy) + var(--globe-r) + 48px) auto 0;
  padding: 0 24px 56px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-copy .lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* ---------- Page hero (non-globe pages) ---------- */
.page-hero {
  padding: calc(76px + 56px) 0 56px; /* clears the floating header capsule */
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 900px 400px at 15% -10%, oklch(100% 0 0 / 0.06), transparent 60%),
    var(--bg-elevated);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 780px;
}

.page-hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ---------- Why cards / value grid ---------- */
.value-grid { margin-top: 8px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, oklch(100% 0 0 / 0.1), transparent 55%);
  pointer-events: none;
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 460px;
  position: relative;
}

.cta-strip .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 720px) {
  .cta-strip { padding: 36px 28px; }
}

/* ---------- iKKO banner ---------- */
.ikko-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.ikko-banner__copy {
  padding: 48px;
}

.ikko-banner__media {
  height: 100%;
  min-height: 280px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.ikko-banner__media img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}

/* Full-bleed lifestyle photo variant: fills the cell edge to edge. */
.ikko-banner__media--photo {
  position: relative;
  padding: 0;
  align-self: stretch;
  min-height: 420px;
}

/* Absolutely positioned so the square photo crops to the row instead of
   stretching the banner to its own height. */
.ikko-banner__media--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 60%;
}

@media (max-width: 860px) {
  .ikko-banner { grid-template-columns: 1fr; }
  .ikko-banner__copy { padding: 36px 28px; }
  .ikko-banner__media { min-height: 220px; }
  .ikko-banner__media--photo { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- iKKO page ---------- */
.ikko-logo-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px;
}

.ikko-logo-line img {
  height: 30px;
  width: auto;
}

.ikko-logo-line span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
}

.ikko-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}

.ikko-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ikko-media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.ikko-media-card img {
  width: 100%;
  height: auto;
}

.ikko-media-card--light {
  background: #f2f2f2;
}

.ikko-unit {
  font-size: 0.5em;
  margin-left: 2px;
  color: var(--muted);
}

.ikko-specs {
  max-width: 900px;
}

.spec-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 20px;
  margin: 4px 0 0;
}

.spec-list dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 2px;
}

.spec-list dd {
  margin: 0;
  color: var(--fg);
}

@media (max-width: 600px) {
  .spec-list { grid-template-columns: 1fr; gap: 2px 0; }
  .spec-list dd { margin-bottom: 10px; }
}

/* ---------- About page ---------- */
.values-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.value-pill {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-pill .card-icon {
  margin: 0 auto 16px;
}

.value-pill h3 {
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .values-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .values-row { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

.stat-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.audience-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
}

.audience-list svg {
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

@media (max-width: 620px) {
  .audience-list { grid-template-columns: 1fr; }
}

/* ---------- Brands page ---------- */
.brand-group {
  margin-bottom: 56px;
}

.brand-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.brand-group__head h2 {
  font-size: 1.35rem;
}

.brand-group__head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Timeline / process (services & logistics) ---------- */
.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-item__num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}

.process-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.process-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 620px) {
  .process-item { grid-template-columns: 40px 1fr; padding: 18px; }
}

/* ---------- Shipping method cards ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
}

.method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.method-card .badge { margin-bottom: 16px; }

.method-card ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.method-card li {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.method-card li::before {
  content: '—';
  color: var(--accent);
  flex: none;
}

/* ---------- Two-path partner page ---------- */
.partner-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.partner-panel {
  display: none;
}

.partner-panel.is-active {
  display: block;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-info-item .card-icon {
  margin-bottom: 0;
  flex: none;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

/* ---------- Legal ---------- */
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 20px;
}

.legal-content li {
  padding-left: 18px;
  position: relative;
}

.legal-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal-toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 4px;
  align-self: start;
}

.legal-toc a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-toc a:hover {
  color: var(--fg);
  background: var(--surface);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
}

/* ---------- FAQ intro layout ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
}
