﻿/* =========================================================
   DIGITAL LABIRINTO - FOLHA DE ESTILOS PRINCIPAL
   Arquivo separado do index.html para facilitar edicao manual.
   Cada bloco abaixo corresponde a uma area visual da pagina.
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
  .font-display { font-family: 'Space Grotesk', sans-serif; }
  .font-sans { font-family: 'Inter', sans-serif; }
  .font-mono { font-family: 'JetBrains Mono', monospace; }

  :root {
    --bg-base: #050505;
    --bg-mid: #0a0a0a;
    --bg-card: #0f0f0f;
    --border: rgba(255,255,255,0.08);
    --border-mid: #222;
    --text-muted: #888;
    --text-dim: #555;
    --accent: #ffffff;
  }

  html, body { background: var(--bg-base); color: #fff; overflow-x: hidden; }

  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: #050505; }
  ::-webkit-scrollbar-thumb { background: #333; }
  ::-webkit-scrollbar-thumb:hover { background: #fff; }

  .btn-angular { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
  .card-angular { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }

  .bg-grid {
    background-size: 40px 40px;
    background-image:
      linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  }

  .marquee-container { overflow: hidden; white-space: nowrap; width: 100%; display: flex; }
  .marquee-content { display: flex; animation: marquee 35s linear infinite; }
  .marquee-content::after { content: attr(data-marquee); display: flex; padding-left: 3rem; }
  @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

  @keyframes scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
  @keyframes pulse-glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
  @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }

  .hover-layer { transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1); }
  .group:hover .hover-layer { transform: translateY(0) !important; }

  /* BLOCO: MENU / NAVEGACAO PRINCIPAL */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-mid);
    padding: 0 3rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  @media (max-width: 768px) { nav { padding: 0 1.5rem; } }

  .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem; font-weight: 500;
    letter-spacing: -0.02em; text-transform: uppercase;
    color: #fff; text-decoration: none;
    line-height: 1;
  }
  .nav-logo span { color: var(--text-muted); }

  .nav-links { display: flex; gap: 2.5rem; }
  .nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: var(--text-muted);
    text-decoration: none; text-transform: uppercase;
    letter-spacing: 0.12em; transition: color 0.2s;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    height: 1px; width: 0; background: #fff;
    transition: width 0.2s;
  }
  .nav-links a:hover { color: #fff; }
  .nav-links a:hover::after { width: 100%; }
  @media (max-width: 1024px) { .nav-links { display: none; } }

  .nav-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.12em;
    background: #fff; color: #000; border: 1px solid #fff;
    padding: 0.6rem 1.5rem; text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: color 0.3s;
  }
  .nav-cta .hover-layer {
    position: absolute; inset: 0;
    background: #050505;
    transform: translateY(101%);
    z-index: 0;
  }
  .nav-cta span { position: relative; z-index: 1; transition: color 0.3s; }
  .nav-cta:hover span { color: #fff; }
  .nav-cta:hover .hover-layer { transform: translateY(0); }

  /* BLOCO: HERO / PRIMEIRA DOBRA DO SITE */
  header {
    min-height: 90vh;
    display: flex; align-items: center;
    padding: 12rem 3rem 5rem;
    max-width: 90rem; margin: 0 auto;
    position: relative;
    border-bottom: 1px solid var(--border);
  }
  @media (max-width: 768px) { header { padding: 8rem 1.5rem 4rem; } }

  #hero-gl {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.5; z-index: 0;
  }
  .hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(5,5,5,0.8) 70%, #050505);
    z-index: 1;
  }

  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; position: relative; z-index: 2; width: 100%; }
  @media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; } }

  .hero-badge {
    display: inline-flex; flex-wrap: wrap;
    align-items: center; gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.12em;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
  }
  .hero-badge .active { color: #fff; display: flex; align-items: center; gap: 0.5rem; }
  .hero-badge .dot { width: 6px; height: 6px; background: #fff; position: relative; }
  .hero-badge .dot::after {
    content: ''; position: absolute; inset: 0;
    background: #fff; animation: pulse-glow 2s ease-in-out infinite;
  }
  .hero-badge .divider { width: 1px; height: 12px; background: rgba(255,255,255,0.2); }

  h1.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500; line-height: 0.85;
    text-transform: uppercase; letter-spacing: -0.02em;
    color: #fff; margin-bottom: 2rem;
  }
  h1.hero-title .outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    color: transparent;
  }

  .hero-desc {
    color: #a1a1aa; font-size: 1rem; line-height: 1.7;
    max-width: 50ch; margin-bottom: 2.5rem;
    border-left: 2px solid rgba(255,255,255,0.2);
    padding-left: 1.5rem;
  }
  @media (min-width: 768px) { .hero-desc { font-size: 1.1rem; } }

  .hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }

  .btn-primary {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; color: #000;
    padding: 1.25rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em;
    text-decoration: none; position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    border: 1px solid #fff;
    transition: color 0.3s;
  }
  .btn-primary .hover-layer {
    position: absolute; inset: 0; background: #111;
    transform: translateY(101%); z-index: 0;
    border: 1px solid #fff;
  }
  .btn-primary span, .btn-primary iconify-icon { position: relative; z-index: 1; transition: color 0.3s; }
  .btn-primary:hover span, .btn-primary:hover iconify-icon { color: #fff; }
  .btn-primary:hover .hover-layer { transform: translateY(0); }
  .btn-primary iconify-icon { transition: transform 0.3s; }
  .btn-primary:hover iconify-icon { transform: translateX(6px); }

  .btn-ghost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: var(--text-muted);
    text-decoration: none; text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px; transition: all 0.2s;
  }
  .btn-ghost:hover { color: #fff; border-color: #fff; }

  .hero-tags { display: flex; flex-wrap: wrap; gap: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
  .hero-tags span { display: flex; align-items: center; gap: 0.5rem; }
  .hero-tags iconify-icon { color: #fff; }

  .hero-card {
    background: var(--bg-mid); border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem; position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  }
  .hero-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 4rem; height: 4rem; background: #111;
    transform: translate(50%, -50%) rotate(45deg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.5s;
  }
  .hero-card:hover::before { background: #fff; }

  .status-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; margin-bottom: 1rem; }
  .status-label .online { color: #fff; }

  .status-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
  .status-list li { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; color: #fff; letter-spacing: 0.08em; }
  .status-list li .key { color: var(--text-dim); }
  .status-list .pulse { animation: pulse-glow 2s ease-in-out infinite; }

  /* HERO: preview 3D do robo no lado direito */
  .hero-robot-panel {
    width: min(100%, 560px);
    height: 520px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(5,5,5,0.76);
    box-shadow:
      0 30px 80px rgba(0,0,0,0.65),
      0 0 0 1px rgba(255,255,255,0.03) inset,
      0 0 70px rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
    transform: perspective(1000px) rotateX(3deg) rotateY(-4deg);
    transition: transform 0.6s ease, border-color 0.3s ease;
  }
  .hero-robot-panel:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    border-color: rgba(255,255,255,0.22);
  }
  .hero-robot-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 28%, transparent 72%, rgba(255,255,255,0.12));
    opacity: 0.45;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    mask-composite: exclude;
    -webkit-mask-composite: xor;
  }
  .robot-window-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: rgba(255,255,255,0.035);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
  }
  .robot-window-dots {
    display: flex;
    gap: 0.45rem;
  }
  .robot-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.38;
  }
  .robot-window-dots span:nth-child(1) { background: #ef4444; }
  .robot-window-dots span:nth-child(2) { background: #eab308; }
  .robot-window-dots span:nth-child(3) { background: #22c55e; }
  .robot-window-title {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
  }
  .robot-stage {
    position: relative;
    height: calc(100% - 42px);
    overflow: hidden;
    background: #050505;
  }
  .robot-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
  }
  .robot-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(520px) rotateX(62deg) translateY(95px) scale(2.1);
    transform-origin: bottom center;
  }
  .robot-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
      radial-gradient(circle at 50% 35%, transparent 0 34%, rgba(5,5,5,0.18) 62%, rgba(5,5,5,0.72) 100%),
      linear-gradient(to bottom, rgba(5,5,5,0.05), rgba(5,5,5,0.45));
  }
  .robot-toolbar {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.55rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(13,13,13,0.82);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(16px);
  }
  .robot-toolbar button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: transparent;
    color: rgba(255,255,255,0.82);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .robot-toolbar button:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }
  .robot-toolbar button.active {
    color: #c084fc;
  }
  .robot-toolbar span {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
  }
  .robot-axis {
    position: absolute;
    left: 58%;
    top: 66%;
    z-index: 4;
    width: 0;
    height: 0;
    pointer-events: none;
  }
  .robot-axis span {
    position: absolute;
    left: 0;
    bottom: 0;
    transform-origin: bottom left;
  }
  .axis-y { width: 1px; height: 62px; background: #22c55e; }
  .axis-x { width: 70px; height: 1px; background: #ef4444; }
  .axis-z { width: 58px; height: 1px; background: #3b82f6; transform: rotate(-45deg); }
  .robot-cube {
    position: absolute;
    left: 49%;
    top: 63%;
    z-index: 4;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(168,85,247,0.7);
    background:
      radial-gradient(circle at 70% 20%, rgba(255,255,255,0.16), transparent 28%),
      rgba(126,34,206,0.22);
    box-shadow: 0 0 36px rgba(168,85,247,0.18) inset, 0 0 28px rgba(168,85,247,0.12);
    backdrop-filter: blur(2px);
  }
  .robot-controls {
    position: absolute;
    left: 43%;
    bottom: 1.55rem;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(10,10,10,0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }
  .robot-controls button {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.9rem;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .robot-controls button.selected {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
  .robot-material {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 5;
    width: 158px;
    padding: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(12,12,12,0.82);
    box-shadow: 0 20px 50px rgba(0,0,0,0.42);
    backdrop-filter: blur(18px);
  }
  .material-head,
  .material-row div,
  .material-swatches {
    display: flex;
    align-items: center;
  }
  .material-head {
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .material-row {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    color: var(--text-muted);
  }
  .material-row div {
    justify-content: space-between;
    margin-bottom: 0.35rem;
  }
  .material-row strong {
    color: #bdbdbd;
    font-weight: 500;
  }
  .material-track {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
  }
  .material-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
  }
  .roughness {
    width: 42%;
    background: #a855f7;
  }
  .metalness {
    width: 80%;
    background: #f97316;
  }
  .material-swatches {
    gap: 0.5rem;
    padding-top: 0.3rem;
  }
  .material-swatches span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
  .material-swatches .purple { background: rgba(168,85,247,0.52); }
  .material-swatches .orange { background: rgba(249,115,22,0.55); }
  .material-swatches .add { background: rgba(255,255,255,0.08); }

  @media (max-width: 1180px) {
    .hero-robot-panel {
      height: 480px;
    }
    .robot-material {
      width: 142px;
      right: 0.75rem;
      bottom: 0.75rem;
      padding: 0.75rem;
    }
    .robot-controls {
      left: 39%;
      bottom: 1rem;
    }
    .robot-cube {
      width: 104px;
      height: 104px;
    }
  }

  /* BLOCO: FAIXA ANIMADA DE SERVICOS */
  .marquee-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 0;
    background: var(--bg-mid);
    color: var(--text-muted);
    position: relative; z-index: 20;
  }

  /* BLOCO: ESTILOS COMPARTILHADOS ENTRE SECOES */
  .section-container { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
  @media (min-width: 1024px) { .section-container { padding: 0 3rem; } }

  /* BLOCO: SOBRE / DESAFIO DO CLIENTE */
  .about-section { border-bottom: 1px solid var(--border); padding: 6rem 0; }
  .about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
  @media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

  .section-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
  .section-label iconify-icon { color: #fff; font-size: 1.1rem; }

  h2.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500; line-height: 0.9;
    text-transform: uppercase; letter-spacing: -0.02em;
    color: #fff; margin-bottom: 1.5rem;
  }
  h2.section-title .muted { color: var(--text-dim); }

  .about-desc { color: #a1a1aa; font-size: 0.875rem; line-height: 1.8; max-width: 45ch; }

  .about-panel {
    background: var(--bg-mid); border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 3rem; position: relative; overflow: hidden;
  }
  .about-panel .bg-grid { position: absolute; inset: 0; opacity: 0.2; pointer-events: none; }
  .about-panel .blur-orb {
    position: absolute; top: 0; right: 0;
    width: 8rem; height: 8rem; background: rgba(255,255,255,0.05);
    filter: blur(48px); border-radius: 50%;
    transform: translate(50%, -50%);
  }

  .panel-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #fff; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; position: relative; z-index: 1; }
  .panel-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 1; }
  .panel-list li { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1.5rem; }
  .panel-list li:last-child { border-bottom: none; padding-bottom: 0; }
  .panel-list .step { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #fff; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.5rem; }
  .panel-list .detail { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; line-height: 1.6; display: block; text-transform: none; }

  /* BLOCO: SERVICOS / CARDS DE CAPACIDADES */
  .services-section { border-bottom: 1px solid var(--border); padding: 8rem 0; position: relative; }
  .services-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 4rem; }
  .services-count { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; padding-bottom: 0.5rem; border-bottom: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center; gap: 0.5rem; }
  .services-count span { color: #fff; }

  .services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  @media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

  .service-card {
    background: var(--bg-mid); padding: 2rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
    transition: border-color 0.3s;
    position: relative; overflow: hidden;
    cursor: pointer;
  }
  .service-card:hover { border-color: rgba(255,255,255,0.4); }
  .service-card .scan-line {
    position: absolute; inset-x: 0; height: 1px; background: rgba(255,255,255,0.2);
    top: -1px; opacity: 0;
    transition: opacity 0.3s;
  }
  .service-card:hover .scan-line { opacity: 1; animation: scan 2s ease-in-out infinite; }

  .card-icon {
    width: 3rem; height: 3rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 3rem; color: #fff;
    font-size: 1.5rem; transition: all 0.3s;
  }
  .service-card:hover .card-icon { background: #fff; color: #000; }

  .card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; color: #fff; margin-bottom: 1rem; }
  .card-desc { color: var(--text-muted); font-size: 0.8rem; line-height: 1.7; margin-bottom: 3rem; }

  .card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #fff; text-transform: uppercase; letter-spacing: 0.12em; }
  .card-footer .label { color: var(--text-dim); transition: color 0.3s; }
  .service-card:hover .card-footer .label { color: #fff; }
  .card-footer iconify-icon { transition: transform 0.3s; font-size: 1.25rem; }
  .service-card:hover .card-footer iconify-icon { transform: translate(4px, -4px); }

  /* BLOCO: SIMULADOR / ESTIMATIVA DE ESCOPO */
  .sim-section { padding: 6rem 0; background: var(--bg-mid); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
  .sim-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 1; }
  .sim-sublabel { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
  .sim-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; color: #fff; margin-bottom: 1rem; }
  .sim-desc { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-muted); max-width: 50ch; margin: 0 auto; }

  .sim-terminal {
    position: relative; max-width: 960px; margin: 0 auto;
    border: 1px solid var(--border-mid); background: var(--bg-base);
    box-shadow: 0 0 80px rgba(0,0,0,0.6);
  }
  .terminal-bar { height: 2.5rem; background: var(--bg-mid); border-bottom: 1px solid var(--border-mid); display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; }
  .terminal-dots { display: flex; gap: 0.5rem; }
  .terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
  .terminal-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }

  .terminal-body { display: grid; grid-template-columns: 1fr; }
  @media (min-width: 768px) { .terminal-body { grid-template-columns: 4fr 8fr; height: 400px; } }

  .terminal-config { border-right: 1px solid var(--border-mid); padding: 1.5rem; background: var(--bg-base); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 2rem; }
  .config-heading { color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
  .config-item { display: flex; flex-direction: column; gap: 0.5rem; }
  .config-row { display: flex; justify-content: space-between; font-size: 0.6rem; }
  .config-row .val { color: #fff; }
  .track { height: 4px; background: var(--border-mid); position: relative; cursor: pointer; }
  .track-fill { position: absolute; inset-y: 0; left: 0; background: #fff; }
  .track-thumb { position: absolute; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; background: #fff; border: 2px solid #000; border-radius: 50%; }
  .check-row { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
  .check-box { width: 16px; height: 16px; border: 1px solid var(--text-dim); background: #fff; display: flex; align-items: center; justify-content: center; }
  .check-box iconify-icon { font-size: 0.6rem; color: #000; }
  .check-label { font-size: 0.6rem; text-transform: uppercase; color: #fff; }

  .terminal-output { padding: 1.5rem 2.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
  .terminal-output .bg-grid { position: absolute; inset: 0; opacity: 0.05; pointer-events: none; }
  .output-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; border-bottom: 1px solid var(--border-mid); padding-bottom: 1.5rem; position: relative; z-index: 1; }
  .output-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 500; color: #fff; margin-bottom: 0.25rem; }
  .output-subtitle { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
  .timeline-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-muted); text-align: right; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
  .timeline-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; color: #fff; text-align: right; }

  .output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; z-index: 1; }
  .output-card { border: 1px solid var(--border-mid); padding: 1.25rem; background: rgba(10,10,10,0.5); backdrop-filter: blur(8px); }
  .output-card-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--border-mid); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
  .output-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .output-card li { display: flex; align-items: center; gap: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #fff; }
  .output-card li span { width: 6px; height: 6px; background: #fff; flex-shrink: 0; }

  .output-action {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; cursor: pointer; transition: all 0.3s;
  }
  .output-action:hover { background: #fff; color: #000; }
  .output-action iconify-icon { font-size: 1.5rem; color: #fff; margin-bottom: 0.75rem; transition: color 0.3s; }
  .output-action:hover iconify-icon { color: #000; }
  .output-action .action-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

  /* BLOCO: DIFERENCIAIS / POR QUE ESCOLHER */
  .why-section { padding: 8rem 0; background: var(--bg-base); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
  .why-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
  @media (min-width: 1024px) { .why-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

  .why-badge { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #fff; border: 1px solid rgba(255,255,255,0.2); display: inline-block; padding: 0.25rem 0.75rem; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(255,255,255,0.05); }
  .why-subtitle { color: #a1a1aa; font-size: 0.8rem; margin-bottom: 2rem; max-width: 40ch; line-height: 1.7; }
  .why-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid #fff; padding-bottom: 2px; transition: all 0.2s; }
  .why-link:hover { color: var(--text-muted); border-color: var(--text-muted); }

  .perks-card {
    border: 1px solid rgba(255,255,255,0.1); background: var(--bg-mid);
    padding: 2.5rem; position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  }
  .perks-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 3rem; height: 3rem; background: #111;
    transform: translate(50%, -50%) rotate(45deg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.5s; z-index: 1;
  }
  .perks-card:hover::before { background: #fff; }

  .perk { border: 1px solid rgba(255,255,255,0.1); background: var(--bg-base); padding: 1.5rem; transition: border-color 0.2s; }
  .perk:nth-child(3) { background: #fff; }
  .perk:nth-child(3) h4 { color: #000; }
  .perk:nth-child(3) p { color: rgba(0,0,0,0.7); }
  .perk:hover { border-color: rgba(255,255,255,0.3); }
  .perk iconify-icon { font-size: 1.25rem; color: #fff; margin-bottom: 1rem; display: block; }
  .perk:nth-child(3) iconify-icon { color: #000; }
  .perk h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 500; color: #fff; text-transform: uppercase; margin-bottom: 0.5rem; }
  .perk p { font-size: 0.7rem; color: var(--text-muted); line-height: 1.6; }

  /* BLOCO: TRABALHOS / PROJETOS RECENTES */
  .work-section { background: var(--bg-base); border-bottom: 1px solid var(--border); padding: 6rem 0; }
  .work-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
  .work-header-left .label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1rem; }
  .work-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; color: #fff; line-height: 0.9; }
  .work-archive { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; padding-bottom: 2px; border-bottom: 1px solid #fff; transition: all 0.2s; }
  .work-archive:hover { color: var(--text-muted); border-color: var(--text-muted); }

  .projects-grid { display: grid; grid-template-columns: 1fr; border: 1px solid rgba(255,255,255,0.1); }
  @media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

  .project-card { display: block; padding: 2rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.1); transition: background 0.2s; }
  @media (min-width: 768px) { .project-card { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.1); } .project-card:last-child { border-right: none; } }
  .project-card:hover { background: #111; }
  .project-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
  .project-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 500; color: #fff; line-height: 1.3; margin-bottom: 1rem; }
  .project-card:hover .project-title { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }
  .project-stack { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
  .project-cta { display: flex; align-items: center; gap: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: #fff; text-transform: uppercase; letter-spacing: 0.12em; }
  .project-line { width: 1rem; height: 1px; background: #fff; transition: width 0.3s; }
  .project-card:hover .project-line { width: 2rem; }

  /* BLOCO: CTA / CHAMADA PARA CONTATO */
  .cta-section { background: var(--bg-base); padding: 8rem 0; position: relative; overflow: hidden; border-top: 1px solid var(--border); }
  .cta-bg { position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at top, rgba(255,255,255,0.05) 0%, transparent 50%); pointer-events: none; z-index: 0; }
  .cta-inner { max-width: 48rem; width: 100%; margin: 0 auto; padding: 0 1.5rem; text-align: center; position: relative; z-index: 1; }
  .cta-badge { display: inline-flex; align-items: center; gap: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--border-mid); padding: 0.5rem 1rem; background: var(--bg-mid); }
  .cta-badge .dot { width: 8px; height: 8px; background: #fff; animation: pulse-glow 2s ease-in-out infinite; }
  .cta-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 500; text-transform: uppercase; line-height: 0.9; letter-spacing: 0; margin-bottom: 1.5rem; color: #fff; max-width: 100%; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
  .cta-title span { color: var(--text-muted); display: inline-block; max-width: 100%; }
.cta-mobile-break { display: none; }
  .cta-desc { color: #a1a1aa; font-size: 0.875rem; line-height: 1.7; margin-bottom: 3rem; max-width: 50ch; margin-left: auto; margin-right: auto; }
  .cta-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
  .btn-cta-primary {
    background: #fff; color: #000; padding: 1.25rem 2.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.75rem;
    border: 1px solid #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    position: relative; overflow: hidden; transition: color 0.3s;
  }
  .btn-cta-primary .hover-layer { position: absolute; inset: 0; background: transparent; border: 1px solid #fff; transform: translateY(101%); z-index: 0; transition: background 0.3s, transform 0.4s cubic-bezier(0.87,0,0.13,1); }
  .btn-cta-primary span, .btn-cta-primary iconify-icon { position: relative; z-index: 1; }
  .btn-cta-primary:hover { color: #fff; }
  .btn-cta-primary:hover .hover-layer { transform: translateY(0); background: #111; }
  .cta-fine { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4rem; max-width: 55ch; margin-left: auto; margin-right: auto; border-top: 1px solid var(--border-mid); padding-top: 1.5rem; }

  /* BLOCO: RODAPE / LINKS FINAIS */
  footer { background: var(--bg-base); border-top: 1px solid var(--border-mid); padding: 3rem; z-index: 10; position: relative; }
  .footer-inner { max-width: 90rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
  @media (min-width: 768px) { .footer-brand { align-items: flex-start; } }
  .footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; color: #fff; }
  .footer-tagline { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
  .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .footer-nav a { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.2s; }
  .footer-nav a:hover { color: #fff; }
  .footer-socials { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
  .footer-socials a {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    color: #000;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .footer-socials a:hover {
    color: #fff;
    background: #000;
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255,255,255,0.08), 0 18px 40px rgba(0,0,0,0.45);
  }
  .footer-socials iconify-icon { font-size: 1.15rem; }
  .footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
/* =========================
   AJUSTES EXTRAIDOS DO HTML
   Classes criadas para remover estilos inline do index.html.
   Edite aqui quando quiser ajustar detalhes visuais pequenos.
   ========================= */
.hero-shell {
  background: #050505;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.hero-card {
  width: 100%;
}

.icon-stroke {
  stroke-width: 1.5;
}

.icon-nav {
  font-size: 0.875rem;
}

.icon-button-lg {
  font-size: 1.25rem;
}

.icon-cta {
  font-size: 1.1rem;
}

.icon-check {
  font-size: 0.7rem;
  color: #000;
}

.marquee-content {
  align-items: center;
  gap: 3rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.marquee-item.highlight {
  color: #fff;
}

.marquee-dot {
  color: #555;
}

.title-narrow {
  max-width: 40ch;
}

.config-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-row label {
  font-size: 0.6rem;
}

.fill-50 {
  width: 50%;
}

.fill-75 {
  width: 75%;
}

.thumb-50 {
  left: 50%;
}

.thumb-75 {
  left: 75%;
}

.output-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.why-copy {
  position: relative;
  z-index: 1;
}

.footer-link-active {
  color: #fff;
}

/* =========================
   AJUSTE DE LEGIBILIDADE
   Aumenta textos pequenos, paragrafos e textos em movimento.
   Edite este bloco se quiser deixar tudo ainda maior ou menor.
   ========================= */
.nav-links a,
.nav-cta,
.btn-primary,
.btn-ghost,
.services-count,
.sim-sublabel,
.why-link,
.work-archive,
.footer-nav a {
  font-size: 0.82rem;
}

.hero-badge,
.hero-tags,
.section-label,
.panel-label,
.card-footer,
.output-action .action-label,
.why-badge,
.work-header-left .label,
.cta-badge {
  font-size: 0.78rem;
}

.marquee-content {
  font-size: 0.82rem;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.8;
}

.about-desc,
.cta-desc {
  font-size: 1rem;
  line-height: 1.85;
}

.card-desc,
.sim-desc,
.why-subtitle,
.perk p,
.project-stack {
  font-size: 0.95rem;
  line-height: 1.8;
}

.panel-list .step,
.panel-list .detail,
.terminal-config,
.output-card li {
  font-size: 0.82rem;
}

.terminal-label,
.config-row,
.check-label,
.output-subtitle,
.timeline-label,
.output-card-label,
.project-tag,
.project-cta,
.cta-fine,
.footer-tagline,
.footer-copy {
  font-size: 0.72rem;
}

.robot-window-title,
.material-head,
.material-row,
.robot-controls button {
  font-size: 0.72rem;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.18rem;
  }
}

/* =========================
   RESPONSIVO GERAL
   Ajustes para tablet e celulares sem alterar a experiencia desktop.
   ========================= */
@media (max-width: 1023px) {
  header {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .hero-grid {
    gap: 3.5rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-card-wrap {
    width: 100%;
  }

  .hero-robot-panel {
    width: min(100%, 720px);
    height: 460px;
    transform: none;
  }

  .hero-robot-panel:hover {
    transform: none;
  }

  .terminal-body {
    height: auto;
  }

  .terminal-config {
    border-right: 0;
    border-bottom: 1px solid var(--border-mid);
  }

  .output-grid,
  .perks-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav {
    height: 60px;
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.68rem;
  }

  header {
    padding: 7rem 1rem 3.5rem;
  }

  h1.hero-title {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
    line-height: 0.9;
  }

  .hero-badge {
    gap: 0.75rem;
  }

  .hero-badge .divider {
    display: none;
  }

  .hero-desc {
    max-width: none;
    padding-left: 1rem;
  }

  .hero-btns {
    align-items: stretch;
    gap: 1rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.15rem 1.2rem;
  }

  .btn-ghost {
    width: fit-content;
  }

  .hero-tags {
    gap: 0.75rem;
  }

  .hero-robot-panel {
    height: 390px;
    border-radius: 12px;
  }

  .robot-window-bar {
    height: 38px;
    padding: 0 0.8rem;
  }

  .robot-stage {
    height: calc(100% - 38px);
  }

  .robot-stage::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 52%;
    height: 72px;
    pointer-events: none;
    background:
      linear-gradient(to left, #050505 0%, rgba(5,5,5,0.98) 60%, rgba(5,5,5,0) 100%),
      linear-gradient(to top, #050505 0%, rgba(5,5,5,0.92) 70%, rgba(5,5,5,0) 100%);
  }

  .robot-stage iframe {
    height: calc(100% + 36px);
    bottom: -36px;
  }

  .robot-toolbar {
    left: 0.65rem;
    top: 0.65rem;
    gap: 0.35rem;
    padding: 0.4rem;
    display: flex;
  }

  .robot-toolbar button {
    width: 24px;
    height: 24px;
  }

  .robot-material {
    display: block !important;
    width: 134px;
    right: 0.5rem;
    bottom: 0.6rem;
    top: auto;
    padding: 0.75rem;
    z-index: 7;
  }

  .material-head {
    margin-bottom: 0.55rem;
    font-size: 0.56rem;
  }

  .material-row {
    margin-bottom: 0.45rem;
    font-size: 0.58rem;
  }

  .material-track {
    height: 3px;
  }

  .material-swatches {
    gap: 0.35rem;
  }

  .material-swatches span {
    width: 18px;
    height: 18px;
    font-size: 0.66rem;
  }

  .robot-controls {
    left: 31%;
    bottom: 0.8rem;
    transform: translateX(-50%) scale(0.82);
    display: flex;
    z-index: 8;
  }

  .robot-cube {
    display: block !important;
    width: 66px;
    height: 66px;
    left: 55%;
    top: 58%;
    z-index: 6;
  }

  .robot-axis {
    display: block !important;
    left: 67%;
    top: 61%;
    z-index: 6;
  }

  .robot-grid-overlay {
    display: block;
    opacity: 0.18;
  }

  .about-section,
  .services-section,
  .why-section,
  .work-section,
  .cta-section {
    padding: 5rem 0;
  }

  .about-panel,
  .perks-card,
  .service-card,
  .project-card {
    padding: 1.5rem;
  }

  .terminal-output {
    padding: 1.5rem;
  }

  .output-header {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-label,
  .timeline-val {
    text-align: left;
  }

  footer {
    padding: 2.5rem 1rem;
  }

  .footer-inner,
  .footer-brand {
    align-items: center;
  }
}

@media (max-width: 520px) {
  .hero-grid {
    gap: 2.5rem;
  }

  .hero-robot-panel {
    height: 370px;
  }

  .robot-window-title {
    font-size: 0.58rem;
  }

  .robot-controls {
    display: flex;
    left: 31%;
    bottom: 0.55rem;
    transform: translateX(-50%) scale(0.7);
    transform-origin: center bottom;
    z-index: 8;
  }

  .robot-controls button {
    padding: 0.35rem 0.55rem;
  }

  .robot-cube {
    display: block !important;
    width: 54px;
    height: 54px;
    left: 55%;
    top: 57%;
    z-index: 6;
  }

  .robot-axis {
    display: block !important;
    left: 68%;
    top: 60%;
    z-index: 6;
  }

  .robot-material {
    display: block !important;
    width: 112px;
    right: 0.35rem;
    bottom: 0.5rem;
    top: auto;
    padding: 0.58rem;
    z-index: 7;
  }

  .material-head {
    margin-bottom: 0.38rem;
    font-size: 0.48rem;
  }

  .material-row {
    margin-bottom: 0.32rem;
    font-size: 0.5rem;
  }

  .material-track {
    height: 3px;
  }

  .material-swatches {
    gap: 0.25rem;
  }

  .material-swatches span {
    width: 15px;
    height: 15px;
    font-size: 0.58rem;
  }

  .robot-grid-overlay {
    display: block;
    opacity: 0.16;
    transform: perspective(420px) rotateX(62deg) translateY(80px) scale(2);
  }

  .robot-stage::after {
    width: 56%;
    height: 66px;
  }

  .services-header,
  .work-header {
    align-items: flex-start;
  }

  .cta-title {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 0.98;
  }

  .cta-desc {
    max-width: 32ch;
  }

  .footer-nav {
    gap: 1rem;
  }

  .footer-socials a {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (max-width: 380px) {
  .cta-inner {
    padding: 0 0.9rem;
  }

  .cta-title {
    font-size: clamp(1.85rem, 9vw, 2.15rem);
  }

  .cta-badge {
    max-width: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero-robot-panel {
    height: 350px;
  }

  .robot-toolbar {
    transform: scale(0.9);
    transform-origin: top left;
    display: flex;
  }

  .robot-material {
    width: 100px;
    padding: 0.45rem;
    right: 0.35rem;
    bottom: 0.45rem;
    display: block !important;
  }

  .robot-cube {
    width: 44px;
    height: 44px;
    left: 54%;
    top: 57%;
    display: block !important;
  }

  .robot-axis {
    left: 68%;
    top: 60%;
    display: block !important;
  }

  .axis-y { height: 28px; }
  .axis-x { width: 32px; }
  .axis-z { width: 28px; }

  .robot-stage::after {
    width: 58%;
    height: 62px;
  }
}
