/* ————————————————————————————————————————————
   Osman Group Limited — corporate site
   Theme: deep-space / aurora, youthful sci-fi
———————————————————————————————————————————— */

:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --panel: rgba(255, 255, 255, .04);
  --panel-strong: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef2fa;
  --text-dim: #a7b0c4;
  --text-faint: #667089;
  --teal: #2fd4c2;        /* Osman brand teal */
  --violet: #8b7cf6;      /* Paip violet */
  --green: #34d377;       /* Paip green */
  --red: #e5484d;         /* RedAnt red */
  --sans: "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
  --display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.mono { font-family: var(--mono); }

/* ——— language toggle: hide the inactive language ——— */
html[data-lang="zh"] [data-l="en"] { display: none; }
html[data-lang="en"] [data-l="zh"] { display: none; }

/* ————————————— background scene ————————————— */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 212, 194, .09), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-teal   { width: 560px; height: 560px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(47,212,194,.28), transparent 65%); }
.orb-violet { width: 640px; height: 640px; top: 8%; right: -220px; background: radial-gradient(circle, rgba(139,124,246,.24), transparent 65%); animation-delay: -8s; }
.orb-green  { width: 480px; height: 480px; bottom: -200px; left: 30%; background: radial-gradient(circle, rgba(52,211,119,.14), transparent 65%); animation-delay: -16s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

/* ————————————— header ————————————— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 44px; width: auto; }

.site-nav { display: flex; gap: 36px; }
.site-nav a {
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.25, .8, .25, 1);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  cursor: pointer;
  transition: border-color .25s;
}
.lang-switch:hover { border-color: var(--teal); }
.lang-opt.active { color: var(--teal); }
.lang-divider { margin: 0 5px; opacity: .4; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); margin: 5px 0; }

/* ————————————— hero ————————————— */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 190px 32px 110px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--teal);
  background: rgba(47, 212, 194, .08);
  border: 1px solid rgba(47, 212, 194, .25);
  border-radius: 999px;
  padding: 8px 18px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47, 212, 194, .55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 212, 194, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(47, 212, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 212, 194, 0); }
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.22;
  letter-spacing: .01em;
  margin-top: 36px;
  max-width: 20ch;
}
html[data-lang="en"] .hero-title { max-width: 24ch; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--green) 0%, var(--teal) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 580px;
  margin-top: 30px;
  font-size: 17px;
  color: var(--text-dim);
}

.hero-actions { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  color: #04211d;
  background: linear-gradient(96deg, var(--green), var(--teal));
  box-shadow: 0 8px 32px rgba(47, 212, 194, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(47, 212, 194, .4); }

.btn-outline {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
.btn-outline:hover { border-color: var(--teal); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 84px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .3s, transform .3s;
}
.stat:hover { border-color: rgba(47, 212, 194, .4); transform: translateY(-3px); }
.stat-value {
  font-size: 30px;
  font-weight: 500;
  background: linear-gradient(96deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-faint); letter-spacing: .05em; }

/* ————————————— sections (shared) ————————————— */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 32px;
}

.section-head { margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: .01em;
}

/* ————————————— about ————————————— */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}
.about-lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.6;
  padding-left: 24px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--teal), var(--violet)) 1;
}
.about-body p { font-size: 15.5px; color: var(--text-dim); }
.about-body p + p { margin-top: 22px; }

/* ————————————— products ————————————— */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.product-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px 38px 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-6px); }
.card-paip:hover   { border-color: rgba(139, 124, 246, .45); box-shadow: 0 24px 64px rgba(139, 124, 246, .16); }
.card-redant:hover { border-color: rgba(229, 72, 77, .45);  box-shadow: 0 24px 64px rgba(229, 72, 77, .14); }

