:root {
    --bg: #F7F8FA;
    --bg-alt: #EEF1F5;
    --bg-card: #FFFFFF;
    --bg-deep: #0E1525;
    --ink: #0E1525;
    --ink-soft: #5A6173;
    --ink-faint: #8B92A3;
    --line: #E1E5EC;
    --line-strong: #C4CAD6;

    --brand-cyan: #1AB4F0;
    --brand-blue: #2D6FE0;
    --brand-blue-dark: #1F5BC9;
    --brand-violet: #5B47DB;
    --brand-gradient: linear-gradient(135deg, #1AB4F0 0%, #2D6FE0 55%, #5B47DB 100%);
    --brand-soft: rgba(45, 111, 224, 0.08);

    --container: 1180px;
    --gutter-d: 48px;
    --gutter-m: 24px;
    --section: 120px;
    --section-m: 72px;

    --font-display: 'Manrope', -apple-system, system-ui, sans-serif;
    --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }

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

  /* ---- Typography ---- */
  h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
  h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.05; font-weight: 700; }
  h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 700; }
  h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
  p { margin: 0; }

  .eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .eyebrow-grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
  }

  em.italic-display {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--brand-blue);
  }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    border: none;
  }
  .btn-primary {
    background: var(--brand-blue);
    color: white;
    box-shadow: 0 1px 2px rgba(14, 21, 37, 0.08), 0 4px 14px -4px rgba(45, 111, 224, .35);
  }
  .btn-primary:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(14, 21, 37, 0.08), 0 8px 20px -6px rgba(45, 111, 224, .45);
  }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 13px 0;
    position: relative;
  }
  .btn-ghost::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 1px;
    width: 100%;
    background: var(--ink);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .25s ease;
  }
  .btn-ghost:hover::after { transform: scaleX(1); transform-origin: left; }

  /* ---- Header ---- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(247, 248, 250, 0.78);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease;
  }
  header.scrolled { border-bottom-color: var(--line); }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }
  .nav-brand { display: flex; align-items: center; gap: 10px; }
  .nav-brand-mark { width: 40px; height: 40px; object-fit: contain; }
  .nav-brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; letter-spacing: 0.02em; }

  .nav-links {
    display: flex; gap: 32px;
    list-style: none; padding: 0; margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .nav-links a { color: var(--ink-soft); transition: color .18s ease; }
  .nav-links a:hover { color: var(--ink); }

  .nav-cta { display: flex; align-items: center; gap: 16px; }
  .nav-phone { font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

  @media (max-width: 860px) {
    .nav-links, .nav-phone { display: none; }
  }

  /* ---- Hero ---- */
  .hero {
    padding: 80px 0 var(--section);
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(91, 71, 219, 0.06) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
  }
  .hero-content > * + * { margin-top: 24px; }
  .hero h1 { margin-top: 12px; }
  .hero p.lead { color: var(--ink-soft); font-size: 1.0625rem; max-width: 520px; }
  .hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

  /* Hero visual mockup */
  .hero-mockup { position: relative; aspect-ratio: 4/4; }
  .mockup-card {
    position: absolute;
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 20px 50px -20px rgba(14, 21, 37, .12), 0 0 0 1px rgba(14, 21, 37, .04);
    overflow: hidden;
  }
  .mockup-terminal {
    top: 0; left: 0; width: 70%;
    background: #0F1322;
    color: #E0E6F0;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    transform: rotate(-3deg);
  }
  .mockup-terminal .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
  .mockup-terminal .dot-r { background: #FF5F56; }
  .mockup-terminal .dot-y { background: #FFBD2E; }
  .mockup-terminal .dot-g { background: #27C93F; }
  .mockup-terminal .line { margin-top: 10px; }
  .mockup-terminal .prompt { color: #5B47DB; }
  .mockup-terminal .ok { color: #27C93F; }
  .mockup-terminal .dim { color: #8B92A3; }

  .mockup-chat {
    bottom: 8%;
    left: 12%;
    width: 56%;
    padding: 16px;
    transform: rotate(2deg);
  }
  .mockup-chat .chat-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px; font-weight: 600;
  }
  .mockup-chat .chat-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-gradient);
    display: grid; place-items: center;
    color: white; font-size: 11px; font-weight: 700;
  }
  .mockup-chat .chat-msg {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    margin-top: 10px;
    max-width: 85%;
  }
  .mockup-chat .from-bot { background: var(--bg-alt); color: var(--ink); }
  .mockup-chat .from-user { background: var(--brand-blue); color: white; margin-left: auto; }

  .mockup-panel {
    top: 18%; right: 0; width: 52%;
    padding: 16px;
    transform: rotate(4deg);
  }
  .mockup-panel .panel-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
  }
  .mockup-panel .panel-row:last-child { border-bottom: none; }
  .mockup-panel .panel-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
  .mockup-panel .badge {
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 600;
  }
  .badge-ok { background: rgba(39, 201, 63, 0.12); color: #1F9D33; }
  .badge-active { background: var(--brand-soft); color: var(--brand-blue); }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-mockup { max-width: 420px; margin: 0 auto; }
  }

  /* ---- Sectors strip ---- */
  .sectors-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
    background: var(--bg-alt);
  }
  .sectors-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }
  .sectors-strip-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    max-width: 200px;
  }
  .sectors-strip-list {
    display: flex; gap: 40px; flex-wrap: wrap;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-soft);
  }
  .sectors-strip-list span { display: inline-flex; align-items: center; gap: 8px; }

  /* ---- Section base ---- */
  section { padding: var(--section) 0; }
  section.tight { padding: calc(var(--section) * 0.7) 0; }

  .section-head {
    max-width: 720px;
    margin-bottom: 64px;
  }
  .section-head h2 { margin-top: 12px; }
  .section-head p { color: var(--ink-soft); font-size: 1.0625rem; margin-top: 16px; }

  /* ---- Benefits ---- */
  .benefit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
  }
  .benefit:last-child { margin-bottom: 0; }
  .benefit:nth-child(even) .benefit-text { order: 2; }
  .benefit-text > * + * { margin-top: 18px; }
  .benefit-text h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.6vw, 1.875rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }
  .benefit-text p { color: var(--ink-soft); font-size: 1.0125rem; }

  .benefit-visual {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
  }

  /* Visual variations */
  .visual-years {
    background: var(--bg-deep);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .visual-years .big-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
  }
  .visual-years .label {
    margin-top: 14px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
  }

  .visual-stack {
    background: var(--bg-alt);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  .visual-stack-row {
    background: var(--bg-card);
    padding: 13px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(14, 21, 37, .04);
  }
  .visual-stack-icon {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--brand-soft);
    display: grid; place-items: center;
    color: var(--brand-blue);
    font-size: 13px;
    flex-shrink: 0;
  }
  .visual-stack-row.glow { background: var(--brand-blue); color: white; }
  .visual-stack-row.glow .visual-stack-icon { background: rgba(255,255,255,.18); color: white; }

  .visual-code {
    background: #0F1322;
    color: #E0E6F0;
    padding: 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .visual-code .key { color: #1AB4F0; }
  .visual-code .str { color: #B0E47C; }
  .visual-code .num { color: #FFBD2E; }
  .visual-code .com { color: #6B7388; }

  .visual-ai {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
  .visual-ai-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    max-width: 80%;
  }
  .visual-ai-bubble.user {
    background: var(--brand-blue);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
  }
  .visual-ai-bubble.bot {
    background: var(--bg-card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
  }
  .visual-ai-typing {
    display: inline-flex; gap: 4px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    width: fit-content;
  }
  .visual-ai-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-faint);
    animation: typing 1.4s infinite ease-in-out;
  }
  .visual-ai-typing span:nth-child(2) { animation-delay: .2s; }
  .visual-ai-typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-4px); opacity: 1; }
  }

  @media (max-width: 860px) {
    .benefit { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
    .benefit:nth-child(even) .benefit-text { order: 0; }
  }

  /* ---- Services grid ---- */
  .services-bg { background: var(--bg-alt); }
  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .service-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -20px rgba(14, 21, 37, .1);
    border-color: var(--line-strong);
  }
  .service-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--brand-soft);
    display: grid; place-items: center;
    color: var(--brand-blue);
    margin-bottom: 22px;
  }
  .service-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }
  .service-card p { color: var(--ink-soft); margin-bottom: 18px; font-size: 0.95rem; }
  .service-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
  }
  .service-list li { display: flex; align-items: center; gap: 8px; }
  .service-list li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--brand-blue);
  }

  .extras-row {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .extra-card {
    padding: 22px 24px;
    border-left: 2px solid var(--line-strong);
  }
  .extra-card h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
  }
  .extra-card p { color: var(--ink-soft); font-size: 0.875rem; margin: 0; }

  @media (max-width: 860px) {
    .services-grid, .extras-row { grid-template-columns: 1fr; }
  }

  /* ---- Sectors detailed ---- */
  .sectors-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .sector-tile {
    background: var(--bg-card);
    padding: 28px;
    transition: background .2s ease;
  }
  .sector-tile:hover { background: var(--bg-alt); }
  .sector-tile-icon {
    width: 32px; height: 32px;
    color: var(--brand-blue);
    margin-bottom: 16px;
  }
  .sector-tile h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }
  .sector-tile p { color: var(--ink-soft); font-size: 0.875rem; margin: 0; line-height: 1.5; }

  @media (max-width: 860px) {
    .sectors-detailed-grid { grid-template-columns: 1fr; }
  }

  /* ---- Process ---- */
  .process-bg { background: var(--bg-deep); color: white; }
  .process-bg .eyebrow { color: rgba(255,255,255,.6); }
  .process-bg h2 { color: white; }
  .process-bg .section-head p { color: rgba(255,255,255,.7); }

  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 80px;
  }
  .process-step { display: flex; flex-direction: column; gap: 14px; }
  .process-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 0.95;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
  }
  .process-step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    color: white;
    letter-spacing: -0.015em;
  }
  .process-step p { color: rgba(255,255,255,.7); font-size: 0.9875rem; }

  @media (max-width: 860px) {
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
  }

  /* ---- Stack ---- */
  .stack-cloud {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .stack-item {
    background: var(--bg-card);
    padding: 24px 12px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background .2s ease, color .2s ease;
  }
  .stack-item:hover { background: var(--bg-alt); color: var(--ink); }
  .stack-foot {
    margin-top: 28px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    font-style: italic;
  }
  @media (max-width: 860px) { .stack-cloud { grid-template-columns: repeat(2, 1fr); } }

  /* ---- Testimonials ---- */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .testimonial {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .testimonial blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }
  .testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
  .testimonial-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 0.875rem;
  }
  .testimonial-name { font-weight: 600; font-size: 0.9375rem; }
  .testimonial-role { color: var(--ink-soft); font-size: 0.8125rem; }
  @media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; } }

  /* ---- FAQ ---- */
  .faq-list { max-width: 820px; margin: 0 auto; }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 26px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }
  .faq-q-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid; place-items: center;
    color: var(--ink-soft);
    transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  }
  .faq-item.open .faq-q-icon {
    transform: rotate(45deg);
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
  }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .faq-a-inner {
    padding: 0 0 26px;
    color: var(--ink-soft);
    font-size: 0.9875rem;
    max-width: 90%;
  }

  /* ---- CTA ---- */
  .cta-final {
    background: var(--bg-deep);
    color: white;
    text-align: center;
    padding: calc(var(--section) * 1.05) var(--gutter-d);
    position: relative;
    overflow: hidden;
  }
  .cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 100%, rgba(26, 180, 240, 0.16) 0%, transparent 45%),
      radial-gradient(circle at 80% 0%, rgba(91, 71, 219, 0.18) 0%, transparent 45%);
    pointer-events: none;
  }
  .cta-final h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    max-width: 14ch;
    margin: 0 auto;
    position: relative;
    color: white;
  }
  .cta-final p {
    margin-top: 20px;
    font-style: italic;
    font-size: 1.0625rem;
    color: rgba(255,255,255,.65);
    position: relative;
  }
  .cta-final .btn { margin-top: 36px; position: relative; }

  /* ---- Footer ---- */
  footer {
    background: var(--bg-deep);
    color: rgba(255,255,255,.6);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  footer h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
  }
  footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
  footer ul a { transition: color .18s ease; }
  footer ul a:hover { color: white; }
  footer .footer-brand-text { color: rgba(255,255,255,.55); font-size: 0.875rem; line-height: 1.7; margin-top: 16px; max-width: 32ch; }
  footer .footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,.4);
  }
  @media (max-width: 860px) {
    footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  }

  
  /* ---- Lang switcher (header) ---- */
  .lang-switcher {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-right: 8px;
  }
  .lang-switcher a {
    color: var(--ink-soft);
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .18s ease, color .18s ease;
  }
  .lang-switcher a:hover { color: var(--ink); }
  .lang-switcher a.active {
    color: var(--ink);
    background: var(--bg-alt);
  }
  @media (max-width: 540px) {
    .lang-switcher { display: none; }
  }

  /* ---- Scroll reveal ---- */
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease-out, transform .6s ease-out;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ---- Slider dots (punt 05) ---- */
  .slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .slider-dot:hover { background: rgba(255, 255, 255, 0.55); }
  .slider-dot.active {
    background: white;
    transform: scale(1.25);
  }

  /* ============================================================
     MOBILE FIXES — pantalles fins a 640px
     Soluciona: header tapat, mockups del hero desbordats,
                botons que es tallen.
     ============================================================ */

  @media (max-width: 640px) {
    :root {
      --gutter-d: 20px;
      --section: 80px;
    }

    body { font-size: 16px; }

    /* Header: més compacte i amb logo + INSENET reduïts */
    .nav { height: 64px; gap: 12px; }
    .nav-brand { gap: 8px; min-width: 0; flex-shrink: 1; }
    .nav-brand-mark { width: 32px; height: 32px; }
    .nav-brand-text {
      font-size: 1.125rem;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }
    .nav-cta .btn {
      padding: 10px 14px;
      font-size: 0.85rem;
      white-space: nowrap;
    }

    /* Hero: mockup a baix amb mida controlada */
    .hero { padding: 40px 0 72px; }
    .hero h1 { font-size: 2.25rem; }
    .hero-grid {
      grid-template-columns: 1fr !important;
      gap: 40px;
    }
    .hero-mockup {
      max-width: 100%;
      width: 100%;
      aspect-ratio: 5/4;
      margin: 0;
    }
    /* Reduir rotacions i mides de les targetes flotants per evitar desbordament */
    .mockup-terminal {
      width: 78%;
      transform: rotate(-2deg);
      font-size: 11px;
    }
    .mockup-panel {
      width: 60%;
      transform: rotate(3deg);
      top: 22%;
    }
    .mockup-chat {
      width: 64%;
      bottom: 4%;
      transform: rotate(1deg);
    }
    .mockup-chat .chat-msg { font-size: 11.5px; }
    .mockup-panel .panel-row { font-size: 11.5px; padding: 8px 0; }

    /* Hero actions: stack vertical perquè no es tallin */
    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-actions .btn-ghost { width: auto; }

    /* Sectors strip: una sola línia adaptable */
    .sectors-strip { padding: 24px 0; }
    .sectors-strip .container { flex-direction: column; align-items: flex-start; gap: 16px; }
    .sectors-strip-list { gap: 16px 24px; }
    .sectors-strip-list span { font-size: 0.875rem; }

    /* Benefits */
    .benefit-text h3 { font-size: 1.5rem; }

    /* Process header més comprimit */
    .process-step h3 { font-size: 1.25rem; }
    .process-num { font-size: 3rem; }

    /* Section heads */
    .section-head { margin-bottom: 40px; }
    .section-head p { font-size: 1rem; }

    /* CTA final */
    .cta-final { padding: 80px 20px; }
    .cta-final h2 { font-size: 2rem; }

    /* Footer més apilat */
    footer { padding: 48px 0 24px; }
    footer .footer-grid { gap: 32px 24px; }
    footer .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Testimonials i serveis: targetes més estretes */
    .service-card, .testimonial { padding: 24px; }
  }

  /* Mòbils molt estrets (< 380px): ajustaments addicionals */
  @media (max-width: 380px) {
    .nav-brand-text { font-size: 1rem; }
    .nav-cta .btn { padding: 9px 12px; font-size: 0.8rem; }
    .hero h1 { font-size: 2rem; }
    .benefit-text h3 { font-size: 1.375rem; }
  }
