/*
  Quantica Lab - wspolne style podstron quantica_*.
*/

  :root {
    /* ─── Brand tokens (mirror of design-system colors_and_type.css) ─── */
    --quantica-pink:    #d20757;
    --rose-pink:        #d20757;
    --deep-berry:       #8A004C;
    --magenta-tint:     #FFE6F1;

    --violet-primary:   #7030A0;
    --ink:              #0A1F2C;

    --near-black:       #111111;
    --white:            #FFFFFF;

    --fg-1:             #111111;
    --fg-2:             #111111;
    --fg-3:             #4B5563;

    --bg-1:             #FFFFFF;
    --bg-2:             #F5F6F8;

    --border-1:         #E6E8EC;

    --font-display:     "Satoshi", system-ui, -apple-system, sans-serif;
    --font-sans:        "Satoshi", system-ui, -apple-system, sans-serif;
    --font-mono:        "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --radius-lg:        16px;

    --shadow-pink-soft: 0 6px 18px rgba(210, 7, 87, 0.10);
    --shadow-card:      0 10px 30px -12px rgba(10, 20, 40, 0.12);

    --nav-h: 64px;
    --content-w: 1120px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
  body {
    font-family: var(--font-sans);
    color: var(--fg-2);
    background: var(--bg-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  img { max-width: 100%; }
  a { color: var(--quantica-pink); }

  .wrap {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 28px;
  }

  /* ─── Scroll reveal ─── */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
  .reveal.visible { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  }

  /* ─── NAV ─── */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 40;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-1);
  }
  .nav-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .nav-logo img { height: 30px; width: auto; display: block; }
  .nav-links { display: flex; align-items: center; gap: 26px; }
  .nav-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg-1);
    text-decoration: none;
    letter-spacing: 0.01em;
  }
  .nav-links a:hover { color: var(--quantica-pink); }
  .nav-links a.active { color: var(--quantica-pink); }
  .nav-cta {
    background: var(--quantica-pink);
    color: var(--white) !important;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow: var(--shadow-pink-soft);
    transition: background 200ms;
  }
  .nav-cta:hover { background: var(--deep-berry); color: var(--white); }

  /* ─── HERO (compact ink header, wariant B background) ─── */
  .hero {
    position: relative;
    color: var(--white);
    padding: calc(var(--nav-h) + 96px) 0 84px;
    background: var(--ink);
    overflow: hidden;
  }
  #dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .hero-q {
    position: absolute;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    width: min(30vw, 380px);
    opacity: 0.16;
    pointer-events: none;
  }
  .hero-q img { width: 100%; display: block; }
  .hero-inner { position: relative; z-index: 2; }
  .hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--white);
  }

  /* ─── SECTION SCAFFOLD ─── */
  .section { padding: 88px 0; }

  /* ─── ICONS (Lucide) ─── */
  .icon { width: 18px; height: 18px; stroke-width: 2; }

  /* ─── BENTO GRID (wariant B cells, light adaptation; all rows complete) ─── */
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .cell {
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: 18px;
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: border-color 250ms, background 250ms;
  }
  .cell:hover { border-color: rgba(210, 7, 87, 0.45); background: rgba(210, 7, 87, 0.03); }
  .cell-3 { grid-column: span 3; }
  .cell-6 { grid-column: span 6; }
  .cell-tag {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--quantica-pink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .cell-tag .icon { width: 19px; height: 19px; color: var(--quantica-pink); }
  .cell h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.015em;
    color: var(--fg-1);
    margin-bottom: 10px;
  }
  .cell p { font-size: 14.5px; line-height: 1.7; margin: 0; }
  .cell-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: var(--quantica-pink);
    text-decoration: none;
  }
  .cell-link:hover { color: var(--deep-berry); }
  .cell-link .icon { width: 15px; height: 15px; }

  /* ─── CTA (full-width pink cell; full border, never a left stripe) ─── */
  .start-cell {
    border: 1.5px solid var(--quantica-pink);
    background: rgba(210, 7, 87, 0.04);
    box-shadow: var(--shadow-pink-soft);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
  }
  .start-cell:hover { border-color: var(--quantica-pink); background: rgba(210, 7, 87, 0.07); }
  .start-text { flex: 1 1 420px; }
  .start-cell h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
  .start-cell p { font-size: 15px; }
  .pill {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform 200ms, background 200ms, color 200ms;
  }
  .pill:hover { transform: translateY(-1px); }
  .pill-solid { background: var(--quantica-pink); color: var(--white); box-shadow: var(--shadow-pink-soft); }
  .pill-solid:hover { background: var(--deep-berry); }
  .pill .icon { width: 17px; height: 17px; }


  .section-alt { background: var(--bg-2); }
  .h-section {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--fg-1);
    margin-bottom: 22px;
  }
  .h-pink { color: var(--quantica-pink); }
  .section > .wrap > p, .prose p {
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 14px;
    max-width: 780px;
  }
  .lead { font-weight: 700; color: var(--fg-1); }
  .bento { margin-top: 26px; }
  .cell-2 { grid-column: span 2; }
  .cell ul { list-style: none; margin: 4px 0 0; }
  .cell li {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    margin-bottom: 9px;
    color: var(--fg-1);
  }
  .cell li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.5em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--quantica-pink);
    box-shadow: 0 0 10px rgba(210, 7, 87, 0.45);
  }
  .cell-label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--quantica-pink);
    margin: 16px 0 10px;
  }
  .contact-lines p { margin-bottom: 8px; font-size: 14.5px; line-height: 1.7; }
  .placeholder {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--fg-3);
  }
  @media (max-width: 900px) {
    .cell-2 { grid-column: span 6; }
  }

  /* ─── FOOTER ─── */
  .footer {
    padding: 26px 0;
    border-top: 1px solid var(--border-1);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--fg-3);
  }
  .footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .cell-3 { grid-column: span 6; }
  }
  @media (max-width: 768px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { padding: calc(var(--nav-h) + 64px) 0 56px; }
    .hero-q { width: 52vw; right: -14%; opacity: 0.12; }
    .section { padding: 60px 0; }
    .wrap { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .cell { padding: 24px 22px; }
  }
