/* Extracted from public/index.html for SEO Commit 2 (HTML→Next.js migration). DO NOT EDIT — original visual parity. */
* { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg-primary: #0a0a1a;
      --bg-secondary: #111128;
      --bg-chat: #161633;
      --bg-input: #1e1e3f;
      --bg-card: #13132e;
      --text-primary: #e8e8f0;
      --text-secondary: #9898b8;
      --text-muted: #6868a0;
      --accent-orange: #ff6b35;
      --accent-purple: #7d2ae8;
      --accent-pink: #e84393;
      --accent-gradient: linear-gradient(135deg, #ff6b35, #e84393, #7d2ae8);
      --border-color: #2a2a4a;
      --msg-user-bg: #1a1a40;
      --msg-bot-bg: #0f0f2a;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
      color: var(--text-primary);
      min-height: 100vh;
      display: block !important;
      width: 100% !important;
      /* Body bg spójny z /o-mnie — radial gradients + linear, full viewport. */
      background:
        radial-gradient(ellipse 800px 600px at 100% 0%, rgba(34,211,238,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 700px 500px at 0% 100%, rgba(236,72,153,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 500px 400px at 50% 50%, rgba(139,92,246,0.15) 0%, transparent 70%),
        linear-gradient(135deg, #0a0612 0%, #1a0f2e 50%, #0f0a1f 100%) !important;
      background-attachment: scroll !important;
    }

    /* ── Welcome Screen (redesign 2026-05-19) — block layout spójne z /o-mnie ──
       Legacy flex+align-items:center skreślony, bo psuł left-alignment
       elementów wewnątrz hero (eyebrow + H1 były centrowane zamiast lewo). */
    #welcome-screen {
      display: block;
      width: 100%;
      max-width: none;
      padding: 0;
      animation: fadeIn 0.6s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .avatar-welcome {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid transparent;
      background: var(--accent-gradient) border-box;
      -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      margin-bottom: 1.5rem;
      box-shadow: 0 0 50px rgba(125, 42, 232, 0.3), 0 0 100px rgba(255, 107, 53, 0.1);
    }

    /* Fix: proper avatar with gradient border */
    .avatar-container {
      position: relative;
      width: 136px;
      height: 136px;
      border-radius: 50%;
      padding: 3px;
      background: var(--accent-gradient);
      margin-bottom: 1.5rem;
      box-shadow: 0 0 50px rgba(125, 42, 232, 0.3), 0 0 100px rgba(255, 107, 53, 0.1);
    }

    .avatar-container img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }

    .welcome-title {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
      text-align: center;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .welcome-role {
      font-size: 1rem;
      color: var(--text-secondary);
      margin-bottom: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.5px;
    }

    .welcome-subtitle {
      font-size: 0.92rem;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 2rem;
      line-height: 1.6;
      max-width: 420px;
    }

    /* ── Expertise Tags ── */
    .expertise-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
      margin-bottom: 2rem;
    }

    .tag {
      font-size: 0.75rem;
      padding: 0.35rem 0.85rem;
      border-radius: 20px;
      border: 1px solid var(--border-color);
      background: var(--bg-card);
      color: var(--text-secondary);
      font-weight: 500;
      transition: border-color 0.2s, color 0.2s;
    }

    .tag:hover {
      border-color: var(--accent-purple);
      color: var(--text-primary);
    }

    /* ── Welcome Form ── */
    .welcome-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 1.5rem;
    }

    .form-group label {
      display: block;
      font-size: 0.82rem;
      color: var(--text-secondary);
      margin-bottom: 0.4rem;
      font-weight: 500;
    }

    .form-group input {
      width: 100%;
      padding: 0.85rem 1rem;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 0.95rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-group input:focus {
      border-color: var(--accent-purple);
      box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.15);
    }

    .form-group input::placeholder {
      color: #555578;
    }

    .optional-tag {
      font-size: 0.72rem;
      color: #666688;
      font-weight: 400;
    }

    .btn-start {
      margin-top: 0.5rem;
      padding: 0.9rem 2rem;
      background: var(--accent-gradient);
      border: none;
      border-radius: 12px;
      color: #fff;
      font-size: 1rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }

    .btn-start:hover {
      opacity: 0.92;
      box-shadow: 0 6px 25px rgba(255, 107, 53, 0.3);
      transform: translateY(-1px);
    }
    .btn-start:active { transform: scale(0.98) translateY(0); }
    .btn-start:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* ── Contact Footer ── */
    .contact-footer {
      margin-top: 2rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .contact-link {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .contact-link:hover {
      color: var(--text-primary);
    }

    .contact-link svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .contact-divider {
      width: 1px;
      height: 16px;
      background: var(--border-color);
    }

    /* ── Chat Screen ── */
    #chat-screen {
      display: none;
      flex-direction: column;
      width: 100%;
      max-width: 720px;
      height: calc(100vh - 60px);
      max-height: calc(100dvh - 60px);
      margin-top: 0;
    }

    .chat-header {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 0.9rem 1.2rem;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      flex-shrink: 0;
    }

    .avatar-header-wrap {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      padding: 2px;
      background: var(--accent-gradient);
      flex-shrink: 0;
    }

    .avatar-header-wrap img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }

    .header-info h2 {
      font-size: 0.95rem;
      font-weight: 600;
    }

    .header-info span {
      font-size: 0.75rem;
      color: var(--text-secondary);
    }

    .header-right {
      margin-left: auto;
      display: flex;
      gap: 0.6rem;
    }

    .header-icon-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.2s, border-color 0.2s;
      cursor: pointer;
    }

    .header-icon-btn:hover {
      color: var(--text-primary);
      border-color: var(--accent-purple);
    }

    .header-icon-btn svg {
      width: 16px;
      height: 16px;
    }

    .online-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      background: #22c55e;
      border-radius: 50%;
      margin-right: 4px;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    /* ── Messages Area ── */
    .messages-area {
      flex: 1;
      overflow-y: auto;
      padding: 1.2rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      scroll-behavior: smooth;
    }

    .messages-area::-webkit-scrollbar { width: 6px; }
    .messages-area::-webkit-scrollbar-track { background: transparent; }
    .messages-area::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

    .message {
      display: flex;
      gap: 0.6rem;
      max-width: 82%;
      animation: msgIn 0.3s ease;
    }

    @keyframes msgInBot {
      from { opacity: 0; transform: translateX(-12px) translateY(8px); }
      to { opacity: 1; transform: translateX(0) translateY(0); }
    }
    @keyframes msgInUser {
      from { opacity: 0; transform: translateX(12px) translateY(8px); }
      to { opacity: 1; transform: translateX(0) translateY(0); }
    }
    @keyframes msgIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .message.bot { align-self: flex-start; animation: msgInBot 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
    .message.user { align-self: flex-end; flex-direction: row-reverse; animation: msgInUser 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

    .message .avatar-msg-wrap {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      padding: 1.5px;
      background: var(--accent-gradient);
      flex-shrink: 0;
      margin-top: 2px;
    }

    .message .avatar-msg-wrap img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }

    .message.user .avatar-msg-wrap { display: none; }

    .message .bubble {
      padding: 0.75rem 1rem;
      border-radius: 16px;
      line-height: 1.6;
      font-size: 0.9rem;
    }

    .message.bot .bubble {
      background: var(--msg-bot-bg);
      border: 1px solid var(--border-color);
      border-bottom-left-radius: 4px;
    }

    .message.user .bubble {
      background: var(--accent-gradient);
      color: #fff;
      border-bottom-right-radius: 4px;
    }

    .typing-indicator {
      display: flex;
      flex-direction: column;
      align-self: flex-start;
      max-width: 85%;
      gap: 0;
    }
    .typing-indicator-row {
      display: flex;
      gap: 0.6rem;
      align-items: center;
    }

    .typing-indicator .avatar-msg-wrap {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      padding: 1.5px;
      background: var(--accent-gradient);
      flex-shrink: 0;
    }

    .typing-indicator .avatar-msg-wrap img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }

    .typing-dots {
      display: flex;
      gap: 4px;
      padding: 0.75rem 1rem;
      background: var(--msg-bot-bg);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      border-bottom-left-radius: 4px;
      align-items: center;
    }

    .typing-dots span {
      width: 7px;
      height: 7px;
      background: var(--text-secondary);
      border-radius: 50%;
      animation: typing 1.4s infinite;
    }

    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes typing {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
      30% { transform: translateY(-4px); opacity: 1; }
    }

    /* ── Contextual typing text (below dots) ── */
    .typing-context {
      font-size: 0.72rem;
      color: var(--text-muted);
      padding-left: 44px;
      margin-top: 4px;
      animation: typingTextFade 2s ease-in-out infinite;
    }
    @keyframes typingTextFade {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    /* ── Dynamic avatar glow (thinking state) ── */
    .avatar-header-wrap.thinking {
      animation: avatarThink 1.5s ease-in-out infinite;
    }
    @keyframes avatarThink {
      0%, 100% { box-shadow: 0 0 8px rgba(125, 42, 232, 0.3); }
      50% { box-shadow: 0 0 20px rgba(125, 42, 232, 0.7), 0 0 40px rgba(255, 107, 53, 0.3); }
    }

    /* ── Conversation progress bar ── */
    .progress-bar-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 14px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      flex-shrink: 0;
    }
    .progress-bar-track {
      flex: 1;
      height: 4px;
      background: var(--bg-input);
      border-radius: 2px;
      overflow: hidden;
    }
    .progress-bar-fill {
      height: 100%;
      background: var(--accent-gradient);
      transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
      width: 0%;
      border-radius: 2px;
    }
    .progress-stage-label {
      font-size: 0.68rem;
      color: var(--text-muted);
      white-space: nowrap;
      font-weight: 500;
      min-width: fit-content;
      transition: color 0.3s;
    }
    .progress-stage-label .stage-current {
      color: var(--text-secondary);
    }
    .progress-stage-label .stage-arrow {
      color: var(--text-muted);
      margin: 0 2px;
    }
    .progress-stage-label .stage-next {
      color: var(--text-muted);
    }



    /* ── Sound toggle ── */
    .btn-sound-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
      font-size: 0.85rem;
    }
    .btn-sound-toggle:hover {
      color: var(--text-primary);
      border-color: var(--accent-purple);
    }

    /* ── Input Area ── */
    .input-area {
      padding: 0.8rem 1.2rem;
      background: var(--bg-secondary);
      border-top: 1px solid var(--border-color);
      display: flex;
      gap: 0.6rem;
      flex-shrink: 0;
    }

    .input-area textarea {
      flex: 1;
      padding: 0.75rem 1rem;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 0.9rem;
      font-family: inherit;
      resize: none;
      outline: none;
      max-height: 120px;
      min-height: 44px;
      line-height: 1.4;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input-area textarea:focus {
      border-color: var(--accent-purple);
      box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.1);
    }

    .input-area textarea::placeholder {
      color: #555578;
    }

    .btn-send {
      width: 44px;
      height: 44px;
      background: var(--accent-gradient);
      border: none;
      border-radius: 12px;
      color: #fff;
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: opacity 0.2s, transform 0.15s;
      align-self: flex-end;
    }

    .btn-send:hover { opacity: 0.85; transform: translateY(-1px); }
    .btn-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

    /* ── Summary Button ── */
    .btn-summary {
      width: 44px;
      height: 44px;
      background: transparent;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: var(--text-secondary);
      font-size: 1.1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s;
      align-self: flex-end;
      position: relative;
    }
    .btn-summary:hover {
      border-color: var(--accent-purple);
      color: var(--accent-purple);
      background: rgba(125, 42, 232, 0.08);
    }
    .btn-summary:disabled { opacity: 0.3; cursor: not-allowed; }
    .btn-summary-tooltip {
      display: none;
      position: absolute;
      bottom: calc(100% + 8px);
      right: 0;
      background: var(--bg-card);
      color: var(--text-primary);
      font-size: 12px;
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      white-space: nowrap;
      pointer-events: none;
    }
    .btn-summary:hover .btn-summary-tooltip { display: block; }

    /* ── Summary Button CTA pulse (activated when hot lead detected) ── */
    @keyframes summaryPulse {
      0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.3), 0 0 8px rgba(34,197,94,0.1); border-color: #22c55e; }
      50% { box-shadow: 0 0 12px rgba(34,197,94,0.6), 0 0 24px rgba(34,197,94,0.2); border-color: #4ade80; }
    }
    .btn-summary.cta-active {
      animation: summaryPulse 2s ease-in-out infinite;
      color: #22c55e;
    }
    .btn-summary.cta-active:hover {
      border-color: #4ade80;
      color: #4ade80;
      background: rgba(34,197,94,0.1);
    }
    .btn-summary .cta-badge {
      display: none;
      position: absolute;
      top: -4px;
      right: -4px;
      width: 10px;
      height: 10px;
      background: #ef4444;
      border-radius: 50%;
      border: 2px solid var(--bg-main);
    }
    .btn-summary.cta-active .cta-badge {
      display: block;
    }
    .btn-summary.cta-active .btn-summary-tooltip {
      display: block;
      background: #166534;
      color: #f0fdf4;
      border-color: #22c55e;
      animation: tooltipFadeIn 0.5s ease-out 1s both;
    }
    @keyframes tooltipFadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    /* On mobile: hide auto-tooltip (tap goes straight to popup) */
    @media (hover: none) {
      .btn-summary.cta-active .btn-summary-tooltip { display: none; }
    }

    /* ── Summary Popup ── */
    .summary-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    .summary-overlay.active { display: flex; }
    .summary-popup {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 28px;
      width: 90%;
      max-width: 400px;
      position: relative;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .summary-popup h3 {
      color: var(--text-primary);
      font-size: 1.1rem;
      margin: 0 0 6px;
    }
    .summary-popup p {
      color: var(--text-secondary);
      font-size: 0.85rem;
      margin: 0 0 20px;
      line-height: 1.5;
    }
    .summary-popup input[type="email"] {
      width: 100%;
      padding: 12px 14px;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      color: var(--text-primary);
      font-size: 0.95rem;
      font-family: inherit;
      outline: none;
      margin-bottom: 14px;
      transition: border-color 0.2s;
      box-sizing: border-box;
    }
    .summary-popup input[type="email"]:focus {
      border-color: var(--accent-purple);
    }
    .summary-popup input[type="email"]::placeholder { color: #555578; }
    .summary-popup .btn-send-summary {
      width: 100%;
      padding: 12px;
      background: var(--accent-gradient);
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
      font-family: inherit;
    }
    .summary-popup .btn-send-summary:hover { opacity: 0.9; }
    .summary-popup .btn-send-summary:disabled { opacity: 0.5; cursor: not-allowed; }
    .summary-close {
      position: absolute;
      top: 12px;
      right: 14px;
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 1.3rem;
      cursor: pointer;
      padding: 4px;
      line-height: 1;
    }
    .summary-close:hover { color: var(--text-primary); }
    .summary-success {
      text-align: center;
      padding: 10px 0;
    }
    .summary-success svg { margin-bottom: 8px; }
    .summary-success p { color: var(--accent-purple); font-weight: 600; font-size: 1rem; margin: 0; }
    .summary-success span { color: var(--text-secondary); font-size: 0.85rem; }

    /* ── Inline Diagnosis Email Form ── */
    .diagnosis-gate-form {
      background: linear-gradient(135deg, rgba(125,42,232,0.08) 0%, rgba(249,115,22,0.08) 100%);
      border: 1px solid rgba(125,42,232,0.25);
      border-radius: 16px;
      padding: 20px;
      margin: 12px 8px 8px 44px;
      max-width: 85%;
      animation: msgInBot 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .diagnosis-gate-form h4 {
      color: var(--accent-purple);
      margin: 0 0 6px;
      font-size: 0.9rem;
      font-weight: 600;
    }
    .diagnosis-gate-form p {
      color: var(--text-secondary);
      font-size: 0.78rem;
      margin: 0 0 12px;
      line-height: 1.4;
    }
    .diagnosis-gate-form .dg-input-row {
      display: flex;
      gap: 8px;
    }
    .diagnosis-gate-form input[type="email"] {
      flex: 1;
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid var(--border-color);
      background: var(--bg-input);
      color: var(--text-primary);
      font-size: 0.85rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s;
    }
    .diagnosis-gate-form input[type="email"]:focus {
      border-color: var(--accent-purple);
    }
    .diagnosis-gate-form .btn-dg-send {
      padding: 10px 18px;
      border-radius: 10px;
      border: none;
      background: var(--accent-gradient);
      color: #fff;
      font-weight: 600;
      font-size: 0.82rem;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.2s, transform 0.2s;
      font-family: inherit;
    }
    .diagnosis-gate-form .btn-dg-send:hover { opacity: 0.9; transform: scale(1.02); }
    .diagnosis-gate-form .btn-dg-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
    .diagnosis-gate-form .dg-success {
      text-align: center;
      padding: 8px 0;
    }
    .diagnosis-gate-form .dg-success svg { margin-bottom: 6px; }
    .diagnosis-gate-form .dg-success p { color: var(--accent-purple); font-weight: 600; font-size: 0.88rem; margin: 0 0 4px; }
    .diagnosis-gate-form .dg-success span { color: var(--text-secondary); font-size: 0.78rem; }
    .diagnosis-gate-form .dg-error { color: #ef4444; font-size: 0.75rem; margin-top: 6px; }

    /* ── Chat Footer (contact links) ── */
    .chat-footer {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.2rem;
      padding: 0.5rem 1rem;
      background: var(--bg-secondary);
      border-top: 1px solid var(--border-color);
      flex-shrink: 0;
    }

    .chat-footer-link {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.72rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .chat-footer-link:hover {
      color: var(--text-primary);
    }

    .chat-footer-link svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
    }

    /* ── Loading overlay ── */
    .loading-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--bg-primary);
      z-index: 100;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
    }

    .loading-overlay.active { display: flex; }

    .loading-spinner {
      width: 48px;
      height: 48px;
      border: 3px solid var(--border-color);
      border-top-color: var(--accent-purple);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .loading-text {
      color: var(--text-secondary);
      font-size: 0.9rem;
      text-align: center;
    }

    /* ── Responsive ── */
    @media (max-width: 480px) {
      #welcome-screen { padding: 1.5rem; }
      .welcome-title { font-size: 1.5rem; }
      .messages-area { padding: 0.8rem; }
      .message { max-width: 92%; }
      .expertise-tags { gap: 0.4rem; }
      .tag { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
      .contact-footer { gap: 1rem; }
      .welcome-form { padding: 1.2rem; }
    }

    /* ── Markdown in messages ── */
    .bubble p { margin: 0 0 0.5rem 0; }
    .bubble p:last-child { margin-bottom: 0; }
    .bubble strong { font-weight: 600; }
    .bubble ul, .bubble ol { padding-left: 1.2rem; margin: 0.3rem 0; }
    .bubble li { margin: 0.15rem 0; }
    .bubble a { color: #a78bfa; text-decoration: underline; }
    .bubble a:hover { color: #c4b5fd; }

    .bubble .md-table {
      width: 100%;
      border-collapse: collapse;
      margin: 0.5rem 0;
      font-size: 0.85rem;
    }
    .bubble .md-table th, .bubble .md-table td {
      border: 1px solid rgba(255,255,255,0.15);
      padding: 0.4rem 0.6rem;
      text-align: left;
    }
    .bubble .md-table th {
      background: rgba(255,255,255,0.08);
      font-weight: 600;
      color: #e0b0ff;
    }
    .bubble .md-table tr:nth-child(even) td {
      background: rgba(255,255,255,0.03);
    }

    /* ── Quick Reply Buttons ── */
    .quick-replies {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.6rem;
      max-width: 82%;
      align-self: flex-start;
      padding-left: 44px;
      animation: msgIn 0.3s ease;
    }

    .quick-reply-btn {
      padding: 0.5rem 1rem;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      color: var(--text-primary);
      font-size: 0.82rem;
      font-family: inherit;
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
      line-height: 1.4;
      text-align: left;
    }

    .quick-reply-btn:hover {
      border-color: var(--accent-purple);
      background: var(--bg-input);
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(125, 42, 232, 0.15);
    }

    .quick-reply-btn:active {
      transform: scale(0.97);
    }

    /* Contact CTA buttons */
    .contact-cta-btn {
      text-decoration: none;
      display: inline-flex;
      align-items: center;
    }

    .email-cta {
      border-color: #e67e22;
      background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.05));
    }
    .email-cta:hover {
      border-color: #e67e22;
      background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(230, 126, 34, 0.1));
      box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
    }

    .phone-cta {
      border-color: #22c55e;
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    }
    .phone-cta:hover {
      border-color: #22c55e;
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
      box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    }

    @media (max-width: 480px) {
      .quick-replies { padding-left: 0; max-width: 100%; }
      .quick-reply-btn { font-size: 0.78rem; padding: 0.45rem 0.85rem; }
    }


/* ── Top Navigation Bar ── */
body { padding-top: 60px; }
#welcome-screen { padding-top: 0; }
#chat-screen { margin: 60px auto 0; }

/* ── O mnie Section ── */
.about-section {
  max-width: 520px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.about-section h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}
.about-bio {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}
.highlight-card .hl-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-purple);
}
.highlight-card .hl-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.about-awards {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .about-highlights { grid-template-columns: 1fr; }
}

/* ── ROI Calculator ── */
.roi-section {
  max-width: 520px;
  margin: 2.5rem auto 0;
}
.roi-section h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}
.roi-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
}
.roi-slider-group {
  margin-bottom: 1.4rem;
}
.roi-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.roi-slider-label .roi-val {
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 0.95rem;
}
.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
}
.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
}
.roi-results {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}
.roi-result-block {
  padding: 0.8rem 0;
}
.roi-result-block + .roi-result-block {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.roi-result-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.roi-result-label .roi-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.roi-badge-uop {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.roi-badge-b2b {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}
.roi-result-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.roi-result-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.roi-savings-block {
  margin-top: 0.8rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  text-align: center;
}
.roi-savings-label {
  font-size: 0.78rem;
  color: #86efac;
  margin-bottom: 0.3rem;
}
.roi-savings-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #22c55e;
}
.roi-savings-detail {
  font-size: 0.72rem;
  color: #86efac;
  margin-top: 0.15rem;
}
.roi-cta {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  padding: 0.8rem;
  background: var(--accent-purple);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.roi-cta:hover { background: #6d28d9; }

/* ── Site Footer ── */
.site-footer {
  padding: 1.2rem 2rem 1.5rem;
  text-align: center;
}
.footer-copy { font-size: 0.62rem; color: #3a3a5a; letter-spacing: 0.02em; }

.roi-exp-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  opacity: 0.8;
}

/* ============================================================
   HOME REDESIGN 2026-05 — hero 2-col + 3-card grid
   Klasy: home-hero, chat-card, home-cards.
   #welcome-screen przekształcony w full-width kontener (powyżej).
   ============================================================ */

/* Hero: konwencja z /o-mnie — body bg pod nav, padding-top 130px,
   max-width 1280, padding-sides 32.
   UWAGA: nebula.css linia 204 ma #welcome-screen z !important na wszystkich
   properties (display:flex, max-width:1180, padding:64px 40px, margin:0 auto,
   align-items:center). Musimy przebić CAŁY zestaw z !important. */
#welcome-screen {
  display: block !important;
  align-items: initial !important;
  flex-direction: initial !important;
  margin: -72px 0 0 0 !important;
  padding: 130px 32px 80px !important;
  width: 100% !important;
  max-width: none !important;
}
.home-hero {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 auto 80px;
  max-width: 1280px;
}
/* Headline pełnej szerokości — H1 + eyebrow nad gridem */
.home-hero-headline {
  position: relative;
  z-index: 2;
  margin: 0 0 32px;
  width: 100%;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

/* LEFT column — SEO content */
.home-hero-left { color: #fff; }
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.home-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #ec4899);
  box-shadow: 0 0 12px rgba(236,72,153,0.7);
}
.home-h1 {
  /* IDENTYCZNE z /o-mnie .ab-h1; max-width usunięte żeby długi headline
     z cudzysłowami się nie łamał ("pytanie klienta" razem w 1. wersie). */
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0;
  color: #fff;
  max-width: none;
}
.home-h1 .home-h1-line { display: block; }
.home-h1 .accent {
  background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-lead {
  /* IDENTYCZNE z /o-mnie .ab-sub */
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 820px;
  margin: 0 0 16px;
}
.home-lead + .home-lead { margin-top: 0; margin-bottom: 28px; }
.home-lead:last-of-type { margin-bottom: 28px; }
.home-lead strong {
  color: #fff;
  font-weight: 700;
}
.home-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.home-highlights .hl {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
}
.home-highlights .hl:hover {
  transform: translateY(-3px);
  border-color: rgba(244,114,182,0.5);
  background: rgba(255,255,255,0.07);
}
.home-highlights .hl .n {
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f472b6;
  display: block;
}
.home-highlights .hl .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  display: block;
  line-height: 1.3;
}
/* Tagi — mniejsze, pod H1 (między H1 a opisem) */
.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
}
.home-tags .tag {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.home-bio-link {
  display: inline-block;
  font-size: 14px;
  color: #22d3ee;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(34,211,238,0.4);
  padding-bottom: 1px;
}
.home-bio-link:hover { color: #67e8f9; border-bottom-color: #67e8f9; }

/* RIGHT column — chat lead-magnet card */
.home-hero-right { width: 100%; }
.chat-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 540px;
  margin-left: auto;
}
.chat-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.chat-card-avatar {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6, #ec4899);
  flex-shrink: 0;
}
.chat-card-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.chat-card-avatar .online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #0d0a1f;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.chat-card-head-text { flex: 1; min-width: 0; }
.chat-card-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.2;
}
.chat-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #67e8f9;
}
.chat-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0 0 18px;
}

