/* QITOS boss revision: separated home + company intro pages */
:root {
  --teal-950: #062f35;
  --teal-900: #083f45;
  --teal-800: #0a5960;
  --teal: #12959c;
  --teal-soft: #dff5f1;
  --orange: #ff7a18;
  --orange-2: #ff9a45;
  --orange-soft: #ffe6cf;
  --cream: #fff8ee;
  --paper: #fffdf7;
  --ink: #102a2e;
  --muted: #657e83;
  --line: rgba(8, 63, 69, .12);
  --glass: rgba(255,255,255,.68);
  --shadow: 0 26px 70px rgba(8, 63, 69, .14);
  --shadow-2: 0 14px 38px rgba(8, 63, 69, .10);
  --radius-xl: 38px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 14%, rgba(18,149,156,.12), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(255,122,24,.16), transparent 34rem),
    radial-gradient(circle at 78% 82%, rgba(255,154,69,.10), transparent 32rem),
    linear-gradient(145deg, #fffdf7 0%, #f5fcfa 48%, #fff1e4 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(8,63,69,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,63,69,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.72), transparent 78%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .72rem .9rem .72rem 1rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,253,247,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 55px rgba(8,63,69,.10);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: clamp(132px, 12vw, 210px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(8,63,69,.12));
}
.site-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.site-nav a,
.language-switch,
.menu-toggle {
  border-radius: 999px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 850;
}
.site-nav a {
  padding: .74rem .86rem;
  color: rgba(16,42,46,.72);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-900);
  background: rgba(18,149,156,.09);
}
.language-switch {
  padding: .74rem 1rem;
  color: #fffdf8;
  background: linear-gradient(135deg, var(--teal-800), var(--orange));
  box-shadow: 0 12px 30px rgba(255,122,24,.22);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  padding: .7rem .9rem;
  color: var(--teal-900);
}

.home-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7.5rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.home-hero::before {
  width: min(72vw, 820px);
  height: min(72vw, 820px);
  left: -18vw;
  bottom: -28vw;
  background: radial-gradient(circle, rgba(18,149,156,.24), transparent 67%);
  animation: slowDrift 12s ease-in-out infinite alternate;
}
.home-hero::after {
  width: min(55vw, 620px);
  height: min(55vw, 620px);
  right: -16vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(255,122,24,.24), transparent 66%);
  animation: slowDrift 10s ease-in-out infinite alternate-reverse;
}
.home-stage {
  width: min(1120px, 100%);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 18% 16%, rgba(18,149,156,.16), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255,122,24,.15), transparent 33%),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,248,237,.56));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.home-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: clamp(24px, 4vw, 56px);
  border: 1px solid rgba(255,255,255,.66);
  pointer-events: none;
}
.home-stage::after {
  content: "QITOS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  font-size: clamp(7rem, 22vw, 18rem);
  font-weight: 1000;
  letter-spacing: -.08em;
  color: rgba(8,63,69,.035);
  pointer-events: none;
}
.home-logo-wrap {
  position: relative;
  z-index: 2;
  width: min(740px, 86vw);
  margin: 0 auto;
  animation: logoArrive 950ms cubic-bezier(.17,.84,.44,1) both;
}
.home-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(8,63,69,.16));
}
.core-line {
  position: relative;
  z-index: 2;
  margin: clamp(1.8rem, 3vw, 2.8rem) auto 0;
  width: fit-content;
  max-width: 100%;
  padding: .72rem 1.1rem;
  border: 1px solid rgba(18,149,156,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--teal-900);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 950;
  letter-spacing: .03em;
  box-shadow: 0 18px 40px rgba(8,63,69,.08);
  animation: textReveal 850ms 550ms ease both;
}
.home-title {
  position: relative;
  z-index: 2;
  margin: clamp(1.4rem, 3vw, 2.3rem) 0 0;
  font-size: clamp(2.3rem, 6.4vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 1000;
  color: transparent;
  background: linear-gradient(120deg, var(--teal-950) 0%, var(--teal) 48%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: textReveal 900ms 820ms ease both;
}
.lang-en .home-title {
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.45rem, 5.7vw, 5.8rem);
}
.home-subtitle {
  position: relative;
  z-index: 2;
  max-width: 47rem;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.8;
  animation: textReveal 900ms 1s ease both;
}
.home-actions {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
  animation: textReveal 900ms 1.12s ease both;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .86rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(8,63,69,.14); }
.button-primary {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 62%, #f0670b);
}
.button-secondary {
  color: var(--teal-900);
  border: 1px solid rgba(18,149,156,.22);
  background: rgba(255,255,255,.66);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(8,63,69,.48);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: .5rem auto 0;
  background: linear-gradient(180deg, var(--teal), transparent);
  animation: cue 1.3s ease-in-out infinite;
}

.page-main {
  padding-top: 8.5rem;
}
.section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.2rem, 8vw, 7rem) 0;
}
.section-hero {
  padding-top: 2rem;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}
