/* ============================================================
   Tyche Global Trade — Global Stylesheet
   ============================================================ */

:root {
  --navy-900: #081527;
  --navy-800: #0b1f3a;
  --navy-700: #10294c;
  --navy-600: #16345e;
  --navy-100: #dce4ef;
  --gold-500: #c9a24b;
  --gold-400: #d8b566;
  --gold-100: #f3e9d2;
  --ivory: #f8f6f1;
  --white: #ffffff;
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --line: #e4e0d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 21, 39, 0.10);
  --shadow-lg: 0 24px 60px rgba(8, 21, 39, 0.16);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 21, 39, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container { width: min(1360px, 95%); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}
.brand-logo {
  width: auto;
  height: 54px;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-500);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-400);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 3px;
}
.brand-pron {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-style: italic;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-400); }
.main-nav .btn { padding: 0.55rem 1.4rem; font-size: 0.85rem; }
.main-nav a.btn-gold,
.main-nav a.btn-gold:hover,
.main-nav a.btn-gold.active {
  color: var(--navy-900);
}
.main-nav a.btn-gold:hover { filter: brightness(1.06); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: 0.3s;
}

@media (max-width: 1360px) {
  .main-nav { gap: 1.05rem; }
  .main-nav a { font-size: 0.85rem; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy-900);
    padding: 1.4rem 6%;
    gap: 1.1rem;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(201, 162, 75, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 78%, rgba(255,255,255,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 62%, rgba(255,255,255,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 40%, rgba(255,255,255,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,0.05) 0 2px, transparent 3px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 0 6.5rem;
  max-width: 760px;
}
.hero h1 { color: var(--white); margin: 0.5rem 0 1.4rem; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero p { font-size: 1.16rem; color: rgba(255, 255, 255, 0.82); max-width: 42em; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero.compact .hero-inner { padding: 5rem 0 4.5rem; }

/* Hero media: background video (drop assets/hero-video.mp4 in place) + animated skyline fallback */
.hero-media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: url("../assets/skyline.svg") repeat-x bottom / 1200px 240px;
  animation: skyline-pan 75s linear infinite;
  opacity: 0.5;
}
.skyline.far {
  height: 190px;
  background-size: 1200px 190px;
  animation-duration: 150s;
  opacity: 0.22;
  filter: blur(1px);
}
@keyframes skyline-pan {
  from { background-position-x: 0; }
  to { background-position-x: -1200px; }
}
@media (prefers-reduced-motion: reduce) {
  .skyline { animation: none; }
}

/* Rotating word in hero headline */
.rotate-word {
  display: inline-block;
  color: var(--gold-400);
  font-style: italic;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotate-word.swap { opacity: 0; transform: translateY(12px); }

/* Pronunciation badge */
.pron-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-size: 0.95rem;
}
.pron-badge strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-500); }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1.6rem 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-400);
}
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ---------- Sections ---------- */

section { padding: 5.5rem 0; }
section.tight { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section-navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, 0.85);
}
.section-navy h2, .section-navy h3 { color: var(--white); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-500);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 26px; height: 26px; }

.section-navy .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-navy .card p { color: rgba(255, 255, 255, 0.7); }
.section-navy .card:hover { box-shadow: 0 18px 40px rgba(0,0,0,0.35); }

/* ---------- Pill / chip lists ---------- */

.pill-list { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; }
.pill-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.92rem;
  color: var(--navy-700);
  font-weight: 500;
}
.section-navy .pill-list li {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
}
.pill-list.gold li { border-color: var(--gold-500); color: var(--navy-800); }

/* ---------- Check lists ---------- */

.check-list { list-style: none; display: grid; gap: 0.8rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-100);
  border: 1.5px solid var(--gold-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.42em + 4px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--navy-800);
  border-bottom: 2px solid var(--navy-800);
  transform: rotate(-45deg);
}
.check-list.cols-2 { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
.check-list.cols-3 { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
@media (max-width: 860px) { .check-list.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .check-list.cols-2, .check-list.cols-3 { grid-template-columns: 1fr; } }

.section-navy .check-list li { color: rgba(255,255,255,0.78); }
.section-navy .check-list li::before { background: rgba(201,162,75,0.15); }
.section-navy .check-list li::after { border-color: var(--gold-400); }

/* ---------- Process steps ---------- */

.steps { display: grid; gap: 1.4rem; counter-reset: step; }
.steps.cols { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

.section-navy .step { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section-navy .step p { color: rgba(255,255,255,0.7); }

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.4rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy-800);
}
.stat span { font-weight: 600; font-size: 0.92rem; display: block; margin-top: 0.2rem; }
.stat small { color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.panel-navy {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-600));
  color: rgba(255,255,255,0.85);
  border: none;
}
.panel-navy h3 { color: var(--white); }

/* ---------- Quote / banner ---------- */

.banner {
  background:
    radial-gradient(ellipse 70% 100% at 20% 0%, rgba(201,162,75,0.18), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: 20px;
  color: var(--white);
  padding: 3.6rem 3.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.banner h2 { color: var(--white); max-width: 18em; }
.banner p { color: rgba(255,255,255,0.75); max-width: 38em; margin-top: 0.6rem; }
@media (max-width: 640px) { .banner { padding: 2.4rem 1.8rem; } }

/* ---------- Coast-to-coast strip ---------- */

.coast-strip {
  border-left: 4px solid var(--gold-500);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 2.2rem;
  box-shadow: var(--shadow);
}
.coast-strip strong { color: var(--navy-800); }

/* ---------- Notice / disclaimer ---------- */

.notice {
  background: var(--gold-100);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.fineprint { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.compare th, table.compare td {
  padding: 1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
table.compare th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
}
table.compare td:first-child { color: var(--ink-soft); }
table.compare td:last-child { font-weight: 600; color: var(--navy-800); }

/* ---------- Insights ---------- */

.article-card { display: flex; flex-direction: column; }
.article-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
}
.article-card h3 { font-size: 1.2rem; }
.article-card time { font-size: 0.8rem; color: var(--ink-soft); margin-top: auto; padding-top: 1.2rem; display: block; }

/* ---------- Contact ---------- */

.contact-info { display: grid; gap: 1.6rem; }
.contact-info .item strong { display: block; color: var(--navy-800); margin-bottom: 0.2rem; }
.contact-info .item span, .contact-info .item a { color: var(--ink-soft); }
.contact-info .item a:hover { color: var(--gold-500); }

form.contact-form { display: grid; gap: 1.1rem; }
form.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--ivory);
  margin-top: 0.35rem;
}
form.contact-form input:focus, form.contact-form select:focus, form.contact-form textarea:focus {
  outline: 2px solid var(--gold-400);
  border-color: transparent;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a { color: rgba(255, 255, 255, 0.65); transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold-400); }

.footer-brand p { margin-top: 1rem; max-width: 30em; font-size: 0.88rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); margin-left: 1.2rem; }
.footer-bottom a:hover { color: var(--gold-400); }

.footer-disclaimer {
  margin-top: 1.6rem;
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages ---------- */

.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); margin-bottom: 0.9rem; }
.legal-content ul { padding-left: 1.4rem; }