.chat-card .welcome-form {
  background: transparent;
  border: none;
  padding: 0;
  gap: 12px;
}
.chat-card .form-group label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.3px;
}
.chat-card .form-group input {
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
}
.chat-card .form-group input:focus {
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
  background: rgba(0,0,0,0.5);
}
.chat-card .form-group input::placeholder { color: rgba(255,255,255,0.4); }
.chat-card .optional-tag { color: rgba(255,255,255,0.45); }
.chat-card .btn-start {
  background: linear-gradient(135deg, #22d3ee, #8b5cf6, #ec4899);
  color: #07070a;
  font-weight: 800;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(139,92,246,0.32);
  letter-spacing: -0.01em;
}
.chat-card .btn-start:hover {
  box-shadow: 0 12px 40px rgba(139,92,246,0.5);
  opacity: 1;
}
.chat-card-consent {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
}
.chat-card-consent a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* 3 KARTY POD HERO — konwencja z /o-mnie ab-section */
.home-cards {
  width: 100%;
  max-width: 1280px;
  padding: 0;
  margin: 0 auto 80px;
}
.home-cards-eyebrow {
  /* spójne z .ab-section-eyebrow z /o-mnie */
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 16px;
  text-align: left;
}
.home-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 860px) {
  .home-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px 26px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background: radial-gradient(ellipse 400px 220px at 0% 0%, var(--card-accent, rgba(34,211,238,0.18)), transparent 60%);
}
.home-card[data-accent="cyan"]   { --card-accent: rgba(34,211,238,0.22); }
.home-card[data-accent="purple"] { --card-accent: rgba(139,92,246,0.26); }
.home-card[data-accent="pink"]   { --card-accent: rgba(236,72,153,0.22); }
.home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.home-card-label {
  position: relative;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  align-self: flex-start;
  z-index: 2;
}
.home-card[data-accent="cyan"]   .home-card-label { color: #22d3ee; border-color: rgba(34,211,238,0.32); }
.home-card[data-accent="purple"] .home-card-label { color: #a78bfa; border-color: rgba(139,92,246,0.4); }
.home-card[data-accent="pink"]   .home-card-label { color: #f472b6; border-color: rgba(236,72,153,0.4); }
.home-card-title {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: #fff;
  margin: 0 0 12px;
  z-index: 2;
}
.home-card-desc {
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 0 18px;
  z-index: 2;
}
.home-card-cta {
  position: relative;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22d3ee;
  z-index: 2;
}
.home-card[data-accent="purple"] .home-card-cta { color: #a78bfa; }
.home-card[data-accent="pink"]   .home-card-cta { color: #f472b6; }

/* RESPONSIVE: stack hero columns on mobile */
@media (max-width: 859px) {
  #welcome-screen { padding: 110px 20px 60px; }
  .home-hero { margin-bottom: 60px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .chat-card { margin: 0 auto; }
  .home-highlights { grid-template-columns: repeat(2, 1fr); }
  .home-cards { margin-bottom: 60px; }
}

/* ============================================================
   ANIMATIONS — Tier 1 (2026-05-22)
   1) Scroll-reveal stagger on hero/cards (.reveal + JS observer)
   2) Number count-up on highlights ([data-counter] + JS)
   3) Animated gradient on H1 accent
   4) Rotating conic-gradient ring on chat-card avatar
   5) Enhanced card hover (lift + sweep + accent border)
   Respects prefers-reduced-motion.
============================================================ */

/* 1) SCROLL-REVEAL ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* 3) ANIMATED GRADIENT ON H1 ACCENT ------------------------- */
.home-h1 .accent {
  background: linear-gradient(90deg, #22d3ee 0%, #a78bfa 25%, #f472b6 50%, #a78bfa 75%, #22d3ee 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: home-accent-flow 7s ease-in-out infinite;
}
@keyframes home-accent-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* 4) AVATAR RING ROTATION ---------------------------------- */
@property --avatar-ring-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.chat-card-avatar {
  background: conic-gradient(from var(--avatar-ring-angle), #22d3ee, #8b5cf6, #ec4899, #22d3ee);
  animation: home-avatar-ring 12s linear infinite;
}
@keyframes home-avatar-ring {
  to { --avatar-ring-angle: 360deg; }
}

/* 5) ENHANCED CARD HOVER ----------------------------------- */
.home-card {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.45s ease;
}
.home-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.home-card:hover::after { transform: translateX(110%); }
.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.home-card[data-accent="cyan"]:hover   { border-color: rgba(34, 211, 238, 0.55); }
.home-card[data-accent="purple"]:hover { border-color: rgba(139, 92, 246, 0.6);  }
.home-card[data-accent="pink"]:hover   { border-color: rgba(236, 72, 153, 0.55); }
.home-card .home-card-label { transition: transform 300ms ease, box-shadow 300ms ease; }
.home-card:hover .home-card-label { transform: scale(1.05); }
.home-card[data-accent="cyan"]:hover   .home-card-label { box-shadow: 0 0 16px rgba(34, 211, 238, 0.4); }
.home-card[data-accent="purple"]:hover .home-card-label { box-shadow: 0 0 16px rgba(139, 92, 246, 0.45); }
.home-card[data-accent="pink"]:hover   .home-card-label { box-shadow: 0 0 16px rgba(236, 72, 153, 0.4); }

/* ============================================================
   ANIMATIONS — Tier 2 (2026-05-22)
   6) Form input focus — gradient ring + glow expansion
   7) Bio-link animated underline (zamiast dashed)
   8) Tag hover — subtle light sweep + accent fill
   9) CTA „Rozpocznij rozmowę" — diagonal shimmer sweep
============================================================ */

/* 6) FORM INPUT FOCUS -------------------------------------- */
.chat-card .form-group input {
  transition:
    border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 300ms ease;
}
.chat-card .form-group input:focus {
  border-color: #22d3ee;
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.18),
    0 0 28px rgba(34, 211, 238, 0.22),
    inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

/* 7) BIO-LINK ANIMATED UNDERLINE --------------------------- */
.home-bio-link {
  border-bottom: none;
  padding-bottom: 2px;
  position: relative;
  transition: color 250ms ease;
}
.home-bio-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #ec4899);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 2px;
}
.home-bio-link:hover { color: #67e8f9; }
.home-bio-link:hover::after { transform: scaleX(1); }

/* 8) TAG HOVER SWEEP + ACCENT FILL ------------------------- */
.home-tags .tag {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 280ms ease,
    background 280ms ease,
    border-color 280ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-tags .tag::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.home-tags .tag:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.home-tags .tag:hover::after { transform: translateX(110%); }

/* 9) CTA BUTTON SHIMMER ------------------------------------ */
.chat-card .btn-start {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    box-shadow 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat-card .btn-start::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: translateX(-200%) skewX(-20deg);
  transition: transform 750ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
.chat-card .btn-start:hover { transform: translateY(-1px); }
.chat-card .btn-start:hover::after { transform: translateX(320%) skewX(-20deg); }

/* REDUCED MOTION ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .home-h1 .accent { animation: none !important; }
  .chat-card-avatar { animation: none !important; }
  .home-card, .home-card::after { transition: none !important; }
  .home-card::after { display: none !important; }
  .home-card:hover { transform: none !important; }
  .home-bio-link::after,
  .home-tags .tag::after,
  .chat-card .btn-start::after { transition: none !important; display: none !important; }
  .chat-card .form-group input { transition: none !important; }
  .home-tags .tag:hover,
  .chat-card .btn-start:hover { transform: none !important; }
}
