/* CLT — Cat Loi Tech (modern landing) */
:root {
  --bg: #070b12;
  --bg-elevated: #0c111c;
  --bg-soft: #121a2a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: #0891b2;
  --accent-2: #818cf8;
  --glow: rgba(34, 211, 238, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(129, 140, 248, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(8, 145, 178, 0.08), transparent 45%),
    linear-gradient(rgba(34, 211, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.028) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    auto,
    56px 56px,
    56px 56px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Header —— */
.site-header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #041016;
  box-shadow: 0 8px 24px var(--glow);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-switch button[aria-pressed="true"] {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent);
}

.lang-switch button:hover:not([aria-pressed="true"]) {
  color: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.18s, border-color 0.15s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #041016;
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover {
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.38);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: rgba(34, 211, 238, 0.45);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

/* —— Hero —— */
.hero {
  padding: 3.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: rgba(253, 230, 138, 0.06);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.05rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero-panel {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem;
  background: linear-gradient(145deg, var(--bg-soft), rgba(12, 17, 28, 0.6));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.12), transparent 40%);
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.stat span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* —— Sections —— */
.section-block {
  padding: 3.25rem 0;
}

.section-block + .section-block {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  max-width: 40rem;
}

/* About */
.about-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--bg-elevated), rgba(18, 26, 42, 0.5));
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-card);
}

.about-motto {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  line-height: 1.45;
}

.about-body {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-body p {
  margin: 0 0 0.85rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-body strong {
  color: var(--text);
  font-weight: 700;
}

/* Services cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), transparent 40%, rgba(129, 140, 248, 0.2));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Markets */
.markets {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.market-pill {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, var(--bg-elevated), transparent);
  transition: border-color 0.2s ease;
}

.market-pill:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.market-pill strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.market-pill span {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 640px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
  box-shadow: var(--shadow-card);
}

.contact-box h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-box p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-address {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.12rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Legal pages */
.legal-main {
  padding: 3.25rem 0 4rem;
}

.legal-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin-bottom: 1rem;
}

.legal-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4.25rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-tags {
    justify-content: flex-start;
  }
}
