/* ==========================================================================
   TECKIFY SOFTWARE DEVELOPMENT JOINT STOCK COMPANY
   Modern, Sleek, High-Tech Glassmorphism Aesthetics
   ========================================================================== */

:root {
  /* Default theme: dark "cyber slate" with the TECKIFY brand gradient */
  color-scheme: dark;
  --bg-primary: #172238;
  --bg-primary-rgb: 23, 34, 56;
  --bg-secondary: #1e2b47;
  --bg-secondary-rgb: 30, 43, 71;
  --bg-tertiary: #263556;
  --bg-card: rgba(40, 55, 90, 0.72);
  --bg-card-hover: rgba(50, 67, 108, 0.9);
  --bg-glass: rgba(30, 43, 71, 0.8);
  --bg-footer: #111a2d;

  /* Neutral overlay (hover fills, hairlines) and brand tint, as RGB for rgba() */
  --overlay-rgb: 255, 255, 255;
  --tint-rgb: 56, 189, 248;
  --glow-opacity: 0.45;

  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(56, 189, 248, 0.3);
  --border-highlight: rgba(129, 140, 248, 0.4);

  --text-main: #f8fafc;
  --text-muted: #c2ccdb;
  --text-dim: #97a5bb;

  --accent-cyan: #00d4fe;
  --accent-blue: #1a62ff;
  --accent-blue-text: #6b9bff;
  --accent-indigo: #6366f1;
  --accent-purple: #9d4edd;
  --accent-orange: #ff8833;
  --accent-emerald: #10b981;

  --gradient-brand: linear-gradient(135deg, #00d4fe 0%, #1a62ff 35%, #9d4edd 70%, #ff8833 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 20%, #00d4fe 55%, #c084fc 80%, #ff8833 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 212, 254, 0.18), transparent 70%);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.25);
  --shadow-glow-purple: 0 0 35px rgba(168, 85, 247, 0.25);

  /* Spacing & Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme — chosen by the visitor with the theme toggle (saved in localStorage) */
:root[data-theme="light"] {
  /* Light corporate theme */
  color-scheme: light;
  --bg-primary: #f6f8fc;
  --bg-primary-rgb: 246, 248, 252;
  --bg-secondary: #edf1f8;
  --bg-secondary-rgb: 237, 241, 248;
  --bg-tertiary: #e2e8f3;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-footer: #edf1f8;

  /* Neutral overlay (hover fills, hairlines) and brand tint, as RGB for rgba() */
  --overlay-rgb: 15, 23, 42;
  --tint-rgb: 14, 165, 233;
  --glow-opacity: 0.16;

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(3, 105, 161, 0.4);
  --border-highlight: rgba(99, 102, 241, 0.35);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #556275;

  --accent-cyan: #0369a1;
  --accent-blue: #1a62ff;
  --accent-blue-text: #1d4ed8;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-orange: #c2410c;
  --accent-emerald: #047857;

  --gradient-brand: linear-gradient(135deg, #00d4fe 0%, #1a62ff 35%, #9d4edd 70%, #ff8833 100%);
  --gradient-text: linear-gradient(135deg, #0369a1 0%, #1a62ff 40%, #7c3aed 75%, #ea580c 100%);
  --gradient-card: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.1), transparent 70%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 30px rgba(14, 165, 233, 0.18);
  --shadow-glow-purple: 0 10px 30px rgba(124, 58, 237, 0.16);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: var(--glow-opacity);
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.glow-circle-1 {
  top: -10%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(var(--tint-rgb), 0) 70%);
}

.glow-circle-2 {
  top: 40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  animation-delay: -7s;
}

.glow-circle-3 {
  bottom: -15%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #00f2fe 0%, rgba(0, 242, 254, 0) 70%);
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Common Styling */
.section-padding {
  padding-top: 110px;
  padding-bottom: 110px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--tint-rgb), 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.section-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(var(--bg-primary-rgb), 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(var(--bg-primary-rgb), 0.92);
  border-bottom-color: rgba(var(--overlay-rgb), 0.12);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
}

.brand-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(var(--tint-rgb), 0.35);
  border: 1px solid rgba(var(--tint-rgb), 0.4);
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-main {
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.brand-sub {
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-blue-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item a {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--text-main);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(var(--overlay-rgb), 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.lang-btn.active {
  background: var(--gradient-brand);
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(var(--tint-rgb), 0.35);
}

.lang-btn:not(.active):hover {
  color: var(--text-main);
}

.lang-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #05070c;
  box-shadow: 0 4px 20px rgba(var(--tint-rgb), 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--tint-rgb), 0.5);
}

.btn-secondary {
  background: rgba(var(--overlay-rgb), 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(var(--overlay-rgb), 0.12);
  border-color: rgba(var(--overlay-rgb), 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Theme toggle (sun shown in dark theme, moon in light theme) */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(var(--overlay-rgb), 0.05);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--border-glow);
  color: var(--accent-cyan);
}

.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(var(--overlay-rgb), 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(var(--bg-primary-rgb), 0.98);
  backdrop-filter: blur(20px);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 999;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  padding: 8px 0;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--tint-rgb), 0.08);
  border: 1px solid var(--border-glow);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(var(--tint-rgb), 0.15);
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero Visual & 3D Interactive Card */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(135deg, rgba(var(--tint-rgb), 0.3), rgba(168, 85, 247, 0.2), rgba(var(--overlay-rgb), 0.05));
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-main-img {
  transform: scale(1.02);
}

/* ==========================================================================
   TECHNOLOGY MARQUEE
   ========================================================================== */

.tech-marquee {
  position: relative;
  z-index: 1;
  padding: 22px 0;
  background: rgba(var(--bg-secondary-rgb), 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}

.tech-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-list {
  display: flex;
  align-items: center;
  list-style: none;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Every item ends with a dot, so the two copies join seamlessly */
.marquee-item::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 28px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.8;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */

.about-grid {
  max-width: 920px;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 18px;
  line-height: 1.7;
}

.about-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.75;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.pillar-card {
  padding: 18px;
  background: rgba(var(--overlay-rgb), 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  border-color: var(--border-glow);
  background: rgba(var(--overlay-rgb), 0.05);
}

.pillar-card h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SERVICES & SOLUTIONS
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(var(--tint-rgb), 0.1);
  border: 1px solid rgba(var(--tint-rgb), 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(var(--tint-rgb), 0.35);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--overlay-rgb), 0.05);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-features svg {
  width: 15px;
  height: 15px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(var(--overlay-rgb), 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(var(--overlay-rgb), 0.05);
}

/* ==========================================================================
   D-U-N-S & LEGAL TRANSPARENCY SECTION (CRITICAL)
   ========================================================================== */

.legal-section {
  background: linear-gradient(180deg, rgba(var(--bg-secondary-rgb), 0.7) 0%, rgba(var(--bg-primary-rgb), 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-table-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.legal-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid rgba(var(--overlay-rgb), 0.06);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.legal-info-item:hover {
  background: rgba(var(--overlay-rgb), 0.04);
  border-color: rgba(var(--tint-rgb), 0.2);
}

.legal-info-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.legal-info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.legal-info-value.highlight {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.legal-footer-notice {
  background: rgba(var(--tint-rgb), 0.05);
  border: 1px solid rgba(var(--tint-rgb), 0.15);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-notice-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-notice-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-policy-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.legal-policy-btn:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   TECH STACK & CAPABILITIES
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.tech-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.tech-category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tech-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-info-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  border-color: var(--border-glow);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(var(--tint-rgb), 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-details a {
  color: var(--accent-cyan);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding-top: 70px;
  padding-bottom: 35px;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.6fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links button {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent-cyan);
}

.footer-company {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-company-name {
  color: var(--text-main);
  font-weight: 600;
}

.footer-company-label {
  color: var(--text-dim);
}

.footer-mono {
  font-family: var(--font-mono);
}

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

.footer-company a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(var(--overlay-rgb), 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Desktop nav needs ~1400px in Vietnamese (with theme toggle); below that use the drawer */
@media (max-width: 1400px) {
  .nav-links,
  .nav-actions .btn-contact-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .legal-table-grid {
    grid-template-columns: 1fr;
  }

  .legal-info-item.span-2 {
    grid-column: span 1;
  }

  .legal-card-container {
    padding: 24px 18px;
  }

  .legal-info-value,
  .contact-details p {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .contact-info-panel {
    grid-template-columns: 1fr;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Alternate section band (slightly lighter than page background) */
.section-alt {
  background: rgba(var(--bg-secondary-rgb), 0.55);
}

/* ==========================================================================
   UTILITIES & ACCESSIBILITY
   ========================================================================== */

picture {
  display: contents;
}

.btn-block {
  width: 100%;
}

.mobile-nav-cta {
  margin-top: auto;
  padding-top: 20px;
}

.footer-brand-logo {
  margin-bottom: 14px;
}

.legal-card-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.legal-info-item.span-2 {
  grid-column: span 2;
}

.legal-info-item {
  position: relative;
}

.legal-notice-icon {
  vertical-align: middle;
  margin-right: 6px;
  color: var(--accent-cyan);
}

/* Copy-to-clipboard button */
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(var(--overlay-rgb), 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-glow);
}

.copy-btn.copied {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.5);
}

.copy-btn-inline {
  position: static;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  vertical-align: middle;
}

.contact-copy-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible,
.lang-btn:focus-visible {
  border-radius: var(--radius-full);
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glow-circle {
    animation: none;
  }

  .marquee-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    animation: none;
    width: auto;
    justify-content: center;
  }

  .marquee-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .marquee-list[aria-hidden="true"] {
    display: none;
  }

  .service-card:hover,
  .tech-card:hover,
  .btn:hover,
  .hero-image-wrapper:hover .hero-main-img {
    transform: none;
  }
}

/* ==========================================================================
   DOCUMENT PAGES (PRIVACY POLICY, TERMS OF SERVICE)
   ========================================================================== */

.doc-main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 80px;
}

.doc-container {
  max-width: 820px;
}

.doc-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 16px 0 10px;
}

.doc-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.doc-content h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.doc-content h3 {
  font-size: 1.02rem;
  margin: 20px 0 8px;
}

.doc-content p,
.doc-content li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.doc-content p {
  margin-bottom: 12px;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 14px 22px;
}

.doc-content li {
  margin-bottom: 6px;
}

.doc-content strong {
  color: var(--text-main);
}

.doc-content a {
  color: var(--accent-cyan);
}

.doc-callout {
  padding: 12px 16px;
  border-left: 3px solid var(--accent-cyan);
  background: rgba(var(--tint-rgb), 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.doc-highlight {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
}

.doc-highlight p:last-child {
  margin-bottom: 0;
}

.doc-content h2[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.doc-contact {
  margin-top: 12px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-style: normal;
}

.doc-contact p {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .doc-main {
    padding-top: calc(var(--header-height) + 32px);
  }
}

/* Small phones: keep logo, language switcher and menu/back button on one row */
@media (max-width: 480px) {
  .navbar-inner {
    gap: 12px;
  }

  .nav-actions {
    gap: 10px;
  }

  .brand-sub {
    display: none;
  }

  .lang-btn {
    padding: 5px 10px;
  }

  .lang-btn span[aria-hidden="true"] {
    display: none;
  }

  .doc-back-btn {
    padding: 10px 12px;
  }

  .doc-back-text {
    display: none;
  }

  /* Five controls share the row: logo, theme toggle, language, menu/back */
  .navbar .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-logo {
    gap: 10px;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .hamburger-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  /* Logo mark only: leaves room for theme toggle, language switcher and menu */
  .brand-name {
    display: none;
  }

  .brand-logo {
    gap: 8px;
    font-size: 1.15rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .navbar .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}
