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

    :root {
      --strata-1: #0a3b4b;
      --strata-2: #1d5b6e;
      --strata-3: #2a7f8f;
      --strata-4: #5fa8b3;
      --strata-5: #a8cdd3;
      --strata-6: #d9e8ea;
      --strata-7: #f0f8fa;
      --text-dark: #0b1e2b;
      --text-mid: #1d3b48;
      --text-soft: #426a7a;
      --bg-light: #f8fafc;
      --white: #ffffff;
      --danger: #c0392b;
      --success: #1e7a52;
    }

    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    body {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      background-color: var(--bg-light);
      color: var(--text-dark);
      line-height: 1.6;
      width: 100%;
      min-width: 0;
      overflow-x: hidden;
    }

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

    /* ============================================
       LAYOUT PRINCIPAL
       ============================================ */
    .page { display: flex; min-height: 100vh; }

    /* ---------- COLUNA ESTRATIGRÁFICA (nav) ---------- */
    .strat-column {
      width: 130px;
      flex-shrink: 0;
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--white);
      border-right: 1px solid #e2e8f0;
      z-index: 20;
      overflow: hidden;
    }

    .strat-logo {
      padding: 1.0rem 0.1rem;
      text-align: center;
      font-weight: 800;
      font-size: 1.7rem;
      letter-spacing: -0.04em;
      color: var(--strata-1);
      border-bottom: 2px solid var(--strata-1);
      background: var(--white);
      flex-shrink: 0;
    }
    .strat-logo span { color: var(--strata-3); }

    .strata-nav {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.02) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(0,0,0,0.02) 1px, transparent 1px);
      background-size: 6px 6px, 9px 9px;
    }

    .stratum {
      flex: 1;
      min-height: 68px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.25rem;
      padding: 0.6rem 0.3rem;
      color: var(--white);
      font-size: 0.72rem;
      font-weight: 600;
      text-align: center;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      cursor: pointer;
      position: relative;
      transition: filter 0.2s, transform 0.15s;
      border-bottom: 2px solid rgba(255,255,255,0.15);
    }
    .stratum:hover { filter: brightness(1.12); transform: scaleX(1.02); z-index: 2; }
    .stratum:last-child { border-bottom: none; }

    .stratum-1 { background-color: var(--strata-1); }
    .stratum-2 { background-color: var(--strata-2); }
    .stratum-3 { background-color: var(--strata-3); }
    .stratum-4 { background-color: var(--strata-4); }
    .stratum-5 { background-color: var(--strata-5); }    
    .stratum-6 { background-color: var(--strata-6); color: var(--strata-1); }
    .stratum-7 { background-color: var(--strata-7); color: var(--strata-1); }

    .stratum::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.18;
      pointer-events: none;
      background-image: repeating-linear-gradient(
        0deg, transparent 0px, transparent 5px,
        rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 6px
      );
    }
    .stratum-5::before, .stratum-6::before {
      background-image: repeating-linear-gradient(
        0deg, transparent 0px, transparent 5px,
        rgba(0,0,0,0.15) 5px, rgba(0,0,0,0.15) 6px
      );
    }

    .stratum-icon svg,
    .info-icon svg,
    .chat-avatar svg,
    .chat-send svg { width: 30px; height: 30px; fill: none; stroke: currentColor; 
      stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    }

    /* ---------- CONTEÚDO ---------- */
    .content { flex: 1; min-width: 0; }

    .container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

    .btn {
      display: inline-block;
      background-color: var(--strata-1);
      color: var(--white);
      font-weight: 600;
      padding: 0.85rem 1.9rem;
      border-radius: 40px;
      font-size: 0.95rem;
      transition: background 0.2s, transform 0.1s;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(10, 59, 75, 0.15);
      font-family: inherit;
    }
    .btn:hover { background-color: var(--strata-2); }
    .btn:disabled { opacity: 0.6; cursor: not-allowed; }

    section { padding: 2.5rem 0; border-bottom: 1px solid #e2e8f0; scroll-margin-top: 20px; }
    section:last-of-type { border-bottom: none; }

    .section-title {
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 1.5rem;
      color: var(--strata-1);
      position: relative;
      padding-left: 1rem;
    }
    .section-title::before {
      content: "";
      position: absolute;
      left: 0; top: 0.15em; bottom: 0.15em;
      width: 5px; border-radius: 3px;
      background: linear-gradient(
        to bottom,
        var(--strata-1) 0% 30%,
        var(--strata-3) 30% 60%,
        var(--strata-5) 60% 100%
      );
    }

    .section-subtitle {
      font-size: 1.1rem;
      color: var(--text-mid);
      max-width: 800px;
      margin-bottom: 2.5rem;
    }
    
    #inicio { padding: 0; }

    /* Hero */
    .hero {
      padding: 4rem 0 5rem 0;
      background: linear-gradient(145deg, #ffffff 0%, #f2f7f9 100%);
      position: relative;
      overflow: hidden;
    }
    .hero-banner {
      width: 100%;
      overflow: hidden;
      border-bottom: 1px solid #e2e8f0;
      background: #fff;
    }
    .hero-banner img {
      width: 100%;
      height: auto;
      display: block;
    }
    .hero::after {
      content: "";
      position: absolute;
      right: -40px; bottom: -40px;
      width: 220px; height: 220px; border-radius: 50%;
      background: radial-gradient(circle,
        var(--strata-1) 0 20px, transparent 20px 40px,
        var(--strata-2) 40px 60px, transparent 60px 80px,
        var(--strata-3) 80px 100px, transparent 100px 120px,
        var(--strata-5) 120px 140px, transparent 140px);
      opacity: 0.12;
      pointer-events: none;
    }
    .hero-content { padding-top: 3rem; padding-bottom: 4rem; }

    .hero h1 {
      font-size: 3.2rem; font-weight: 700; line-height: 1.2;
      letter-spacing: -0.03em; color: #092c39; margin-bottom: 1.5rem;
    }
    .hero p {
      font-size: 1.25rem; color: #1b4457;
      margin-bottom: 2rem; max-width: 700px;
    }

    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .card {
      background: var(--white);
      padding: 2rem 1.8rem;
      border-radius: 24px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
      border: 1px solid #e9eef2;
      transition: transform 0.2s, box-shadow 0.2s;
      position: relative;
      overflow: hidden;
    }
    .card::before {
      content: "";
      position: absolute; top: 0; left: 0; right: 0; height: 6px;
      background: linear-gradient(to right,
        var(--strata-1) 0% 25%, var(--strata-2) 25% 50%,
        var(--strata-3) 50% 75%, var(--strata-5) 75% 100%);
    }
    .card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05); }
    .card h3 {
      font-size: 1.5rem; font-weight: 600; margin-bottom: 1.2rem;
      color: var(--strata-1); letter-spacing: -0.01em; margin-top: 0.3rem;
    }
    .card ul { list-style: none; }
    .card li {
      padding: 0.4rem 0; display: flex; align-items: baseline;
      gap: 0.6rem; font-size: 1rem; color: var(--text-mid);
      border-bottom: 1px solid #f0f4f7;
    }
    .card li:last-child { border-bottom: none; }
    .card li::before {
      content: "▹"; color: var(--strata-3);
      font-weight: 600; font-size: 1.1rem;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem; margin-top: 2rem;
    }
    .project-item {
      background: var(--white);
      border-radius: 24px;
      padding: 2rem 1.8rem;
      border: 1px solid #e2e8f0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
      transition: transform 0.2s;
      border-left: 5px solid var(--strata-3);
    }
    .project-item:nth-child(1) { border-left-color: var(--strata-1); }
    .project-item:nth-child(2) { border-left-color: var(--strata-3); }
    .project-item:nth-child(3) { border-left-color: var(--strata-5); }
    .project-item:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04); }
    .project-item h3 {
      font-size: 1.4rem; font-weight: 650;
      color: var(--strata-1); margin-bottom: 0.8rem;
    }
    .project-item p { color: #2f4f5e; font-size: 0.98rem; }

    .diferenciais-text {
      font-size: 1.2rem; max-width: 900px;
      color: #1a3f4e; margin-bottom: 1.2rem; font-weight: 500;
    }
    .diferenciais-desc { max-width: 850px; color: #2d4e5e; }

    /* ============================================
       FORMULÁRIO DE CONTATO
       ============================================ */
    .contact-wrapper {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 2.5rem;
      align-items: start;
    }

    .contact-info {
      background: linear-gradient(145deg, var(--strata-1) 0%, var(--strata-2) 100%);
      color: var(--white);
      border-radius: 28px;
      padding: 2.5rem 2rem;
      position: relative;
      overflow: hidden;
    }
    .contact-info::before {
      content: "";
      position: absolute; inset: 0;
      opacity: 0.15;
      background-image: repeating-linear-gradient(
        0deg, transparent 0px, transparent 8px,
        rgba(255,255,255,0.6) 8px, rgba(255,255,255,0.6) 9px
      );
      pointer-events: none;
    }
    .contact-info > * { position: relative; z-index: 1; }
    .contact-info h3 {
      font-size: 1.6rem; font-weight: 700;
      margin-bottom: 1rem; letter-spacing: -0.01em;
    }
    .contact-info p {
      font-size: 0.98rem; margin-bottom: 1.6rem;
      opacity: 0.92; line-height: 1.65;
    }
    .contact-info .info-item {
      display: flex; gap: 0.8rem; align-items: flex-start;
      margin-bottom: 1.1rem; font-size: 0.95rem;
    }
    .contact-info .info-item strong {
      display: block; font-size: 0.75rem;
      text-transform: uppercase; letter-spacing: 0.08em;
      opacity: 0.7; margin-bottom: 0.15rem; font-weight: 600;
    }
    .contact-info .info-icon {
      width: 34px; height: 34px; flex-shrink: 0;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
    }

    .contact-form {
      background: var(--white);
      border-radius: 28px;
      padding: 2.5rem 2.2rem;
      border: 1px solid #e6edf2;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
      position: relative;
      overflow: hidden;
    }
    .contact-form::before {
      content: "";
      position: absolute; top: 0; left: 0; right: 0; height: 6px;
      background: linear-gradient(to right,
        var(--strata-1) 0% 16.6%, var(--strata-2) 16.6% 33.3%,
        var(--strata-3) 33.3% 50%, var(--strata-4) 50% 66.6%,
        var(--strata-5) 66.6% 83.3%, var(--strata-6) 83.3% 100%);
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.1rem;
      margin-bottom: 1.1rem;
    }
    .form-group { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
    .form-group.full { grid-column: 1 / -1; }

    .form-group label {
      font-size: 0.78rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.06em;
      color: var(--strata-2); margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      font-family: inherit;
      font-size: 0.95rem;
      color: var(--text-dark);
      padding: 0.75rem 0.9rem;
      border: 1.5px solid #d8e2e8;
      border-radius: 12px;
      background: #fbfdfe;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      width: 100%;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--strata-3);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(42, 127, 143, 0.12);
    }
    .form-group textarea { resize: vertical; min-height: 130px; }

    .form-group.error input,
    .form-group.error select,
    .form-group.error textarea {
      border-color: var(--danger);
      background: #fff7f6;
    }
    .form-error {
      font-size: 0.75rem; color: var(--danger);
      margin-top: 0.3rem; min-height: 0.9em;
      font-weight: 500;
    }

    .form-submit-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 0.5rem;
      flex-wrap: wrap;
    }
    .form-submit-row .btn { min-width: 160px; }

    .form-feedback {
      font-size: 0.9rem;
      font-weight: 600;
      padding: 0.5rem 0;
    }
    .form-feedback.success { color: var(--success); }
    .form-feedback.fail { color: var(--danger); }

    /* ============================================
       CHATBOT — widget flutuante
       ============================================ */
    .chat-launcher {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      background: linear-gradient(145deg, var(--strata-1), var(--strata-3));
      color: var(--white);
      font-size: 1.6rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 24px rgba(10, 59, 75, 0.35);
      z-index: 999;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .chat-launcher:hover {
      transform: scale(1.08);
      box-shadow: 0 12px 32px rgba(10, 59, 75, 0.45);
    }
    .chat-launcher .chat-badge {
      position: absolute;
      top: -4px; right: -4px;
      width: 16px; height: 16px;
      background: #2ecc71;
      border: 2px solid var(--white);
      border-radius: 50%;
    }

    .chat-launcher svg,
    .chat-avatar svg {
      width: 28px;
      height: 28px;

      fill: none;
      stroke: currentColor;
      stroke-width: 2;

      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .chat-window {
      position: fixed;
      bottom: 100px;
      right: 24px;
      width: 380px;
      max-width: calc(100vw - 32px);
      height: 560px;
      max-height: calc(100vh - 140px);
      background: var(--white);
      border-radius: 22px;
      box-shadow: 0 20px 50px rgba(10, 59, 75, 0.28);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      opacity: 0;
      transform: translateY(20px) scale(0.96);
      pointer-events: none;
      transition: opacity 0.25s, transform 0.25s;
      border: 1px solid #dfe8ec;
    }
    .chat-window.open {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .chat-header {
      background: linear-gradient(120deg, var(--strata-1) 0%, var(--strata-3) 100%);
      color: var(--white);
      padding: 1rem 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.8rem;
      position: relative;
      flex-shrink: 0;
    }
    .chat-header::after {
      content: "";
      position: absolute;
      bottom: 0; left: 0; right: 0; height: 4px;
      background: repeating-linear-gradient(
        90deg, transparent 0 12px,
        rgba(255,255,255,0.4) 12px 14px);
    }
    .chat-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(255,255,255,0.2);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; flex-shrink: 0;
    }
    .chat-header-info { flex: 1; min-width: 0; }
    .chat-header-info strong {
      display: block; font-size: 1rem; font-weight: 700;
      letter-spacing: -0.01em;
    }
    .chat-header-info span {
      font-size: 0.78rem; opacity: 0.85;
      display: flex; align-items: center; gap: 0.35rem;
    }
    .chat-header-info span::before {
      content: "";
      width: 7px; height: 7px; border-radius: 50%;
      background: #2ecc71;
      box-shadow: 0 0 6px rgba(46, 204, 113, 0.9);
    }
    .chat-close {
      background: transparent; border: none;
      color: var(--white); cursor: pointer;
      font-size: 1.4rem; line-height: 1;
      padding: 0.2rem 0.4rem; border-radius: 6px;
      transition: background 0.2s;
    }
    .chat-close:hover { background: rgba(255,255,255,0.15); }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1.1rem 1.1rem 0.6rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      background:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.015) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(0,0,0,0.015) 1px, transparent 1px);
      background-size: 8px 8px, 11px 11px;
    }
    .chat-messages::-webkit-scrollbar { width: 6px; }
    .chat-messages::-webkit-scrollbar-thumb {
      background: #c7d6dd; border-radius: 3px;
    }

    .chat-msg {
      max-width: 85%;
      padding: 0.65rem 0.95rem;
      border-radius: 16px;
      font-size: 0.9rem;
      line-height: 1.5;
      word-wrap: break-word;
      white-space: pre-wrap;
      animation: chatFade 0.25s ease;
    }
    @keyframes chatFade {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .chat-msg.bot {
      align-self: flex-start;
      background: #eef4f6;
      color: var(--text-dark);
      border-bottom-left-radius: 4px;
      border-left: 3px solid var(--strata-3);
    }
    .chat-msg.user {
      align-self: flex-end;
      background: linear-gradient(135deg, var(--strata-2), var(--strata-3));
      color: var(--white);
      border-bottom-right-radius: 4px;
    }
    .chat-msg.typing {
      align-self: flex-start;
      background: #eef4f6;
      border-left: 3px solid var(--strata-3);
      display: flex; gap: 4px; padding: 0.85rem 1rem;
    }
    .chat-msg.typing span {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--strata-3);
      animation: typingDot 1.2s infinite ease-in-out;
    }
    .chat-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
    .chat-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes typingDot {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
      30% { transform: translateY(-5px); opacity: 1; }
    }

    .chat-suggestions {
      display: flex; flex-wrap: wrap; gap: 0.4rem;
      padding: 0 1.1rem 0.6rem;
    }
    .chat-suggestions button {
      background: #f0f6f8;
      border: 1px solid #d4e2e8;
      color: var(--strata-2);
      padding: 0.35rem 0.7rem;
      border-radius: 20px;
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s, border-color 0.2s;
    }
    .chat-suggestions button:hover {
      background: #e2eef2;
      border-color: var(--strata-3);
    }

    .chat-input-row {
      display: flex;
      gap: 0.5rem;
      padding: 0.75rem 1rem 1rem;
      border-top: 1px solid #e8eff2;
      background: var(--white);
      flex-shrink: 0;
    }
    .chat-input-row input {
      flex: 1;
      min-width: 0;
      font-family: inherit;
      font-size: 16px;
      padding: 0.7rem 0.9rem;
      border: 1.5px solid #d8e2e8;
      border-radius: 22px;
      background: #fbfdfe;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .chat-input-row input:focus {
      outline: none;
      border-color: var(--strata-3);
      box-shadow: 0 0 0 3px rgba(42, 127, 143, 0.12);
    }
    .chat-send {
      width: 44px; height: 44px; flex-shrink: 0;
      border-radius: 50%; border: none;
      background: linear-gradient(145deg, var(--strata-1), var(--strata-3));
      color: var(--white);
      font-size: 1.1rem;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.15s, opacity 0.2s;
    }
    .chat-send:hover { transform: scale(1.06); }
    .chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

    /* Footer */
    .footer {
      background: var(--white);
      padding: 2rem 0;
      text-align: center;
      font-size: 0.9rem;
      color: var(--text-soft);
      border-top: 1px solid #e2e8f0;
    }

    /* ============================================
       RESPONSIVO
       ============================================ */
    @media screen and (max-width: 820px) {
      .page {
        display: block;
        width: 100%;
        min-width: 0;
      }

      .content {
        width: 100%;
        min-width: 0;
      }

      .strat-column {
        position: sticky;
        top: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: row;
        border-right: none;
        border-bottom: 2px solid var(--strata-1);
        overflow-x: auto;
        overflow-y: hidden;
      }
      .strat-logo {
        padding: 0.6rem 1rem;
        border-bottom: none;
        border-right: 2px solid var(--strata-1);
        font-size: 1.4rem;
        display: flex; align-items: center; flex-shrink: 0;
      }
      .strata-nav {
        flex-direction: row;
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .strata-nav::-webkit-scrollbar { display: none; }
      .stratum {
        flex: 0 0 auto; min-width: 92px; min-height: 58px;
        padding: 0.4rem 0.5rem; font-size: 0.62rem;
        border-bottom: none;
        border-right: 2px solid rgba(255,255,255,0.15);
      }
      
      .stratum:last-child { border-right: none; }
      .stratum:hover { transform: none; filter: brightness(1.15); }

      .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1.2rem;
      }

      section { padding: 3.5rem 0; scroll-margin-top: 70px; }
      .hero { padding: 2.5rem 0 3.5rem 0; }
      .hero h1 { font-size: 2.2rem; }
      .hero p { font-size: 1.05rem; }
      .section-title { font-size: 1.8rem; }
      .grid-2 { grid-template-columns: 1fr; gap: 1.8rem; }
      .projects-grid { grid-template-columns: 1fr; }
      .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
      .contact-wrapper { grid-template-columns: 1fr; gap: 1.8rem; }
      .contact-info { padding: 2rem 1.5rem; }
      .contact-form { padding: 2rem 1.4rem; }
      .form-row { grid-template-columns: 1fr; }

      /* Chat em mobile: quase tela cheia */
      .chat-window {
        right: 12px;
        left: 12px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
        height: min(560px, calc(100dvh - 92px));
        max-height: calc(100dvh - 92px);
      }

      .chat-launcher {
        bottom: calc(18px + env(safe-area-inset-bottom));
        right: 18px;
        width: 58px;
        height: 58px;
        bottom: 74px;
      }
    }

    @media screen and (max-width: 420px) {
      .hero h1 { font-size: 1.85rem; }
      .stratum { min-width: 78px; font-size: 0.55rem; }
      .stratum-icon { font-size: 0.85rem; }
      .section-title { font-size: 1.55rem; }
      .card, .project-item { padding: 1.5rem 1.2rem; }
      .chat-suggestions { display: none; }
      .chat-window {
        top: 8px;
        right: 8px;
        left: 8px;
        bottom: auto;
        width: auto;
        max-width: calc(100vw - 16px);
        box-sizing: border-box;
        height: min(420px, calc(var(--chat-viewport-height, 100vh) - 16px));
        max-height: calc(var(--chat-viewport-height, 100vh) - 16px);
        border-radius: 18px;
      }
    }

/* Classes de conteúdo originalmente definidas inline */
.content-narrow { max-width: 800px; color: var(--text-mid); }
.text-spaced { margin-bottom: 1.2rem; }
.hero-section-title { margin-top: 2.2rem; }
.hero-btn { margin-bottom: 1.2rem; }
.about-subtitle { font-size: 1.3rem; font-weight: 500; color: var(--strata-1); margin-bottom: 1rem; }

/* ============================================
   INDICADOR DE NAVEGAÇÃO HORIZONTAL
   ============================================ */
.nav-scroll-hint {
  display: none;
}

@media screen and (max-width: 820px) {
  .strat-column {
    position: sticky;
  }

  .nav-scroll-hint {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 54px;
    pointer-events: none;
    z-index: 5;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.92) 42%);
  }

  .nav-scroll-arrow {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    margin-right: 7px;
    border: 1px solid rgba(10,59,75,0.16);
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: var(--strata-1);
    box-shadow: 0 3px 12px rgba(11,30,43,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
  }

  .nav-scroll-arrow:hover {
    transform: scale(1.06);
  }

  .nav-scroll-left {
    display: none;
    position: absolute;
    left: 7px;
    margin-right: 0;
  }

  .nav-scroll-hint.can-scroll-right .nav-scroll-right {
    display: flex;
  }

  .nav-scroll-hint.can-scroll-left {
    left: 0;
    right: auto;
    justify-content: flex-start;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 42%, transparent);
  }

  .nav-scroll-hint.can-scroll-left .nav-scroll-left {
    display: flex;
  }

  .nav-scroll-hint.can-scroll-left.can-scroll-right {
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(255,255,255,0.92), transparent 18%, transparent 82%, rgba(255,255,255,0.92));
  }

  .nav-scroll-hint.can-scroll-left.can-scroll-right .nav-scroll-left {
    position: relative;
    left: auto;
    margin-left: 7px;
  }

  .nav-scroll-hint.can-scroll-left.can-scroll-right .nav-scroll-right {
    margin-right: 7px;
  }
}


/* Campo antispam do Netlify Forms: oculto visualmente e fora do fluxo. */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
