@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

    :root {
      --bg: #f6f8fc;
      --text: #122034;
      --muted: #58657a;
      --card: #ffffff;
      --line: #dbe3ef;
      --primary: #1e5fa8;
      --primary-2: #0f4d93;
      --secondary: #d62e2e;
      --secondary-2: #b82626;
      --shadow-sm: 0 2px 6px rgba(17, 35, 61, 0.08);
      --shadow-md: 0 8px 24px rgba(17, 35, 61, 0.12);
      --hero-overlay: rgba(8, 20, 38, 0.72);
      --radius: 14px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: radial-gradient(circle at 10% -20%, #dbe8ff 0%, #f6f8fc 45%), var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      line-height: 1.55;
      overflow-x: hidden;
    }

    .lp-top {
      all: initial;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      width: 100%;
      padding: 9px 18px;
      background: #0b0b12;
      position: relative;
      z-index: 999999;
      border-bottom: 2px solid #caa14b;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    }

    .lp-brand {
      all: initial;
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #f5f2e8;
      text-decoration: none;
      font: 800 13px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
      letter-spacing: 0.6px;
      cursor: pointer;
    }

    .lp-dot {
      all: initial;
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #caa14b;
      box-shadow: 0 0 8px #caa14b;
    }

    .lp-wrap {
      all: initial;
      display: flex;
      align-items: center;
      gap: 12px;
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    }

    .lp-meta {
      all: initial;
      color: #8b8b96;
      font: 500 11px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    }

    .lp-link {
      all: initial;
      box-sizing: border-box;
      color: #caa14b;
      text-decoration: none;
      font: 700 11px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
      border: 1px solid rgba(202, 161, 75, 0.55);
      padding: 5px 11px;
      border-radius: 20px;
      white-space: nowrap;
      cursor: pointer;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 99;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(8px);
      background: rgba(246, 248, 252, 0.84);
    }

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

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 68px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--text);
      font-weight: 800;
      font-family: 'Plus Jakarta Sans', sans-serif;
      letter-spacing: -0.01em;
    }

    .logo-badge {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      box-shadow: var(--shadow-sm);
    }

    .nav {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .nav a {
      text-decoration: none;
      color: var(--muted);
      font-weight: 600;
      font-size: 14px;
      padding: 8px 10px;
      border-radius: 10px;
      transition: 0.2s ease;
    }

    .nav a:hover {
      color: var(--primary);
      background: #eaf1fb;
    }

    .hero {
      position: relative;
      min-height: 88vh;
      color: #fff;
      display: grid;
      place-items: center;
      text-align: center;
      overflow: hidden;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      background-image:
        linear-gradient(var(--hero-overlay), rgba(8, 20, 38, 0.84)),
        url('canada-hf-ta-production-map.png');
      background-size: cover;
      background-position: center;
    }

    .hero-content {
      width: min(980px, 92vw);
      padding: 56px 0;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 20px;
      backdrop-filter: blur(5px);
      background: rgba(255, 255, 255, 0.09);
    }

    h1, h2, h3 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }

    .hero h1 {
      font-size: clamp(2.1rem, 6.4vw, 4.2rem);
      margin-bottom: 16px;
    }

    .hero h1 .hl {
      background: linear-gradient(90deg, #75b2ff, #ff8f8f);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
    }

    .lead {
      color: rgba(244, 248, 255, 0.9);
      max-width: 860px;
      margin: 0 auto 28px;
      font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 28px 0;
    }

    .stat {
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: var(--radius);
      padding: 14px 12px;
      backdrop-filter: blur(7px);
      background: rgba(255, 255, 255, 0.1);
    }

    .stat .value {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .stat .label {
      color: rgba(240, 245, 255, 0.84);
      font-size: 0.82rem;
    }

    .hero-cta {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 0;
      border-radius: 12px;
      text-decoration: none;
      padding: 12px 18px;
      font-weight: 700;
      font-size: 0.95rem;
      transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }

    .btn.primary {
      color: #fff;
      background: linear-gradient(135deg, var(--secondary), var(--secondary-2));
    }

    .btn.ghost {
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.1);
    }

    section {
      padding: 72px 0;
    }

    .section-head {
      text-align: center;
      margin-bottom: 34px;
    }

    .section-head .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 700;
      border-radius: 999px;
      padding: 7px 12px;
      color: var(--primary);
      background: #eaf1fb;
      margin-bottom: 13px;
      letter-spacing: 0.02em;
    }

    .section-head h2 {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      margin-bottom: 10px;
    }

    .section-head h2 .red {
      color: var(--secondary);
    }

    .section-head p {
      color: var(--muted);
      max-width: 830px;
      margin: 0 auto;
    }

    .map-card {
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
      min-height: 280px;
      background:
        linear-gradient(rgba(10, 26, 46, 0.25), rgba(10, 26, 46, 0.35)),
        url('canada-hf-ta-production-processing-plant.png') center / cover;
      box-shadow: var(--shadow-md);
      margin-bottom: 20px;
    }

    .map-chip {
      position: absolute;
      left: 14px;
      bottom: 14px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 11px;
      font-size: 13px;
      font-weight: 600;
      color: #173053;
    }

    .grid {
      display: grid;
      gap: 14px;
    }

    .mines-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: 16px;
    }

    .mine-header {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }

    .mine-name {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 700;
      font-size: 1rem;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      font-size: 11px;
      font-weight: 700;
      border-radius: 999px;
      padding: 5px 9px;
      white-space: nowrap;
    }

    .pill.blue { background: #e8f2ff; color: #144a8f; }
    .pill.green { background: #eaf9ef; color: #1f7a43; }

    .mine-meta {
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 7px;
    }

    .mine-desc {
      font-size: 13px;
      color: #31445f;
    }

    .chips {
      margin-top: 10px;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .chips span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid var(--line);
    }

    .metrics-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 16px;
    }

    .metric-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 14px;
      box-shadow: var(--shadow-sm);
    }

    .metric-label {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 6px;
    }

    .metric-value {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      color: var(--primary-2);
      font-size: 1.1rem;
    }

    .panel {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .panel h3 {
      font-size: 1.04rem;
      margin-bottom: 3px;
    }

    .panel-head {
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      background: #f6f9ff;
    }

    .panel-head p {
      color: var(--muted);
      font-size: 12px;
    }

    .chart-wrap {
      padding: 12px 16px 16px;
    }

    .bar-row {
      display: grid;
      grid-template-columns: 58px 1fr auto;
      gap: 8px;
      align-items: center;
      margin-bottom: 8px;
      font-size: 12px;
      color: var(--muted);
    }

    .bar-track {
      position: relative;
      height: 11px;
      border-radius: 999px;
      background: #e9eef8;
      overflow: hidden;
    }

    .bar-fill {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      border-radius: inherit;
    }

    .bar-fill.hf { background: linear-gradient(90deg, #3579cc, #1e5fa8); }
    .bar-fill.ta { background: linear-gradient(90deg, #f16868, #d62e2e); }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    th, td {
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      padding: 10px 11px;
    }

    thead th {
      background: #f2f7ff;
      font-size: 12px;
      font-weight: 700;
      color: #29486f;
    }

    .prop-layout {
      display: grid;
      grid-template-columns: 270px 1fr;
      gap: 14px;
      align-items: start;
    }

    .material-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .material-card img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      display: block;
    }

    .material-card p {
      padding: 11px;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    .toggle {
      display: inline-flex;
      background: #e9eef8;
      padding: 4px;
      border-radius: 12px;
      margin-bottom: 10px;
      border: 1px solid #d5dfef;
    }

    .toggle button {
      border: 0;
      padding: 8px 13px;
      border-radius: 9px;
      font-weight: 700;
      font-size: 13px;
      color: #39516f;
      cursor: pointer;
      background: transparent;
    }

    .toggle button.active.hf {
      color: #fff;
      background: var(--primary);
    }

    .toggle button.active.ta {
      color: #fff;
      background: var(--secondary);
    }

    .prop-list {
      display: grid;
      gap: 8px;
    }

    .prop-item {
      border: 1px solid var(--line);
      border-radius: 11px;
      padding: 10px 11px;
      background: #fff;
    }

    .prop-item strong {
      display: inline-block;
      margin-right: 6px;
      font-size: 13px;
    }

    .prop-item .mono {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      color: #223b61;
      font-size: 14px;
    }

    .prop-item small {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .apps-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }

    .app-img {
      height: 170px;
      background: #dfe9f8;
      background-size: cover;
      background-position: center;
      position: relative;
    }

    .app-cat {
      position: absolute;
      left: 10px;
      top: 10px;
      border-radius: 999px;
      padding: 4px 8px;
      font-size: 11px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.9);
      color: #26496f;
      border: 1px solid rgba(18, 32, 52, 0.12);
    }

    .app-body {
      padding: 13px;
    }

    .app-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 700;
      margin-bottom: 6px;
      font-size: 1rem;
    }

    .app-metal {
      font-family: 'JetBrains Mono', monospace;
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 8px;
    }

    .app-body p {
      color: #334862;
      font-size: 13px;
      margin-bottom: 8px;
    }

    .impact {
      border-top: 1px solid var(--line);
      padding-top: 8px;
      color: #244870;
      font-size: 12px;
      display: none;
    }

    .app-card.open .impact {
      display: block;
    }

    .link-btn {
      border: 0;
      background: transparent;
      color: var(--primary);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      padding: 0;
    }

    .opp-banner {
      border-radius: var(--radius);
      min-height: 220px;
      background:
        linear-gradient(105deg, rgba(9, 29, 55, 0.76) 0%, rgba(9, 29, 55, 0.25) 52%, rgba(9, 29, 55, 0.1) 100%),
        url('canada-hf-ta-production-semiconductor-application.png') center / cover;
      color: #fff;
      display: grid;
      align-items: end;
      padding: 18px;
      margin-bottom: 14px;
      box-shadow: var(--shadow-md);
    }

    .opp-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .opp-item {
      border-radius: var(--radius);
      background: #fff;
      border: 1px solid var(--line);
      padding: 14px;
      box-shadow: var(--shadow-sm);
    }

    .opp-item h3 {
      font-size: 1rem;
      margin-bottom: 6px;
    }

    .opp-item p {
      color: var(--muted);
      font-size: 13px;
    }

    .value-chain {
      margin-top: 14px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .value-chain img {
      width: 100%;
      height: 240px;
      object-fit: contain;
      display: block;
      background: #f4f7fd;
    }

    .value-chain div {
      padding: 13px;
    }

    .dark-section {
      background: linear-gradient(170deg, #0c1930 0%, #131d31 55%, #1a2238 100%);
      color: #eef4ff;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dark-section .section-head p {
      color: #b8c3d6;
    }

    .reco-list {
      display: grid;
      gap: 11px;
    }

    .reco-item {
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.06);
      border-radius: var(--radius);
      padding: 14px;
    }

    .reco-item h3 {
      margin-bottom: 6px;
      font-size: 1rem;
      color: #ffffff;
    }

    .reco-item p {
      color: #d6dfef;
      font-size: 13px;
    }

    .cta-box {
      margin-top: 16px;
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: linear-gradient(135deg, rgba(30, 95, 168, 0.27), rgba(214, 46, 46, 0.27));
      padding: 20px;
      text-align: center;
    }

    .contacts-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-grid .card {
      padding: 14px;
    }

    .contacts-grid h3 {
      font-size: 1rem;
      margin-bottom: 6px;
    }

    .contacts-grid p {
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 10px;
    }

    .mail {
      display: inline-block;
      text-decoration: none;
      color: var(--primary);
      border: 1px solid #d3e0f4;
      border-radius: 9px;
      padding: 6px 10px;
      font-weight: 700;
      font-size: 12px;
      background: #f5f9ff;
      word-break: break-word;
    }

    .portal {
      margin-top: 12px;
      text-align: center;
    }

    .portal a {
      display: inline-block;
      color: var(--muted);
      text-decoration: none;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 13px;
      font-size: 13px;
      font-weight: 700;
      background: #fff;
    }

    .refs {
      display: grid;
      gap: 8px;
    }

    .ref-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      align-items: start;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: #fff;
      padding: 10px;
      box-shadow: var(--shadow-sm);
    }

    .ref-num {
      font-family: 'JetBrains Mono', monospace;
      color: var(--primary);
      font-size: 12px;
      font-weight: 700;
      min-width: 34px;
    }

    .ref-meta {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .ref-link {
      color: var(--primary);
      text-decoration: none;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    footer {
      background: #0f1727;
      color: #e9eff9;
      padding: 34px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .footer-brand p {
      color: #b8c6da;
      font-size: 13px;
    }

    .footer-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: #c6d6ee;
      text-decoration: none;
      font-size: 13px;
    }

    .copyright {
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: #9fb0ca;
      text-align: center;
      font-size: 12px;
    }

    .lp-bottom {
      all: initial;
      box-sizing: border-box;
      display: block;
      width: 100%;
      margin-top: 0;
      padding: 12px 18px;
      background: #0b0b12;
      border-top: 1px solid rgba(202, 161, 75, 0.45);
      color: #9a9aac;
      text-align: center;
      font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    }

    .lp-bottom a {
      color: #caa14b;
      text-decoration: none;
      font-weight: 700;
      margin: 0 6px;
    }

    @media (max-width: 1024px) {
      .mines-grid,
      .apps-grid,
      .opp-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .stats,
      .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .prop-layout {
        grid-template-columns: 1fr;
      }

      .material-card {
        max-width: 320px;
      }
    }

    @media (max-width: 760px) {
      .site-header {
        position: static;
      }

      .header-inner {
        padding: 10px 0;
        display: grid;
        gap: 10px;
      }

      .nav {
        justify-content: flex-start;
      }

      .hero {
        min-height: auto;
      }

      section {
        padding: 56px 0;
      }

      .mines-grid,
      .apps-grid,
      .opp-list,
      .contacts-grid {
        grid-template-columns: 1fr;
      }

      .bar-row {
        grid-template-columns: 52px 1fr;
      }

      .bar-row .mono {
        grid-column: 2;
        font-size: 11px;
      }

      th,
      td {
        padding: 8px;
        font-size: 12px;
      }
    }
