/* ===== The Three Digital Service – SakuraHost-inspired interface ===== */
:root {
  --bg: #070b14;
  --bg-alt: #0c1220;
  --surface: #121a2b;
  --surface-2: #182234;
  --border: rgba(148, 163, 184, 0.12);
  --primary: #0060fe;
  --primary-hover: #0050d6;
  --teal: #14b8a6;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #60a5fa; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ===== Intro ===== */
.intro-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: #070b14;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.intro-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-video {
  width: min(680px, 92vw);
  border-radius: 12px;
  box-shadow: 0 0 80px rgba(0, 96, 254, 0.2);
}
.skip-intro {
  position: absolute; bottom: 28px; right: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 0.85rem; cursor: pointer; backdrop-filter: blur(8px);
}
.skip-intro:hover { background: rgba(255,255,255,0.15); }

/* ===== Top bar ===== */
.top-bar {
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.top-bar-text { color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
}
.top-bar-link { color: var(--text-muted); font-weight: 500; }
.top-bar-link:hover { color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.72);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.logo-link { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-tag { font-size: 0.65rem; color: var(--text-dim); }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
}
.main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(0, 96, 254, 0.35);
}
.btn-primary:hover {
  background: var(--primary-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 96, 254, 0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }
.btn-block:last-child { margin-bottom: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 0%, rgba(0, 96, 254, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(20, 184, 166, 0.08), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 22px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 3.9rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #14b8a6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 540px; margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 36px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.5rem; font-weight: 700; }
.stat span { font-size: 0.8rem; color: var(--text-dim); }

/* ===== Reliability video showcase ===== */
.reliability-showcase {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,18,35,.55), rgba(5,12,25,.95));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reliability-showcase::before {
  content: ""; position: absolute; width: 420px; height: 420px;
  right: -140px; top: -180px; border-radius: 50%;
  background: rgba(0, 96, 254, .14); filter: blur(60px);
}
.reliability-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center;
}
.reliability-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05;
  letter-spacing: -.04em; margin: 8px 0 18px;
}
.reliability-copy h2 span {
  background: linear-gradient(135deg,#60a5fa,#14b8a6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reliability-copy > p { max-width: 560px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.reliability-points { margin-top: 26px; display: grid; gap: 14px; }
.reliability-points > div { display:flex; gap:14px; align-items:flex-start; }
.reliability-points i {
  width: 38px; height: 38px; flex: 0 0 38px; display:grid; place-items:center;
  border-radius: 12px; background: rgba(0,96,254,.12); color:#60a5fa;
  border:1px solid rgba(96,165,250,.16);
}
.reliability-points strong { display:block; font-size:.92rem; margin-bottom:2px; }
.reliability-points small { color:var(--text-dim); font-size:.78rem; }
.reliability-video-card {
  position:relative; min-height: 340px; overflow:hidden; border-radius:26px;
  border:1px solid rgba(96,165,250,.24); background:#040a15;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.typing-video { width:100%; height:100%; min-height:340px; display:block; object-fit:cover; }
.video-overlay {
  position:absolute; left:18px; bottom:18px; padding:9px 13px; border-radius:999px;
  background:rgba(4,10,20,.72); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.1); color:#e8f1ff; font-size:.78rem;
}
.live-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 10px #22c55e; animation:livePulse 1.5s infinite; }
@keyframes livePulse { 50% { opacity:.35; transform:scale(.75); } }
@media (max-width: 850px) {
  .reliability-grid { grid-template-columns:1fr; gap:30px; }
  .reliability-video-card, .typing-video { min-height:260px; }
}

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 52px; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.section-desc { margin-top: 10px; color: var(--text-muted); max-width: 520px; }

/* Cards */
.cards-grid { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(0, 96, 254, 0.35);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-muted); }
.card-num, .step-num {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--primary); margin-bottom: 10px;
}
.step-num { font-size: 1.4rem; color: rgba(0, 96, 254, 0.4); }