.eyebrow {
  margin: 0 0 .9rem;
  color: #d95708;
  font-size: .84rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--teal-950);
  font-size: clamp(2.4rem, 5.2vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.section-heading p {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.85;
}
.intro-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 16%, rgba(18,149,156,.18), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(255,122,24,.18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,247,235,.64));
  box-shadow: var(--shadow);
}
.intro-panel::after {
  content: "creation × distribution × assets";
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  color: rgba(8,63,69,.055);
  font-size: clamp(3.2rem, 10vw, 9rem);
  font-weight: 1000;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.intro-text {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  color: var(--teal-950);
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -.03em;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .9rem;
  margin-top: 1.3rem;
}
.strip-card {
  padding: 1.2rem;
  min-height: 9rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(8,63,69,.09);
  background:
    linear-gradient(150deg, rgba(255,255,255,.78), rgba(255,255,255,.44));
  box-shadow: var(--shadow-2);
}
.strip-card strong {
  display: block;
  color: var(--teal-950);
  font-size: clamp(1.1rem, 1.6vw, 1.38rem);
  line-height: 1.2;
}
.strip-card span {
  display: block;
  margin-top: .8rem;
  color: var(--muted);
  line-height: 1.7;
}
.strip-card:nth-child(2n) {
  background: linear-gradient(150deg, rgba(223,245,241,.82), rgba(255,255,255,.45));
}
.strip-card:nth-child(3n) {
  background: linear-gradient(150deg, rgba(255,230,207,.8), rgba(255,255,255,.45));
}
.bento {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1rem;
}
.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(8,63,69,.1);
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow-2);
}
.bento-card::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: -7rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,149,156,.12), transparent 70%);
}
.bento-card.accent::after {
  background: radial-gradient(circle, rgba(255,122,24,.18), transparent 70%);
}
.bento-card.wide { grid-column: 1 / -1; min-height: 220px; }
.bento-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--teal-950);
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.bento-card p,
.bento-card li {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.8;
}
.bento-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}
.text-visual {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.visual-tile {
  min-height: 210px;
  padding: 1.45rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.6), transparent 30%),
    linear-gradient(135deg, rgba(18,149,156,.16), rgba(255,122,24,.12));
  box-shadow: var(--shadow-2);
}
.visual-tile h3 {
  margin: 0;
  color: var(--teal-950);
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  letter-spacing: -.04em;
}
.visual-tile p {
  color: var(--muted);
  line-height: 1.75;
}
.visual-tile.legal {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,122,24,.22), transparent 35%),
    linear-gradient(135deg, rgba(255,248,237,.94), rgba(223,245,241,.68));
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .9rem;
}
.flow-step {
  position: relative;
  min-height: 160px;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(255,255,255,.45));
  border: 1px solid rgba(8,63,69,.1);
  box-shadow: var(--shadow-2);
}
.flow-step span {
  display: inline-flex;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .82rem;
  font-weight: 950;
}
.flow-step h3 {
  margin: 1rem 0 .5rem;
  color: var(--teal-950);
}
.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.cta-panel {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 0%, rgba(18,149,156,.15), transparent 36%),
    radial-gradient(circle at 72% 0%, rgba(255,122,24,.18), transparent 36%),
    rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.cta-panel h2 {
  margin: 0;
  color: var(--teal-950);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.cta-panel p {
  margin: 1rem auto 0;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.8;
}
.site-footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  color: rgba(16,42,46,.56);
  border-top: 1px solid rgba(8,63,69,.1);
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes logoArrive {
  from { opacity: 0; transform: translateY(28px) scale(.92); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes textReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(26px,-18px,0) scale(1.04); }
}
@keyframes cue {
  0%, 100% { opacity: .25; transform: scaleY(.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 940px) {
  .site-header {
    top: 10px;
    width: min(100% - 18px, 1180px);
  }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 24px;
    background: rgba(255,253,247,.96);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem 1rem; }
  .strip-grid,
  .flow,
  .text-visual,
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: auto; }
}
@media (max-width: 580px) {
  .site-header { padding: .58rem .62rem .58rem .75rem; }
  .brand-logo { width: 125px; }
  .language-switch { padding: .66rem .8rem; }
  .home-stage { padding: 2rem 1rem; border-radius: 32px; }
  .home-title { font-size: clamp(2rem, 12vw, 3.9rem); }
  .lang-en .home-title { font-size: clamp(2.05rem, 10vw, 3.55rem); }
  .core-line { border-radius: 22px; }
  .home-actions { align-items: stretch; }
  .button { width: 100%; }
  .section { width: min(100% - 1rem, 1160px); }
  .site-footer { flex-direction: column; }
}


/* Fix: navigation logo vertical centering */
.site-header {
  align-items: center;
  min-height: 86px;
}

.brand {
  align-items: center;
  height: 62px;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(138px, 13vw, 220px);
  max-height: 58px;
  object-fit: contain;
  object-position: center center;
  transform: translateY(0);
}

.site-nav {
  align-items: center;
}

@media (max-width: 580px) {
  .site-header {
    min-height: 72px;
  }
  .brand {
    height: 50px;
  }
  .brand-logo {
    width: 130px;
    max-height: 48px;
  }
}


/* Fix: keep Chinese home title on one line */
.lang-zh .home-title {
  font-size: clamp(2.1rem, 4.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .lang-zh .home-title {
    font-size: clamp(1.75rem, 7.2vw, 3rem);
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .lang-zh .home-title {
    font-size: clamp(1.45rem, 6.6vw, 2.2rem);
    letter-spacing: -0.05em;
  }
}


/* Fix: English home title in two balanced lines */
.lang-en .en-home-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.4vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lang-en .en-home-title span {
  display: block;
  white-space: nowrap;
}

.lang-en .en-home-title span:last-child {
  font-size: 0.78em;
  margin-top: 0.08em;
}

@media (max-width: 760px) {
  .lang-en .en-home-title {
    font-size: clamp(1.7rem, 7.4vw, 3rem);
    max-width: 17ch;
  }
}

@media (max-width: 420px) {
  .lang-en .en-home-title {
    font-size: clamp(1.35rem, 6.8vw, 2.2rem);
  }
}


/* Client-ready resource image cards */
.text-visual {
  align-items: stretch;
}

.visual-tile.visual-tile-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.56));
}

.tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(18,149,156,.14), transparent 40%),
    linear-gradient(135deg, rgba(223,245,241,.9), rgba(255,230,207,.7));
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.visual-tile-image:hover .tile-image img {
  transform: scale(1.035);
}

.tile-copy {
  padding: 1.35rem 1.35rem 1.5rem;
}

.tile-copy h3 {
  margin: 0;
}

.tile-copy p {
  margin: .85rem 0 0;
}

.visual-tile.legal .tile-image img {
  object-position: center center;
}

@media (max-width: 940px) {
  .visual-tile.visual-tile-image {
    min-height: auto;
  }
}