.card-glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  transition: opacity .35s;
}
.card-paip .card-glow   { background: radial-gradient(circle, rgba(52,211,119,.3), rgba(139,124,246,.22) 60%, transparent 75%); }
.card-redant .card-glow { background: radial-gradient(circle, rgba(229,72,77,.28), transparent 70%); }
.product-card:hover .card-glow { opacity: .85; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.product-logo {
  width: 84px; height: 84px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: 10px;
}
.card-chip {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.product-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .01em;
}
.product-tagline {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
}
.card-paip .product-tagline   { color: var(--violet); }
.card-redant .product-tagline { color: #ff7a7e; }

.product-desc {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-dim);
}

.product-points { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.product-points li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 4px;
  transform: rotate(45deg);
}
.card-paip .product-points li::before   { background: linear-gradient(135deg, var(--green), var(--violet)); }
.card-redant .product-points li::before { background: linear-gradient(135deg, #ff7a7e, var(--red)); }

.card-foot {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  transition: border-color .25s, background .25s, transform .25s;
}
.product-link:hover { transform: translateY(-2px); }
.card-paip .product-link:hover   { border-color: var(--violet); background: rgba(139, 124, 246, .12); }
.card-redant .product-link:hover { border-color: var(--red);    background: rgba(229, 72, 77, .12); }
.card-meta {
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-faint);
  text-align: right;
  letter-spacing: .06em;
}

/* ————————————— corporate ————————————— */
.corporate-note {
  font-size: 14px;
  color: var(--text-faint);
  margin: -26px 0 36px;
}

.corp-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.corp-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 22px 30px;
  transition: background .25s;
}
.corp-row + .corp-row { border-top: 1px solid var(--line); }
.corp-row:hover { background: rgba(47, 212, 194, .045); }
.corp-key {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--text-faint);
  padding-top: 4px;
}
.corp-val { font-size: 15.5px; font-weight: 400; color: var(--text); }

/* ————————————— contact ————————————— */
.section-contact { padding-bottom: 130px; }

.contact-panel {
  position: relative;
  background:
    radial-gradient(ellipse 70% 120% at 85% -20%, rgba(139, 124, 246, .14), transparent 60%),
    radial-gradient(ellipse 60% 120% at 10% 120%, rgba(47, 212, 194, .12), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 64px 60px;
  overflow: hidden;
}
.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 44px;
}
.contact-block h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--teal);
  margin-bottom: 14px;
}
.contact-block p { font-size: 15.5px; line-height: 2; color: var(--text-dim); }
.contact-block a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: color .25s, border-color .25s; }
.contact-block a:hover { color: var(--teal); border-color: var(--teal); }

/* ————————————— legal pages ————————————— */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 32px 110px;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  margin-top: 14px;
}
.legal-updated { font-size: 12.5px; color: var(--text-faint); margin-top: 12px; letter-spacing: .08em; }
.legal section { margin-top: 46px; }
.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 14px;
}
.legal p, .legal li { font-size: 15px; color: var(--text-dim); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--teal); }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--teal); }

@media (max-width: 720px) {
  .legal { padding: 120px 20px 80px; }
}

/* ————————————— footer ————————————— */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand .brand-logo { height: 40px; }
.footer-name { font-size: 14.5px; font-weight: 400; color: var(--text-dim); letter-spacing: .08em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color .25s; }
.footer-links a:hover { color: var(--teal); }
.footer-legal { font-size: 11.5px; letter-spacing: .04em; color: var(--text-faint); }

/* ————————————— reveal on scroll ————————————— */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ————————————— responsive ————————————— */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .products { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { padding: 0 20px; height: 68px; }
  .brand-logo { height: 38px; }
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(7, 11, 20, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }

  .hero { padding: 140px 20px 80px; }
  .hero-stats { gap: 10px; margin-top: 60px; }
  .stat { padding: 18px; border-radius: 14px; }
  .stat-value { font-size: 24px; }

  .section { padding: 80px 20px; }
  .product-card { padding: 30px 24px 26px; border-radius: 22px; }
  .product-logo { width: 68px; height: 68px; border-radius: 18px; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .card-meta { text-align: left; }

  .corp-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  .contact-panel { padding: 44px 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 44px 20px; }
}