.service-icon { font-size: 1.6rem; margin-bottom: 12px; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--text-muted); }
.about-text strong { color: var(--text); }
.callout {
  margin-top: 20px; padding: 16px 20px;
  background: rgba(0, 96, 254, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
}
.callout em { font-style: normal; color: #60a5fa; font-weight: 500; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.info-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 18px; }
.info-list { list-style: none; }
.info-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list span {
  font-size: 0.7rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.info-list strong { font-size: 0.92rem; font-weight: 500; }

/* Principle */
.principle {
  text-align: center; margin-top: 36px;
  font-size: 1rem; color: var(--teal); font-weight: 500;
  max-width: 600px; margin-inline: auto;
  padding: 18px 24px;
  background: rgba(20, 184, 166, 0.07);
  border-radius: var(--radius);
}

/* Clients */
.clients-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.client-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600; font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.client-pill:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}

/* Brand */
.tagline-large {
  font-size: 1.35rem !important;
  font-weight: 700; color: var(--teal) !important;
}

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.contact-row { margin-bottom: 22px; }
.contact-row .label {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 4px;
}
.contact-row a, .contact-row p {
  font-size: 1.05rem; font-weight: 500; color: var(--text);
}
.contact-row a:hover { color: var(--primary); }

.cta-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(0, 96, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
}
.cta-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cta-card p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }

/* Footer */
.site-footer {
  padding: 44px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand { margin-bottom: 10px; }
.footer-brand strong { display: block; font-size: 1.05rem; }
.footer-brand span { font-size: 0.8rem; color: var(--teal); }
.footer-line {
  font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 14px; max-width: 540px; margin-inline: auto;
}
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* Floating WhatsApp — single button, bottom-right only */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; left: auto !important; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-wa.left { display: none !important; } /* kill any leftover left float */
.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}
@media (max-width: 900px) {
  .float-wa { right: 14px; bottom: 22px; }
}

/* Homepage reviews block */
.home-reviews { padding-top: 40px; }
.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.home-review-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.home-review-stars { color: #fbbf24; font-size: 1.05rem; letter-spacing: 2px; }
.home-review-card p {
  color: var(--text-muted, #a9b8ca);
  line-height: 1.7;
  font-size: .92rem;
  flex: 1;
}
.home-review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.home-review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff;
  flex-shrink: 0;
}
.home-review-photo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(56,189,248,.35);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.home-review-meta strong { display: block; font-size: .9rem; }
.home-review-meta small { color: #71849d; font-size: .72rem; }
.home-reviews-cta { text-align: center; margin-top: 40px; }

@media (max-width: 900px) {
  .home-reviews-grid { grid-template-columns: 1fr; gap: 18px; }
  .float-wa.right { right: 14px; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); flex-direction: column;
    padding: 16px 20px; gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 20px; }
  .top-bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ===== Work showcase slider (SakuraHost-style) ===== */
.showcase { padding-top: 40px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin-inline: auto; }

.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 36px 32px;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.92) 45%);
  z-index: 2;
}
.slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.slide-caption h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.slide-caption p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(7, 11, 20, 0.6);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.slider-btn:hover {
  background: rgba(0, 96, 254, 0.8);
  border-color: var(--primary);
}
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dots button.active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .slider { aspect-ratio: 4 / 3; max-height: 380px; }
  .slide-caption { padding: 36px 20px 28px; }
  .slider-btn { width: 36px; height: 36px; font-size: 1.3rem; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
}

