/* ==========================================================================
   TLD3 / Total Digital Entertainment Inc. — totaldigitalai.com
   Design system matches New_TLD3_CorporatePresentation_2026-11-19.pdf
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #050b1b;
  --bg-2: #071428;
  --card: #0e2040;
  --card-2: #11264c;
  --line: #1b3260;
  --line-2: #2b4378;

  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --magenta: #d946ef;

  --white: #ffffff;
  --body: #cfd8e6;
  --muted: #8fa0bd;

  --font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;

  --wrap: 1200px;
  --radius: 8px;
  --header-h: 84px;
  --section-pad: 96px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--white); font-weight: bold; line-height: 1.15; margin: 0; letter-spacing: .2px; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--cyan); color: #04121f; padding: 10px 16px; border-radius: 6px; font-weight: bold;
}
.skip-link:focus { left: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: var(--section-pad) 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-narrow { grid-template-columns: 1fr 420px; }
.grid > *, .split > *, .hero .wrap > *, .about-grid > *, .video-grid > *, .stats-layout > *, .cta-grid > *, .contact-grid > *, .exec-grid > * { min-width: 0; }

/* Section backgrounds (from the deck) */
.bg-image { background: var(--bg) url(../img/bg-section.jpg) center / cover no-repeat; }
.bg-dark { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.bg-glow {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(139, 92, 246, .22), transparent 60%),
    var(--bg);
}
.bg-cta { background: linear-gradient(90deg, #13255a 0%, #3a1a6e 60%, #5b1d78 100%); }

/* ---------- 4. Type ---------- */
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.title { font-size: 44px; }
.subtitle { color: var(--cyan); font-size: 19px; margin-top: 14px; }
.eyebrow { font-size: 13px; letter-spacing: 4px; font-weight: bold; text-transform: uppercase; }
.lead { font-size: 21px; color: var(--white); line-height: 1.45; }
.small { font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.c-cyan { color: var(--cyan); }
.c-purple { color: var(--purple); }
.c-magenta { color: var(--magenta); }
.c-white { color: var(--white); }

/* ---------- 5. Components ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 28px; }
.card-outline { border: 1px solid #213a6b; }

/* Ringed icon */
.ring {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%; border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.ring img { width: 34px; height: 34px; object-fit: contain; }
.ring.purple { border-color: var(--purple); }
.ring.magenta { border-color: var(--magenta); }
.ring.sm { width: 48px; height: 48px; }
.ring.sm img { width: 24px; height: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 6px; border: 2px solid transparent;
  font: bold 15px/1 var(--font); letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #04121f; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(34, 211, 238, .35); }
.btn-outline { border-color: var(--purple); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(139, 92, 246, .15); }
.btn-gradient { background: linear-gradient(90deg, var(--purple), var(--magenta)); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .tri { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Icon list rows */
.icon-list li { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; font-size: 19px; color: var(--white); }
.icon-row { display: flex; gap: 26px; align-items: flex-start; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(5, 11, 27, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 211, 238, .15);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--white); line-height: 1; }
.logo-mark span, .hero-mark span { color: var(--cyan); }
.logo-name { font-size: 11px; letter-spacing: 2.5px; color: var(--body); line-height: 1.4; border-left: 1px solid #2a3c66; padding-left: 14px; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a { font-size: 15px; color: #dbe3f0; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.main-nav a:hover { color: var(--cyan); }
.main-nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }

.header-right { display: flex; align-items: center; gap: 18px; }
.ticker { font-size: 12px; color: var(--muted); letter-spacing: 1px; white-space: nowrap; }
.ticker b { color: var(--cyan); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 7. Hero (home) ---------- */
.hero { background: var(--bg) url(../img/bg-hero.jpg) center / cover no-repeat; min-height: 720px; display: flex; align-items: center; padding: 60px 0; }
.hero > .wrap { min-width: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-mark { font-size: 150px; font-weight: 900; line-height: .9; letter-spacing: -4px; color: var(--white); margin: 0; }
.hero-company { font-size: 30px; font-weight: bold; color: var(--white); margin-top: 28px; }
.hero-tag { font-size: 26px; letter-spacing: 12px; color: var(--cyan); margin-top: 26px; }
.hero-verticals { font-size: 14px; letter-spacing: 3px; color: #dbe3f0; margin-top: 20px; }
.hero-verticals span { margin: 0 2px; color: var(--muted); }
.hero-text { font-size: 20px; color: var(--white); margin-top: 34px; max-width: 520px; }
.hero .btn-row { margin-top: 34px; }
.hero-visual { position: relative; height: 520px; }
.hero-visual .phone { position: absolute; right: -10px; top: -10px; width: 330px; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.hero-visual .device { position: absolute; left: -30px; bottom: 10px; width: 560px; border-radius: 10px; border: 1px solid #213a6b; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }

/* ---------- 8. Page banner (inner pages) ---------- */
.page-banner { background: var(--bg) url(../img/bg-section.jpg) center / cover no-repeat; padding: 84px 0 70px; }
.page-banner h1 { font-size: 60px; }
.page-banner .subtitle { font-size: 22px; }
.crumbs { font-size: 13px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.crumbs a:hover { color: var(--cyan); }

/* ---------- 9. About / Mission ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.about-grid .icon-row + .icon-row { margin-top: 40px; }
.about-grid .indent { margin-top: 40px; padding-left: 90px; }
.mission { padding: 40px 36px; }
.mission .eyebrow { margin-top: 30px; }
.mission-text { font-size: 26px; font-weight: bold; line-height: 1.3; color: var(--white); margin-top: 14px; }

/* ---------- 10. Video ---------- */
.video-grid { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: center; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: 10px; overflow: hidden; border: 1px solid #213a6b;
  box-shadow: 0 30px 80px rgba(139, 92, 246, .25);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- 11. Ecosystem cards ---------- */
.eco-card { display: flex; flex-direction: column; min-height: 360px; }
.eco-card h3 { font-size: 20px; margin-top: 22px; min-height: 48px; }
.eco-card .kind { font-weight: bold; font-size: 15px; color: var(--white); margin-top: 10px; }
.eco-card .kind { margin-bottom: 0; }
.eco-card .desc { font-size: 14.5px; margin: 14px 0 0; flex: 1; }
.eco-card .mini { display: flex; gap: 22px; margin-top: 22px; }
.eco-card .mini img { width: 30px; height: 30px; object-fit: contain; }

/* ---------- 12. Stats ---------- */
.stats-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.stat { padding: 24px 22px; }
.stat-value { font-size: 44px; font-weight: bold; line-height: 1.1; margin: 0; }
.stat-label { font-size: 14.5px; margin-top: 10px; color: var(--white); margin-bottom: 0; }
.stats-photo { border-radius: var(--radius); background: url(../img/market-listener.jpg) center / cover no-repeat; min-height: 100%; }

/* ---------- 13. Developments ---------- */
.dev-card { padding: 34px; min-height: 290px; }
.dev-card h3 { font-size: 19px; margin-top: 40px; text-transform: uppercase; }
.dev-card p { margin-top: 20px; color: var(--white); font-size: 16px; }

/* ---------- 14. Feature boxes / grids ---------- */
.feature-box { display: flex; gap: 16px; align-items: center; padding: 24px; }
.feature-box span { font-size: 15.5px; line-height: 1.4; color: var(--white); }
.sev-card { display: flex; gap: 26px; padding: 34px; min-height: 180px; }
.sev-card h3 { font-size: 21px; }
.sev-card p { margin: 12px 0 0; }
.rounded-img { border-radius: var(--radius); width: 100%; }
.quote { font-style: italic; color: var(--white); font-size: 19px; margin-top: 40px; }

/* ---------- 15. Investors ---------- */
.fin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fin-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; text-align: center; }
.fin-table th { background: var(--purple); color: var(--white); padding: 14px 18px; font-weight: bold; }
.fin-table th:first-child, .fin-table td:first-child { text-align: left; }
.fin-table td { padding: 15px 18px; border: 1px solid var(--line); background: var(--card); color: var(--white); }
.fin-table td:first-child { font-weight: bold; }
.fin-table .neg { color: var(--magenta); }
.fin-table .pos { color: var(--cyan); }
.chart-card { margin-top: 28px; padding: 30px 34px; }
.chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: var(--white); }
.legend { font-size: 14px; display: flex; gap: 18px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart svg text { font-family: var(--font); }

.share-big { padding: 34px; }
.share-big .value { font-size: 60px; font-weight: bold; color: var(--white); margin: 14px 0 0; line-height: 1.1; }
.share-big .eyebrow, .share .eyebrow { margin: 0; }
.share { padding: 30px; }
.share .value { font-size: 40px; font-weight: bold; color: var(--white); margin: 18px 0 0; line-height: 1.1; }
.transfer { margin-top: 30px; font-size: 19px; color: var(--white); }

/* ---------- 16. Leadership ---------- */
.exec-grid { display: grid; grid-template-columns: 330px 1fr; gap: 50px; }
.exec-card { text-align: center; padding: 24px; }
.exec-card img { width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; border: 6px solid #fff; }
.exec-card .name { font-weight: bold; font-size: 17px; color: var(--white); margin-top: 22px; }
.exec-card .role { color: var(--cyan); font-size: 13px; font-weight: bold; margin-top: 12px; letter-spacing: .5px; }
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.focus li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--white); }
.focus li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--magenta); flex: none; }
.board-card { display: flex; gap: 34px; padding: 26px 30px; }
.board-card img { width: 150px; height: 150px !important; object-fit: cover; flex: none; border-radius: 4px; }
.board-card .name { font-size: 21px; font-weight: bold; color: var(--white); }
.board-card .eyebrow { font-size: 12px; margin-top: 8px; }
.board-card p { margin: 14px 0 0; font-size: 15.5px; }

/* ---------- 17. Forms ---------- */
.form-card { padding: 38px; }
.form-card.on-gradient { background: rgba(5, 11, 27, .65); padding: 30px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  background: #0a1834; color: var(--white);
  border: 1px solid var(--line-2); border-radius: 6px;
  font: 16px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8fa0bd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8fa0bd 50%), linear-gradient(135deg, #8fa0bd 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: 6px; font-size: 15px; }
.form-status.show { display: block; }
.form-status.error { background: rgba(217, 70, 239, .15); border: 1px solid var(--magenta); color: #f5d0fe; }
.form-status.ok { background: rgba(34, 211, 238, .12); border: 1px solid var(--cyan); color: #cffafe; }

.contact-grid { display: grid; grid-template-columns: 1fr 560px; gap: 70px; }
.contact-item { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; }
.contact-item .eyebrow { font-size: 11px; }
.contact-item .value { font-size: 18px; color: var(--white); margin-top: 6px; line-height: 1.4; }
.contact-item a.value:hover { color: var(--cyan); }

.cta-grid { display: grid; grid-template-columns: 1fr 470px; gap: 60px; align-items: center; }

/* ---------- 18. Footer ---------- */
.site-footer { background: #030814; border-top: 1px solid rgba(34, 211, 238, .18); padding: 64px 0 28px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h2 { font-size: 12px; letter-spacing: 3px; color: var(--cyan); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; font-size: 15px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .about { font-size: 15px; margin-top: 18px; }
.fls { color: #6f7f9c; font-size: 12px; line-height: 1.5; margin: 40px 0 0; }
.legal { margin-top: 22px; padding-top: 22px; border-top: 1px solid #142445; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; letter-spacing: .5px; }

/* ---------- 19. Misc pages ---------- */
.center-page { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.center-page .btn-row { justify-content: center; margin-top: 30px; }
.disclaimer p { font-size: 14px; margin: 14px 0 0; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 22px; }
  .ticker { display: none; }
  .hero-mark { font-size: 120px; }
  .hero-visual .device { width: 480px; }
  .hero-visual .phone { width: 280px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .eco-card { min-height: 0; }
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; --section-pad: 64px; }
  .site-header { background: #050b1b; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .header-right .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #050b1b; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.5);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-open .main-nav { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .main-nav .mobile-cta { display: block; margin-top: 16px; border: 0; }
  .logo-mark { font-size: 28px; }
  .logo-name { font-size: 9.5px; }

  .title { font-size: 32px; }
  .subtitle { font-size: 17px; }
  .lead, .icon-list li { font-size: 17px; }

  .hero { min-height: 0; padding: 50px 0 60px; }
  .hero .wrap, .about-grid, .split, .split-narrow, .stats-layout, .cta-grid, .exec-grid, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { font-size: 96px; }
  .hero-company { font-size: 20px; }
  .hero-tag { font-size: 17px; letter-spacing: 7px; }
  .hero-verticals { font-size: 11.5px; letter-spacing: 2px; line-height: 1.8; }
  .hero-text { font-size: 17px; }
  .hero-visual { height: auto; }
  .hero-visual .phone { display: none; }
  .hero-visual .device { position: static; width: 100%; }

  .about-grid .indent { padding-left: 0; }
  .mission-text { font-size: 22px; }
  .stats-photo { min-height: 260px; }
  .page-banner { padding: 56px 0 48px; }
  .page-banner h1 { font-size: 40px; }
  .page-banner .subtitle { font-size: 17px; }
  .dev-card h3 { margin-top: 26px; }
  .share-big .value { font-size: 40px; }
  .share .value { font-size: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-cols > :first-child, .footer-cols > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-layout .grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 32px; }
  .hero-mark { font-size: 84px; }
  .hero .btn-row .btn { width: 100%; }
  .icon-row { gap: 18px; }
  .ring { width: 54px; height: 54px; }
  .ring img { width: 28px; height: 28px; }
  .sev-card, .board-card { flex-direction: column; gap: 18px; }
  .board-card img { width: 120px; height: 120px !important; }
  .focus { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .chart-card { padding: 22px 16px; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
