/* =========================================================
   UNIWORK TEK - Corporate Website
   Shared stylesheet
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0a2540;
  --color-primary-light: #1a3a5c;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-text: #1f2937;
  --color-text-light: #4b5563;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0a2540;
  --color-border: #e5e7eb;
  --color-border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ============== Layout ============== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section.alt {
  background: var(--color-bg-alt);
}

section.dark {
  background: var(--color-bg-dark);
  color: #e2e8f0;
}

/* ============== Header / Nav ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav a:hover {
  color: var(--color-accent);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.2s;
}

.lang-switch a.active {
  background: var(--color-primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--color-text);
  padding: 8px;
}

/* ============== Hero ============== */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(10, 37, 64, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg-alt) 100%);
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .hl {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.hero .tagline {
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* ============== Section Heading ============== */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto;
}

/* ============== Cards / Grids ============== */
.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); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--color-text-light);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before { opacity: 1; }

.product-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.product-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.product-card:hover h3::after { width: 100%; }

.product-card p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.75;
  flex: 1;
  margin: 0;
}

.product-card .card-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.product-card:hover .card-meta { gap: 12px; }

/* ============== Stats ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-accent, linear-gradient(90deg, var(--color-accent), var(--color-primary)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat:hover::before { opacity: 1; }

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--stat-icon-bg, linear-gradient(135deg, #eff6ff, #dbeafe));
  color: var(--stat-icon-color, var(--color-accent));
  font-size: 26px;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px var(--stat-icon-shadow, rgba(37, 99, 235, 0.15));
}

.stat-blue   { --stat-icon-color: #2563eb; --stat-icon-bg: linear-gradient(135deg, #dbeafe, #93c5fd); --stat-icon-shadow: rgba(37, 99, 235, 0.18); }
.stat-green  { --stat-icon-color: #059669; --stat-icon-bg: linear-gradient(135deg, #d1fae5, #6ee7b7); --stat-icon-shadow: rgba(5, 150, 105, 0.18); }
.stat-amber  { --stat-icon-color: #d97706; --stat-icon-bg: linear-gradient(135deg, #fef3c7, #fcd34d); --stat-icon-shadow: rgba(217, 119, 6, 0.18); }
.stat-purple { --stat-icon-color: #7c3aed; --stat-icon-bg: linear-gradient(135deg, #ede9fe, #c4b5fd); --stat-icon-shadow: rgba(124, 58, 237, 0.18); }

.stat .num {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat .label {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============== About (two-col) ============== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col h2 {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.two-col p {
  color: var(--color-text-light);
  font-size: 16px;
  margin-bottom: 16px;
}

.fact-list {
  list-style: none;
  margin-top: 24px;
}

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
}

.fact-list li:last-child { border-bottom: 0; }

.fact-list .k {
  flex: 0 0 140px;
  color: var(--color-text-light);
  font-weight: 500;
}

.fact-list .v {
  color: var(--color-text);
  font-weight: 600;
  word-break: break-word;
}

/* ============== Contact ============== */
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-item .k {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.contact-item .v {
  font-size: 15px;
  color: var(--color-text);
  word-break: break-word;
}

.contact-item .v a {
  color: var(--color-accent);
}

/* ============== Legal article ============== */
.legal {
  max-width: 860px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 20px;
  color: var(--color-primary);
  margin: 32px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.legal p, .legal li {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal ul {
  padding-left: 22px;
}

/* ============== Footer ============== */
.site-footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding: 56px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid #1e3a5f;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.beian {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 0 4px;
  margin-top: 14px;
  border-top: 1px solid #1e3a5f;
  color: #cbd5e1;
  font-size: 14px;
}

.beian a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.beian a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.beian svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 17px; }
  .section-heading h2, .two-col h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .legal h1 { font-size: 26px; }
  .footer-bottom { gap: 8px; }
}