/* ===== Light theme ===== */
html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] .top-bar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--border);
}
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
}
html[data-theme="light"] .intro-overlay { background: #f4f6fb; }
html[data-theme="light"] .slide-caption {
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.88) 45%);
}
html[data-theme="light"] .slide-caption h3,
html[data-theme="light"] .slide-caption p { color: #f8fafc; }
html[data-theme="light"] .hero-glow {
  background:
    radial-gradient(ellipse 70% 50% at 60% 0%, rgba(0, 96, 254, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(20, 184, 166, 0.08), transparent);
}
html[data-theme="light"] .float-wa { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35); }

/* Lang / Theme toggles */
.top-bar-actions {
  display: flex; align-items: center; gap: 12px;
}
.lang-toggle, .theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover, .theme-toggle:hover {
  color: var(--text);
  background: rgba(255,255,255,0.12);
}
html[data-theme="light"] .lang-toggle,
html[data-theme="light"] .theme-toggle {
  background: rgba(15, 23, 42, 0.05);
}
.theme-toggle { width: 34px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.lang-alt { opacity: 0.5; }

/* Service FA icons */
.service-icon-fa {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0, 96, 254, 0.12);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ===== AI Chat ===== */
.chat-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 460px;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #fff;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.9; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-alt);
}
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.msg.ai .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-suggestions {
  display: flex; gap: 8px; padding: 10px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-suggestions button {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.chat-suggestions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chat-form {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-form input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
}
.chat-form input:focus { border-color: var(--primary); }
.chat-form .btn { border-radius: 50%; width: 42px; height: 42px; padding: 0; }

/* ===== Workers Portal ===== */
.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.portal-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}
.portal-search i { color: var(--text-dim); font-size: 0.9rem; }
.portal-search input {
  border: none;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 0.9rem;
  outline: none;
}
.portal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.worker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.worker-card:hover {
  border-color: rgba(0, 96, 254, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.worker-card.hidden { display: none; }

.worker-id-frame {
  background: var(--bg-alt);
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.worker-id-frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.worker-meta { padding: 20px 22px 22px; }
.worker-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 96, 254, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.worker-meta h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.worker-aka {
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 4px;
}
.worker-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.worker-no {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.worker-no i { margin-right: 6px; color: var(--primary); }
.worker-focus {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.worker-focus li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.worker-focus li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.portal-note {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.portal-note i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 2px;
}
.portal-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-toolbar { flex-direction: column; align-items: stretch; }
  .portal-search { max-width: none; }
}

.worker-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.worker-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.worker-contacts a:hover { color: var(--primary); }
.worker-contacts .fa-whatsapp { color: #25d366; }
.worker-contacts .fa-telegram { color: #2AABEE; }
.worker-contacts .fa-instagram { color: #e4405f; }

/* ===== Advanced modern layers ===== */
.hero {
  position: relative;
  isolation: isolate;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1600&q=80') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
  filter: saturate(0.7) brightness(0.55);
}
html[data-theme="light"] .hero-bg-photo {
  opacity: 0.12;
  filter: saturate(0.8) brightness(1.05);
}
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.floating-orbs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: floatOrb 12s ease-in-out infinite;
}
.orb-1 {
  width: 280px; height: 280px;
  background: #0060fe;
  top: 10%; left: -5%;
}
.orb-2 {
  width: 200px; height: 200px;
  background: #14b8a6;
  bottom: 15%; right: 5%;
  animation-delay: -4s;
}
.orb-3 {
  width: 160px; height: 160px;
  background: #6366f1;
  top: 40%; right: 25%;
  animation-delay: -7s;
  opacity: 0.25;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Tech marquee strip */
.tech-strip {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 14px 0;
  position: relative;
}
.tech-strip::before,
.tech-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.tech-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.tech-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}
.tech-strip-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.tech-strip-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.tech-strip-track i { color: var(--primary); font-size: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section photo backgrounds */
.section-photo-coding,
.section-photo-ai,
.section-photo-contact {
  position: relative;
  isolation: isolate;
}
.section-photo-coding {
  background:
    linear-gradient(180deg, var(--bg-alt), transparent 30%),
    url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1400&q=75') center/cover fixed;
}
.section-photo-ai {
  background:
    url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1400&q=75') center/cover fixed;
}
.section-photo-contact {
  background:
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1400&q=75') center/cover fixed;
}
.section-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.88);
  z-index: 0;
}
html[data-theme="light"] .section-photo-overlay {
  background: rgba(244, 246, 251, 0.9);
}
.section-relative { position: relative; z-index: 1; }

/* Glass upgrade for cards in photo sections */
.section-photo-coding .card,
.section-photo-ai .chat-box,
.section-photo-contact .cta-card,
.section-photo-contact .contact-details {
  backdrop-filter: blur(12px);
  background: rgba(18, 26, 43, 0.75);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="light"] .section-photo-coding .card,
html[data-theme="light"] .section-photo-ai .chat-box,
html[data-theme="light"] .section-photo-contact .cta-card {
  background: rgba(255, 255, 255, 0.85);
}

/* Timeline process */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  opacity: 0.35;
  z-index: 0;
}
.timeline-item {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 96, 254, 0.4);
}
.tl-num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 96, 254, 0.35);
}
.timeline-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated counter polish */
.stat strong {
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .stat strong {
  background: linear-gradient(135deg, #0f172a, #475569);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Code corner accent on info card */
.info-card {
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: '{ }';
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-family: ui-monospace, monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.08;
  pointer-events: none;
}

/* Shine on primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 120%; }

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .timeline::before { display: none; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero-bg-photo { opacity: 0.12; }
  .section-photo-coding,
  .section-photo-ai,
  .section-photo-contact {
    background-attachment: scroll;
  }
}


/* ===== 2026 modern experience layer ===== */
:root { --purple:#7c3aed; --cyan:#22d3ee; --glass:rgba(10,18,35,.62); }
.btn-portal { background:linear-gradient(135deg,#0ea5e9,#7c3aed); color:#fff; box-shadow:0 8px 28px rgba(124,58,237,.25); }
.btn-portal:hover { color:#fff; transform:translateY(-2px); filter:brightness(1.08); }
.hero { isolation:isolate; min-height:720px; display:flex; align-items:center; }
.hero::before { content:""; position:absolute; inset:0; z-index:-3; background:linear-gradient(rgba(4,8,18,.52),rgba(4,8,18,.84)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=2200&q=85') center/cover; opacity:.72; }
.hero::after { content:"01  const future = build();\A02  if (future.ready) launch();\A03  connect(people, technology);\A04  // linking your future today\A05  deploy --secure --fast\A06  npm run innovation\A07  <THE3/>\A08  system.online = true;"; white-space:pre; position:absolute; right:4%; top:14%; width:min(470px,42vw); height:410px; padding:26px; z-index:-1; font:500 14px/2.15 ui-monospace,SFMono-Regular,Menlo,monospace; color:rgba(125,211,252,.72); background:linear-gradient(145deg,rgba(4,10,22,.82),rgba(12,24,45,.45)); border:1px solid rgba(96,165,250,.18); border-radius:24px; box-shadow:0 30px 80px rgba(0,0,0,.4),inset 0 0 50px rgba(14,165,233,.04); animation:codeFloat 7s ease-in-out infinite; }
.hero-bg-photo { opacity:.15; }
@keyframes codeFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.portal-gateway { display:grid; grid-template-columns:auto 1fr auto; gap:22px; align-items:center; padding:28px; margin:0 0 42px; border:1px solid rgba(96,165,250,.2); border-radius:24px; background:linear-gradient(135deg,rgba(18,31,55,.85),rgba(12,18,34,.7)); box-shadow:0 24px 70px rgba(0,0,0,.24); backdrop-filter:blur(16px); }
.portal-gateway-icon { width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#0ea5e9,#7c3aed);font-size:1.3rem;box-shadow:0 12px 30px rgba(124,58,237,.3); }
.gateway-kicker { font-size:.7rem; letter-spacing:.12em; color:#67e8f9; font-weight:700; }
.portal-gateway h3 { margin:4px 0 5px; font-size:1.3rem; }
.portal-gateway p { color:var(--text-muted); max-width:650px; }
.gateway-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.text-link { color:#93c5fd; font-size:.85rem; font-weight:600; }
.text-link:hover { color:#fff; }
@media(max-width:850px){ .hero::after{right:-10%;opacity:.45;width:80vw}.portal-gateway{grid-template-columns:auto 1fr}.gateway-actions{grid-column:1/-1;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.header-actions .btn-ghost{display:none;} }
@media(max-width:560px){.hero{min-height:650px;padding:80px 0}.hero::after{display:none}.portal-gateway{grid-template-columns:1fr}.portal-gateway-icon{width:50px;height:50px}.gateway-actions{grid-column:auto}.gateway-actions .btn{width:100%}}

/* Company logo */
.logo-image-wrap{overflow:hidden;background:#d7eef2!important;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:2px}
.logo-image-wrap .company-logo{width:58px;height:40px;object-fit:contain;object-position:center;border-radius:9px;display:block}
.footer-logo{width:74px;height:48px;object-fit:contain;object-position:center;border-radius:10px;display:block;margin-bottom:10px}
.contact-row a{display:inline-flex;align-items:center;gap:7px}

/* Cookie consent */
#cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:200;padding:14px 16px;background:#0b1524f2;border-top:1px solid #ffffff14;backdrop-filter:blur(18px);transform:translateY(0);transition:transform .3s ease,opacity .3s ease}
#cookie-bar.hide{transform:translateY(110%);opacity:0;pointer-events:none}
.cookie-inner{width:min(960px,100%);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cookie-inner p{margin:0;color:#c9d6e8;font-size:.82rem;line-height:1.55;max-width:640px}
.cookie-actions{display:flex;gap:8px;flex-shrink:0}
.cookie-btn{border:1px solid #ffffff22;background:#ffffff0c;color:#eef6ff;border-radius:999px;padding:9px 16px;font-size:.78rem;font-weight:700;cursor:pointer}
.cookie-btn.primary{background:linear-gradient(135deg,#0ea5e9,#6366f1);border-color:transparent}
html[data-theme="light"] #cookie-bar{background:#fffffff2;border-top-color:#0f172a14}
html[data-theme="light"] .cookie-inner p{color:#334155}
html[data-theme="light"] .cookie-btn{border-color:#0f172a18;background:#f1f5f9;color:#0f172a}
html[data-theme="light"] .cookie-btn.primary{background:linear-gradient(135deg,#0284c7,#7c3aed);color:#fff}
