:root {
  --ink: #0b1c2c;
  --ink-soft: #4a5d6e;
  --accent: #d32f2f;
  --accent-dark: #b71c1c;
  --sea: #0f766e;
  --line: #e6ebf0;
  --bg: #f4f6f8;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(11, 28, 44, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 28, 44, 0.16);
  --font-display: "Barlow", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans SC", "Noto Sans TC", "Barlow", sans-serif;
  --max: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Header (Deppon-like solid bar) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(11, 28, 44, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #8b1010);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 12px 9px auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.55), 0 10px 0 rgba(255, 255, 255, 0.3);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

.brand > span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}

.nav a {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.nav a:hover {
  color: var(--accent);
}

.nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-weight: 600;
}

/* ——— Hero full-bleed ——— */
.hero {
  position: relative;
  min-height: clamp(480px, 68vh, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(11, 28, 44, 0.92) 8%, rgba(11, 28, 44, 0.55) 48%, rgba(15, 118, 110, 0.35) 100%),
    url("../assets/hero-pattern.svg") center/cover no-repeat,
    #0b1c2c;
}

.hero-media.has-image {
  background:
    linear-gradient(105deg, rgba(11, 28, 44, 0.9) 10%, rgba(11, 28, 44, 0.45) 55%, rgba(211, 47, 47, 0.2) 100%),
    var(--hero-image) center/cover no-repeat;
}

.hero-wave {
  display: none;
}

.hero-content {
  padding: 5.5rem 0 7.5rem;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-solid {
  background: var(--accent);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

/* ——— Quick entry strip (Deppon-style tools) ——— */
.quick-bar {
  position: relative;
  z-index: 5;
  margin-top: -3.5rem;
  margin-bottom: 0.5rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.35rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
}

.quick-item:last-child {
  border-right: 0;
}

.quick-item:hover {
  background: #fff5f5;
  color: var(--accent);
}

.quick-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8eaea;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.quick-item small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ——— Sections ——— */
section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  margin-bottom: 1.35rem;
  max-width: 720px;
}

.section-head .eyebrow-dark {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ——— Cards ——— */
.feature,
.product-card,
.case-card,
.news-card,
.panel,
.extra-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 0.95rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.feature:hover,
.product-card:hover,
.case-card:hover,
.news-card:hover,
.extra-card:hover,
.faq-item:hover {
  border-color: #e8b4b4;
  box-shadow: 0 4px 14px rgba(11, 28, 44, 0.06);
}

.feature {
  position: relative;
  padding-left: 1rem;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  width: 3px;
  background: var(--accent);
}

.feature h3,
.product-card h3,
.case-card h3,
.news-card h3,
.extra-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.feature p,
.product-card p,
.case-card p,
.news-card p,
.extra-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-card,
.case-card,
.news-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card.no-media,
.case-card.no-media,
.news-card.no-media {
  border-left: 3px solid var(--accent);
}

.product-card .card-body,
.case-card .card-body,
.news-card .card-body {
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.product-card .card-top,
.case-card .card-top,
.news-card .card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-card .card-top h3,
.case-card .card-top h3,
.news-card .card-top h3 {
  flex: 1;
  min-width: 0;
}

.card-index {
  flex-shrink: 0;
  min-width: 1.7rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  margin-top: 0.12rem;
  border-radius: 2px;
  background: #fff1f1;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card .thumb,
.case-card .thumb,
.news-card .thumb {
  height: 112px;
  margin: 0;
  border-radius: 0;
  background: #f0f3f5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-card .thumb img,
.case-card .thumb img,
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.75rem 1.1rem;
}

.about-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 28, 44, 0.85), rgba(15, 118, 110, 0.55)),
    #1a3348;
}

.about-media.has-image {
  background: #e8eef2;
}

.about-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-detail {
  margin-top: 0.15rem !important;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem !important;
}

.stats-section {
  padding: 2.5rem 0 0.5rem;
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-item {
  background: var(--white);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.stat-item span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.extra-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.extra-card {
  padding: 0.95rem 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

#about-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

#about-body p:last-child {
  margin-bottom: 0;
}

.track-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  padding: 0;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.track-box input {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 1.05rem 1.25rem;
  background: var(--white);
  outline: none;
}

.track-box .btn {
  border-radius: 0;
  min-width: 140px;
}

.track-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.track-panel .section-head {
  margin-bottom: 0;
}

.track-panel .section-head h2 {
  color: var(--white);
}

.track-panel .section-head h2::after {
  background: var(--accent);
}

.track-panel .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  background: var(--white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  list-style: none;
  padding: 0.95rem 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: #fff1f1;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  line-height: 1.15;
}

.faq-item p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.social-card {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.social-card-media {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f5f7;
  padding: 0;
  cursor: zoom-in;
  display: block;
}

.social-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.social-zoom-btn {
  font: inherit;
  color: inherit;
}

.social-card-media .zoom-tip,
.social-float-card .social-zoom-btn > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.4rem;
  background: rgba(11, 28, 44, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  width: fit-content;
  margin-top: 0.35rem;
}

.social-meta h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
}

.social-meta p {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ——— Footer dark corporate ——— */
.site-footer {
  background: #0b1c2c;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 1.5rem;
  border-top: 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: var(--white);
}

.footer-brand .brand-mark,
.footer-brand .brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-col-title {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.footer-social {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  width: 72px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.footer-social .qr {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
}

.footer-social img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  font-size: 0.82rem;
}

.muted {
  color: var(--ink-soft);
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 28rem;
}

/* ——— Floating social dock ——— */
.social-float {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.social-float-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(211, 47, 47, 0.35);
}

.social-float-toggle:hover {
  background: var(--accent-dark);
}

.social-float-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.social-float-panel {
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(11, 28, 44, 0.2);
  overflow: hidden;
}

.social-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #0b1c2c;
  color: #fff;
}

.social-float-head strong {
  font-size: 0.92rem;
}

.social-float-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.social-float-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  max-height: min(70vh, 560px);
  overflow: auto;
}

.social-float-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.social-float-card .social-zoom-btn {
  position: relative;
  width: 108px;
  height: 144px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f7f8;
  overflow: hidden;
  cursor: zoom-in;
}

.social-float-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.social-float-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.social-float-card p {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.social-float-more {
  display: block;
  text-align: center;
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--accent);
  border-top: 1px solid var(--line);
}

.social-float-more:hover {
  text-decoration: underline;
}

/* Lightbox for QR scan */
body.lightbox-open {
  overflow: hidden;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.img-lightbox[hidden] {
  display: none !important;
}

.img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 44, 0.78);
  backdrop-filter: blur(2px);
}

.img-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.img-lightbox-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0.2rem 0.4rem;
}

.img-lightbox-img {
  width: 100%;
  max-height: min(78vh, 760px);
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.img-lightbox-hint {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  text-align: center;
}

.page-hero {
  padding: 3rem 0 0.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.65rem;
}

.page-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
}

.empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.track-section {
  max-width: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .about-grid,
  .contact-grid,
  .stats-grid,
  .social-grid,
  .footer-grid,
  .quick-grid,
  .track-panel {
    grid-template-columns: 1fr;
  }

  .quick-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-item:last-child {
    border-bottom: 0;
  }

  .social-card {
    grid-template-columns: minmax(120px, 140px) 1fr;
  }

  .social-card-media {
    max-width: 140px;
  }

  .footer-socials {
    flex-wrap: wrap;
  }

  .social-float {
    right: 0.75rem;
    bottom: 0.85rem;
  }

  .social-float-toggle span:last-child {
    display: none;
  }

  .social-float-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .nav a.active::after {
    display: none;
  }

  .track-box {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 4rem 0 5.5rem;
  }

  .quick-bar {
    margin-top: -2.5rem;
  }
}
