/* ---------- Base ---------- */
:root {
  --bg: #0b0f1a;
  --bg-alt: #11172a;
  --surface: #161d33;
  --text: #e7ecf5;
  --muted: #9aa4bf;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 26, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.45);
}

.brand-accent { color: var(--accent-2); margin-left: 2px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.lang-btn svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.lang-btn:hover {
  transform: scale(1.18);
  border-color: var(--accent-2);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.lang-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7);
  transform: scale(1.1);
  pointer-events: none;
}

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 100;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.menu-toggle:hover {
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.02);
}

.menu-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, top 0.2s, bottom 0.2s;
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  bottom: -6px;
}

/* Active hamburger state */
.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ---------- Overlay ---------- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.no-scroll {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(800px 400px at 0% 20%, rgba(34, 211, 238, 0.18), transparent 60%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0f1a;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }

.btn-visit {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  transition: all 0.2s ease;
}

.btn-visit:hover {
  border-color: var(--accent-2);
  color: var(--text);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
  transform: translateY(-2px);
}

.btn-visit svg {
  transition: transform 0.2s ease;
}

.btn-visit:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: rgba(17, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
}
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Two col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col p { color: var(--muted); }

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stats strong {
  display: block;
  font-size: 1rem;
}
.stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(11, 15, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    padding: 80px 24px 40px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 95;
  }

  nav.open {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .lang-switcher {
    margin-top: auto;
    width: 100%;
    justify-content: flex-start;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 12px;
  }

  .lang-btn {
    width: 26px;
    height: 26px;
  }
}

/* ---------- Case study ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(400px 200px at 30% 20%, rgba(124, 92, 255, 0.45), transparent 60%),
    radial-gradient(400px 200px at 70% 80%, rgba(34, 211, 238, 0.35), transparent 60%),
    #11172a;
  min-height: 220px;
  padding: 24px;
}
.case-logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: initial;
}

.logo-tuto {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.logo-img {
  height: 3.2rem;
  width: auto;
  margin: 0 -0.28rem;
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.3));
}

.logo-talent {
  color: #FF8A00;
  text-shadow: 0 0 20px rgba(255, 138, 0, 0.2);
}
.case-body {
  padding: 28px 28px 28px 0;
}
.case-body h3 {
  font-size: 1.35rem;
  margin: 8px 0 14px;
}
.case-body p {
  color: var(--muted);
  margin: 0 0 14px;
}
.case-points {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.case-points li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
}
.case-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.case-points strong { color: var(--text); }

@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; }
  .case-body { padding: 0 24px 28px; }
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}
.contact p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(17, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner p { margin: 0; }

/* ---------- Custom Scrollbars ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface);
  border: 2px solid var(--bg);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Interactive Mouse Glow Effect ---------- */
.card, .case, .planner-card {
  position: relative;
  overflow: hidden;
}
.card::before, .case::before, .planner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(34, 211, 238, 0.08),
    transparent 40%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before, .case:hover::before, .planner-card:hover::before {
  opacity: 1;
}
.card > *, .case > *, .planner-card > * {
  position: relative;
  z-index: 1;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

/* ---------- Project Planner ---------- */
.planner-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-top: 40px;
}
.planner-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.planner-step {
  display: flex;
  flex-direction: column;
}
.planner-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.planner-step-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f1a;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.planner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.planner-card-icon {
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}
.planner-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--text);
  transform: translateY(-2px);
}
.planner-card:hover .planner-card-icon {
  transform: scale(1.15);
}
.planner-card.selected {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
  color: var(--text);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.15);
}
.planner-card.selected .planner-card-icon {
  transform: scale(1.1);
}
.planner-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.planner-result h3 {
  margin: 0;
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.architecture-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(11, 15, 26, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 200px;
  justify-content: center;
}
.arch-node {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted);
}
.arch-node.active-node {
  border-color: var(--accent-2);
  color: var(--text);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.12);
  font-weight: 600;
  transform: scale(1.02);
}
.arch-connector {
  height: 12px;
  width: 2px;
  background: var(--border);
  margin: 0 auto;
}
.planner-summary-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.planner-summary-text strong {
  color: var(--text);
}
.btn-planner-submit {
  margin-top: auto;
  width: 100%;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-planner-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.45);
}
@media (max-width: 820px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }
  .planner-result {
    position: static;
  }
}
