/* ===== Design tokens ===== */
:root {
  --grad: linear-gradient(90deg, #e5402b 0%, #ef7d1a 20%, #c9b21f 40%, #7faf2e 58%, #3f9e5f 72%, #2f8f8c 86%, #2f6fa8 100%);
  --grad-soft: linear-gradient(90deg, #e5402b1f 0%, #ef7d1a1f 20%, #7faf2e1f 60%, #2f6fa81f 100%);
  --ink: #15171f;
  --ink-soft: #555a68;
  --line: #e7e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --brand: #2f6fa8;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(40, 30, 90, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .6em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 111, 168, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 111, 168, 0.32); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad);
  display: inline-block;
}
.brand-name { font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-dot { color: var(--brand); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0; padding: 0;
}
.nav-links a { font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
}
.nav-cta:hover { opacity: .9; }
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .25rem .55rem;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.lang-switch:hover { color: var(--ink); border-color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 140px) 0; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 80% 10%, #e0408f22, transparent 60%),
    radial-gradient(55% 65% at 10% 30%, #2b6cff22, transparent 60%),
    radial-gradient(50% 60% at 50% 100%, #7b3ff222, transparent 60%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .3em; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-sub { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.stat-num { font-size: 3rem; font-weight: 800; display: block; line-height: 1; }
.stat-label { color: var(--ink-soft); font-weight: 500; }

/* ===== Card grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.services-grid { grid-template-columns: repeat(3, 1fr); }

.company-card, .service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section-alt .company-card { background: var(--bg); }
.company-card:hover, .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.company-card h3, .service-card h3 { font-size: 1.15rem; }
.company-card p, .service-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

.company-card { display: block; color: inherit; }
.company-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
  margin-bottom: 1.1rem;
}
.company-logo img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .2s ease;
}
.company-card:hover .company-logo img { transform: scale(1.04); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  margin-bottom: 1rem;
}
/* Each service icon uses the brand colour of its corresponding company. */
.icon-pt     { background: #e01000; } /* PANTHEON.tech - Custom Development */
.icon-tcount { background: #7aac3f; } /* T-Count - Collectibles Advisory */
.icon-pg     { background: #4a90c2; } /* Pantheon Group - Corporate Holding */
.icon-pto    { background: #00386f; } /* PTO - Business Strategy */
.icon-thiss  { background: #8fb000; } /* thiss - HR Expertise */
.icon-ph     { background: #4a5568; } /* Pantheon Holdings - Venture Capital */

/* ===== Career ===== */
.career-text { max-width: 640px; }
.career-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.career-text .btn { margin-top: 1.5rem; }

/* ===== Legal pages ===== */
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { color: var(--ink-soft); }
.legal ul { color: var(--ink-soft); margin: 0 0 1em; padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  color: var(--ink-soft);
  min-width: 640px;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: .7rem .8rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.legal td code { font-size: .85em; word-break: break-word; }
.legal .section-sub { margin-bottom: 1.5rem; }
.legal a:not(.btn) { color: var(--brand); text-decoration: underline; }
.legal .btn { margin-top: 1rem; }

/* ===== Footer ===== */
.site-footer {
  background: #0f1117;
  color: #c7cad6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #232634;
}
.footer-grid-3 { grid-template-columns: 1.6fr 1fr 1fr; }
.brand-footer .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col p { margin: 0 0 .5rem; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-note { color: #7c8194; font-size: .85rem; }
.footer-bottom { padding-top: 1.5rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #7c8194; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: .5rem 0; }
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .card-grid, .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
