:root {
  --bg: #050816;
  --bg-soft: #090f25;
  --bg-card: #111827;
  --primary: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.1);
  --primary-strong: #2563eb;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: #1f2937;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #111827, #020617 45%, #020617 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Language toggling */

.lang {
  /* just marker */
}

[data-lang="vi"] .lang-en {
  display: none;
}

[data-lang="en"] .lang-vi {
  display: none;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.95),
    rgba(2, 6, 23, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text-main {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-soft);
  padding: 0.35rem 0.1rem;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #3b82f6, #a855f7);
  border-radius: 999px;
  transition: width 0.22s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Language toggle */

.lang-toggle {
  display: inline-flex;
  padding: 0.16rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.active {
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  background: none;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(120deg, #3b82f6, #a855f7);
  color: white;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
  border-color: rgba(191, 219, 254, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.7);
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.6);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text);
  background: rgba(15, 23, 42, 0.95);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(
    to right,
    rgba(59, 130, 246, 0.18),
    rgba(17, 24, 39, 0.9)
  );
  color: #bfdbfe;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.25rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 3.1vw, 3rem);
  line-height: 1.05;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.hero-title .highlight {
  background: linear-gradient(to right, #60a5fa, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.65;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.hero-metric {
  min-width: 110px;
}

.hero-metric-number {
  font-size: 1.4rem;
  font-weight: 600;
}

.hero-metric-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Hero card */

.hero-card {
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 55%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 120% -20%,
    rgba(168, 85, 247, 0.25),
    transparent 65%
  );
  opacity: 0.6;
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-card-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-soft);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mini-card {
  border-radius: 0.95rem;
  padding: 0.75rem 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.85);
  font-size: 0.8rem;
}

.mini-card-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.mini-card-strong {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.mini-card-pill {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

.hero-card-footer {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(75, 85, 99, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero-card-avatar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b1120;
}

.hero-card-avatar span {
  display: block;
}

.hero-card-avatar .name {
  color: var(--text);
}

.hero-card-avatar .role {
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* Sections */

section {
  padding: 3.4rem 0 1.4rem;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.section-description {
  font-size: 0.98rem;
  color: var(--text-soft);
  max-width: 520px;
}

/* Cards & grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.96)
  );
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.55);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(59, 130, 246, 0.16),
    transparent 55%
  );
  opacity: 0.9;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.95rem;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
  line-height: 1.65;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-soft);
}

/* Industries + Process */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.9rem;
}

.list li {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.95);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.list-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.9);
}

/* Timeline */

.timeline {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  border-left: 1px solid rgba(55, 65, 81, 0.95);
  padding-left: 1rem;
  margin-left: 0.3rem;
}

.timeline-item {
  position: relative;
  padding-left: 0.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.33rem;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #3b82f6;
  background: #020617;
}

.timeline-step {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

.timeline-title {
  font-size: 0.94rem;
  margin-bottom: 0.15rem;
}

.timeline-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.project-card {
  border-radius: var(--radius-lg);
  padding: 1rem 0.9rem;
  background: radial-gradient(
      circle at top,
      rgba(59, 130, 246, 0.16),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.95);
  font-size: 0.85rem;
}

.project-name {
  font-size: 0.96rem;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.project-industry {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.project-pill {
  font-size: 0.72rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

/* Contact */

.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.contact-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.98)
  );
  border: 1px solid rgba(55, 65, 81, 0.95);
  box-shadow: var(--shadow-soft);
}

.contact-grid-simple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.87rem;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 0.9rem;
}

/* Form */

form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

input,
textarea,
select {
  font: inherit;
  border-radius: 0.7rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.55rem 0.7rem;
  color: var(--text);
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
  background: #020617;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.small-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

/* Footer */

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.1rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .grid-3,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    flex-wrap: wrap;
  }

  nav {
    display: none; /* đơn giản: ẩn menu trên mobile */
  }

  .header-right {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .grid-3,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.7rem;
  }
}
