/* ================================================================
       TOKENS — Manual de Identidade Visual CRÏA
       ================================================================ */
    :root {
      --near-black:    #0E0F16;
      --blue:          #2563FF;
      --violet:        #7C3AED;
      --white:         #FFFFFF;

      /* Derivados funcionais */
      --surface-1:     #13141E;   /* cards sobre near-black */
      --surface-2:     #1A1C28;   /* hover / alt row */
      --muted:         rgba(255,255,255,0.45);
      --border:        rgba(255,255,255,0.08);

      /* Glow — usado com moderação */
      --glow-blue:     rgba(37,99,255,0.25);
      --glow-violet:   rgba(124,58,237,0.20);

      --font-display:  'Satoshi', 'Inter', sans-serif;
      --font-body:     'Inter', sans-serif;

      /* Escala tipo */
      --text-xs:   0.75rem;
      --text-sm:   0.875rem;
      --text-base: 1rem;
      --text-lg:   1.125rem;
      --text-xl:   1.375rem;
      --text-2xl:  1.75rem;
      --text-3xl:  2.25rem;
      --text-4xl:  3rem;
      --text-5xl:  clamp(2.8rem, 6vw, 4.5rem);

      /* Espaçamento */
      --sp-1: 0.5rem;
      --sp-2: 1rem;
      --sp-3: 1.5rem;
      --sp-4: 2rem;
      --sp-6: 3rem;
      --sp-8: 4rem;
      --sp-12: 6rem;
      --sp-16: 8rem;

      --radius: 12px;
      --radius-lg: 20px;
    }

    /* ================================================================
       RESET
       ================================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--near-black);
      color: var(--white);
      font-family: var(--font-body);
      font-size: var(--text-base);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { cursor: pointer; border: none; background: none; font: inherit; }

    /* Acessibilidade: foco de teclado */
    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--blue);
      outline-offset: 3px;
      border-radius: 4px;
    }

    /* Respeita preferência de movimento reduzido */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
      html { scroll-behavior: auto; }
    }

    /* ================================================================
       LAYOUT
       ================================================================ */
    .wrap {
      max-width: 1160px;
      margin: 0 auto;
      padding: 0 var(--sp-4);
    }
    @media (max-width: 640px) { .wrap { padding: 0 var(--sp-2); } }

    /* ================================================================
       NAV
       ================================================================ */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      border-bottom: 1px solid var(--border);
      background: rgba(14,15,22,0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    /* Logo: símbolo C + wordmark */
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--text-xl);
      letter-spacing: -0.02em;
    }
    .logo-mark {
      width: 118px;
      height: 42px;
      flex-shrink: 0;
      object-fit: contain;
    }
    /* O "ï" com dois pontos é parte do nome oficial */
    .wordmark-i { color: var(--violet); }

    .nav-links {
      display: flex;
      align-items: center;
      gap: var(--sp-6);
    }
    .nav-links a {
      font-size: var(--text-sm);
      font-weight: 500;
      color: var(--muted);
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--white); }
    .nav-links a.active { color: var(--white); }

    .nav-cta {
      padding: 0.55rem 1.2rem;
      background: var(--blue);
      color: var(--white);
      border-radius: 8px;
      font-size: var(--text-sm);
      font-weight: 600;
      transition: background 0.2s, transform 0.15s;
    }
    .nav-cta:hover {
      background: #1a4fd6;
      transform: translateY(-1px);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 4px;
    }
    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--white);
      border-radius: 2px;
      transition: transform 0.25s, opacity 0.25s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    @media (max-width: 820px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }

      .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--near-black);
        padding: var(--sp-4);
        border-bottom: 1px solid var(--border);
      }
      .nav-links.open a { font-size: var(--text-lg); color: var(--white); }
      .nav-links.open .nav-cta {
        width: 100%;
        text-align: center;
        display: block;
        padding: 0.75rem;
      }
    }

    /* ================================================================
       HERO
       ================================================================ */
    #home {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding-top: 64px;
      position: relative;
      overflow: hidden;
    }

    /* Fundo: gradiente radial subtil como no portfolio — sem bola de
       gradiente genérica, apenas um brilho direcional no canto superior */
    #home::before {
      content: '';
      position: absolute;
      top: -120px;
      right: -160px;
      width: 640px;
      height: 640px;
      background: radial-gradient(ellipse at center,
        rgba(124,58,237,0.18) 0%,
        rgba(37,99,255,0.10) 45%,
        transparent 70%);
      pointer-events: none;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 420px;
      gap: var(--sp-12);
      align-items: center;
      padding: var(--sp-16) 0;
      position: relative;
      z-index: 1;
    }

    /* Tagline — replicando a gramática do portfolio: linha branca / linha violeta */
    .hero-tag {
      font-size: var(--text-sm);
      font-weight: 500;
      letter-spacing: 0.06em;
      color: var(--muted);
      margin-bottom: var(--sp-4);
    }
    .hero-tag span { color: var(--blue); }

    .hero-headline {
      font-family: var(--font-display);
      font-size: var(--text-5xl);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.03em;
      margin-bottom: var(--sp-4);
    }
    /* Linha 2 em violeta — gramática explícita do portfolio da CRÏA */
    .hero-headline em {
      font-style: normal;
      color: var(--violet);
    }

    .hero-sub {
      font-size: var(--text-lg);
      color: var(--muted);
      max-width: 480px;
      line-height: 1.65;
      margin-bottom: var(--sp-6);
    }

    .hero-actions {
      display: flex;
      gap: var(--sp-2);
      flex-wrap: wrap;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.8rem 1.6rem;
      background: var(--blue);
      color: var(--white);
      border-radius: 8px;
      font-weight: 600;
      font-size: var(--text-sm);
      transition: background 0.2s, transform 0.15s;
    }
    .btn-primary:hover { background: #1a4fd6; transform: translateY(-2px); }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.8rem 1.6rem;
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 8px;
      font-weight: 600;
      font-size: var(--text-sm);
      transition: border-color 0.2s, color 0.2s;
    }
    .btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

    /* Visual: símbolo C grande com os dois pontos animados */
    .hero-visual {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .hero-symbol {
      width: 340px;
      height: 340px;
      position: relative;
    }
    .hero-icon {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 0 60px rgba(124,58,237,0.35));
    }

    /* Ponto azul — orbita lentamente */
    .dot-blue {
      animation: orbitBlue 8s linear infinite;
      transform-origin: 180px 130px;
    }
    .dot-violet {
      animation: orbitViolet 8s linear infinite;
      transform-origin: 220px 130px;
    }
    @keyframes orbitBlue {
      0%   { transform: translateY(0px); }
      50%  { transform: translateY(-10px); }
      100% { transform: translateY(0px); }
    }
    @keyframes orbitViolet {
      0%   { transform: translateY(0px); }
      50%  { transform: translateY(10px); }
      100% { transform: translateY(0px); }
    }

    .hero-pillars {
      display: flex;
      gap: var(--sp-4);
      margin-top: var(--sp-8);
      padding-top: var(--sp-6);
      border-top: 1px solid var(--border);
    }
    .pillar {
      font-size: var(--text-sm);
      font-weight: 600;
      letter-spacing: 0.04em;
    }
    .pillar-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
    .pillar-dot.b { background: var(--blue); }
    .pillar-dot.v { background: var(--violet); }
    .pillar-dot.w { background: rgba(255,255,255,0.4); }

    @media (max-width: 960px) {
      .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
      .hero-visual { order: -1; }
      .hero-symbol { width: 220px; height: 220px; }
    }

    /* ================================================================
       SECÇÕES GERAIS
       ================================================================ */
    section { padding: var(--sp-16) 0; }
    section + section { border-top: 1px solid var(--border); }

    .section-label {
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--violet);
      margin-bottom: var(--sp-2);
    }
    .section-title {
      font-family: var(--font-display);
      font-size: var(--text-4xl);
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.1;
      margin-bottom: var(--sp-3);
    }
    .section-title em { font-style: normal; color: var(--violet); }
    .section-body {
      font-size: var(--text-lg);
      color: var(--muted);
      max-width: 560px;
      line-height: 1.65;
    }
    .section-header { margin-bottom: var(--sp-8); }

    /* ================================================================
       PROBLEMA / DIAGNÓSTICO (Slide 3 do portfolio)
       ================================================================ */
    #problema .diag-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .diag-col {
      background: var(--surface-1);
      padding: var(--sp-6);
    }
    .diag-col:first-child { border-right: 1px solid var(--border); }

    .diag-col-label {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: var(--sp-4);
    }
    .diag-col-label.pos { color: var(--blue); }
    .diag-col-label.neg { color: var(--violet); }

    .diag-item {
      display: flex;
      align-items: flex-start;
      gap: var(--sp-2);
      padding: var(--sp-2) 0;
      border-bottom: 1px solid var(--border);
      font-size: var(--text-base);
      color: var(--muted);
    }
    .diag-item:last-child { border-bottom: none; }
    .diag-item .sign {
      font-weight: 700;
      flex-shrink: 0;
      line-height: 1.6;
    }
    .sign.plus { color: var(--blue); }
    .sign.minus { color: var(--violet); }

    .diag-verdict {
      margin-top: var(--sp-6);
      padding: var(--sp-4) var(--sp-6);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      text-align: center;
      font-size: var(--text-lg);
      font-family: var(--font-display);
      font-weight: 600;
      color: var(--white);
    }

    @media (max-width: 640px) {
      #problema .diag-grid { grid-template-columns: 1fr; }
      .diag-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    }

    /* ================================================================
       SERVIÇOS — 3 pilares (Slide 7)
       ================================================================ */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--sp-2);
    }

    .service-card {
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: var(--sp-6);
      transition: border-color 0.25s, background 0.25s;
    }
    .service-card:hover {
      border-color: rgba(124,58,237,0.4);
      background: var(--surface-2);
    }

    .service-card-label {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--violet);
      margin-bottom: var(--sp-3);
    }
    .service-card h3 {
      font-family: var(--font-display);
      font-size: var(--text-xl);
      font-weight: 700;
      margin-bottom: var(--sp-4);
    }
    .service-card ul li {
      font-size: var(--text-sm);
      color: var(--muted);
      padding: 0.45rem 0;
      border-bottom: 1px solid var(--border);
      line-height: 1.5;
    }
    .service-card ul li:last-child { border-bottom: none; }

    .service-footer {
      margin-top: var(--sp-8);
      padding: var(--sp-4) var(--sp-6);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      text-align: center;
      color: var(--muted);
      font-size: var(--text-base);
    }
    .service-footer strong { color: var(--white); }

    @media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

    /* ================================================================
       PROCESSO — pipeline sequencial (Slide 6)
       ================================================================ */
    .process-steps {
      display: flex;
      align-items: flex-start;
      gap: 0;
      overflow-x: auto;
      padding-bottom: var(--sp-2);
    }
    .process-step {
      flex: 1;
      min-width: 130px;
      position: relative;
    }
    /* Linha de conexão entre steps — só entre, não no último */
    .process-step:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 20px;
      right: -1px;
      width: calc(100% - 40px);
      height: 1px;
      background: linear-gradient(to right, var(--violet), var(--blue));
      z-index: 0;
    }
    .step-circle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1.5px solid var(--violet);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: var(--text-xs);
      font-weight: 700;
      color: var(--violet);
      background: var(--near-black);
      margin-bottom: var(--sp-3);
      position: relative;
      z-index: 1;
    }
    .process-step.done .step-circle {
      background: var(--violet);
      color: var(--white);
      border-color: var(--violet);
    }
    .step-title {
      font-family: var(--font-display);
      font-size: var(--text-sm);
      font-weight: 700;
      margin-bottom: 0.3rem;
    }
    .step-desc {
      font-size: var(--text-xs);
      color: var(--muted);
      line-height: 1.5;
      max-width: 100px;
    }

    /* ================================================================
       TRANSFORMAÇÃO — antes/depois (Slide 5)
       ================================================================ */
    .transform-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: var(--sp-4);
      align-items: center;
    }
    .transform-col {
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: var(--sp-6);
    }
    .transform-col-label {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: var(--sp-4);
    }
    .transform-col-label.neg { color: #ef4444; }
    .transform-col-label.pos { color: #22c55e; }

    .transform-item {
      display: flex;
      gap: var(--sp-2);
      align-items: flex-start;
      padding: 0.45rem 0;
      font-size: var(--text-sm);
      color: var(--muted);
      border-bottom: 1px solid var(--border);
    }
    .transform-item:last-child { border-bottom: none; }
    .transform-item .ti-sign { flex-shrink: 0; font-weight: 700; }
    .ti-sign.n { color: #ef4444; }
    .ti-sign.p { color: #22c55e; }

    .transform-arrow {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--sp-2);
    }
    .strategy-label {
      font-size: var(--text-xs);
      color: var(--violet);
      font-weight: 700;
      text-align: center;
      writing-mode: vertical-lr;
      transform: rotate(180deg);
      display: none;
    }
    .arrow-symbol {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--violet), var(--blue));
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @media (max-width: 760px) {
      .transform-grid { grid-template-columns: 1fr; }
      .transform-arrow { flex-direction: row; }
    }

    /* ================================================================
       CLIENTES-ALVO (Slide 10)
       ================================================================ */
    .targets-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: var(--sp-2);
    }
    .target-card {
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: var(--sp-4);
    }
    .target-sector {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: var(--sp-2);
    }
    .target-card p {
      font-size: var(--text-sm);
      color: var(--muted);
      line-height: 1.55;
    }
    @media (max-width: 900px) { .targets-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 540px)  { .targets-grid { grid-template-columns: 1fr; } }

    /* ================================================================
       SOBRE
       ================================================================ */
    .sobre-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--sp-12);
      align-items: center;
    }
    .sobre-statement {
      font-family: var(--font-display);
      font-size: var(--text-2xl);
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.02em;
      margin-bottom: var(--sp-4);
    }
    .sobre-statement em { font-style: normal; color: var(--violet); }
    .about-highlight {
      color: var(--violet) !important;
      font-weight: 600;
      margin-top: var(--sp-2);
    }
    .sobre-body p {
      font-size: var(--text-base);
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: var(--sp-2);
    }

    .sobre-dna {
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
    }
    .dna-item {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: var(--sp-4);
      padding: var(--sp-4) 0;
      border-bottom: 1px solid var(--border);
      align-items: start;
    }
    .dna-item:last-child { border-bottom: none; }
    .dna-key {
      font-family: var(--font-display);
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--white);
    }
    .dna-val {
      font-size: var(--text-sm);
      color: var(--muted);
      line-height: 1.6;
    }

    @media (max-width: 820px) {
      .sobre-grid { grid-template-columns: 1fr; }
    }

    /* ================================================================
       CONTACTO
       ================================================================ */
    #contacto { background: var(--near-black); }
    .contacto-inner {
      max-width: 640px;
      margin: 0 auto;
      text-align: center;
    }
    .contacto-inner .section-title { margin-bottom: var(--sp-3); }
    .contact-label { margin-bottom: var(--sp-2); }
    .contacto-inner p {
      font-size: var(--text-lg);
      color: var(--muted);
      margin-bottom: var(--sp-8);
    }

    .form-cria {
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: var(--sp-3);
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
    @media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

    .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
    .form-group label {
      font-size: var(--text-sm);
      font-weight: 600;
      color: var(--white);
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--white);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      transition: border-color 0.2s;
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder { color: var(--muted); }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--blue);
    }
    .form-group select option { background: var(--surface-1); }
    .form-group textarea { resize: vertical; min-height: 110px; }

    .form-submit {
      display: block;
      width: 100%;
      padding: 0.9rem;
      background: linear-gradient(135deg, var(--violet), var(--blue));
      color: var(--white);
      border-radius: 8px;
      font-weight: 700;
      font-size: var(--text-base);
      transition: opacity 0.2s, transform 0.15s;
    }
    .form-submit:hover { opacity: 0.88; transform: translateY(-1px); }

    .form-note {
      text-align: center;
      font-size: var(--text-xs);
      color: var(--muted);
      margin-top: var(--sp-1);
    }
    .form-success {
      display: none;
      text-align: center;
      padding: var(--sp-8) 0;
    }
    .success-icon {
      display: block;
      margin: 0 auto var(--sp-3);
    }
    .success-title {
      font-family: var(--font-display);
      font-size: var(--text-2xl);
      margin-bottom: var(--sp-2);
    }
    .success-message { color: var(--muted); }

    /* ================================================================
       FOOTER
       ================================================================ */
    footer {
      border-top: 1px solid var(--border);
      padding: var(--sp-8) 0 var(--sp-6);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: var(--sp-6);
      margin-bottom: var(--sp-8);
    }
    .footer-brand .nav-logo { margin-bottom: var(--sp-2); }
    .footer-brand p {
      font-size: var(--text-sm);
      color: var(--muted);
      max-width: 260px;
      line-height: 1.6;
    }
    .footer-highlight {
      margin-top: var(--sp-2);
      color: var(--violet) !important;
      font-weight: 600;
    }
    .footer-location {
      display: block;
      padding: 0.3rem 0;
      color: var(--muted);
    }
    .footer-col h4 {
      font-size: var(--text-sm);
      font-weight: 600;
      margin-bottom: var(--sp-3);
      color: var(--white);
    }
    .footer-col a {
      display: block;
      font-size: var(--text-sm);
      color: var(--muted);
      padding: 0.3rem 0;
      transition: color 0.2s;
    }
    .footer-col a:hover { color: var(--white); }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: var(--sp-2);
      padding-top: var(--sp-4);
      border-top: 1px solid var(--border);
      font-size: var(--text-xs);
      color: var(--muted);
    }
    @media (max-width: 760px) {
      .footer-grid { grid-template-columns: 1fr; }
    }

    /* ================================================================
       SCROLL REVEAL — aparecimento suave de secções
       ================================================================ */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }
