/* Backpilot — shared styles for /index.html and /ua/index.html */

:root {
    --navy:        #1B2A36;
    --navy-deep:   #14202A;
    --gray-mid:    #4F5860;
    --olive:       #6B6519;
    --gray-foot:   #A6AFB7;
    --paper:       #DCDFE2;

    --ink:         #FFFFFF;
    --ink-soft:    #C9CFD4;
    --ink-mute:    #8E97A0;

    --accent:      #C8E04C;
    --accent-deep: #B6CE3D;

    --btn-soft:    #C8CDD2;
    --btn-soft-hi: #DCE0E5;

    --max:        1180px;
    --pad-x:      clamp(20px, 5vw, 56px);

    --font: "Nunito Sans", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { background: var(--navy); color-scheme: dark; }
  body {
    font-family: var(--font);
    font-weight: 400;
    background: var(--navy);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-size: 17px;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: var(--accent); color: var(--navy); }

  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    position: relative;
  }

  /* Typography */
  h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
  h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.12; font-weight: 600; }
  h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; font-weight: 600; }
  h3 { font-size: 19px; line-height: 1.35; font-weight: 700; }
  p  { margin: 0; }

  .accent { color: var(--accent); }
  .accent-block { color: var(--accent); font-weight: 600; }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, transform .12s ease, border-color .15s ease;
    user-select: none;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.005em;
  }
  .btn-primary {
    background: var(--btn-soft);
    color: var(--navy);
  }
  .btn-primary:hover { background: var(--btn-soft-hi); }
  .btn-primary:active { transform: translateY(1px); }

  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(255,255,255,0.22);
  }
  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .btn .arrow { transition: transform .15s ease; font-size: 17px; }
  .btn:hover .arrow { transform: translateX(2px); }

  /* underline link, lime */
  .ulink {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    font-weight: 600;
    transition: opacity .15s ease;
  }
  .ulink:hover { opacity: 0.85; }

  /* Brand mark */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
  }
  .brand .mark {
    width: 50px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ink);
  }
  .brand .mark svg,
  .brand .mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
  /* Logo PNG ships with dark strokes — invert it to white on the navy
     header band; the footer (light gray) keeps it as-is. */
  .band-navy .brand .mark img { filter: brightness(0) invert(1); }
  .brand .word {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
  }
  footer .brand .word { color: var(--navy); }
  footer .brand .mark { color: var(--navy); background: transparent; }

  /* Sections — diagonal cuts via clip-path */
  section { position: relative; }
  .band { padding: clamp(80px, 11vw, 140px) 0; }

  .band-navy   { background: var(--navy); color: var(--ink); }
  .band-gray   { background: var(--gray-mid); color: var(--ink); }
  .band-olive  { background: var(--olive); color: var(--ink); }
  .band-foot   { background: var(--gray-foot); color: var(--navy); }

  .slope-down {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    padding-bottom: clamp(140px, 16vw, 220px);
  }
  .slope-up {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    padding-top: clamp(120px, 14vw, 200px);
    margin-top: clamp(-110px, -12vw, -160px);
  }
  .slope-down-rev {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
    padding-bottom: clamp(140px, 16vw, 220px);
  }
  .slope-up-rev {
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%);
    padding-top: clamp(120px, 14vw, 200px);
    margin-top: clamp(-110px, -12vw, -160px);
  }
  .slope-both-rev {
    clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%);
    padding: clamp(140px, 16vw, 220px) 0;
  }

  /* HERO */
  .hero { padding-top: 28px; }
  .hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 80px;
  }
  .hero-top .nav {
    display: flex; align-items: center; gap: 28px;
    font-size: 15px; color: var(--ink-soft);
  }
  .hero-top .nav a { transition: color .15s ease; display: inline-flex; align-items: center; gap: 7px; }
  .hero-top .nav a:hover { color: var(--accent); }
  .hero-top .nav a svg { display: block; }
  .hero-top .nav .lang-switch {
    border: 1px solid rgba(255,255,255,0.18);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    transition: border-color .15s ease, color .15s ease;
  }
  .hero-top .nav .lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .hero-inner {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    padding-top: clamp(24px, 5vw, 64px);
    padding-bottom: clamp(60px, 8vw, 100px);
  }
  .hero h1 { text-wrap: balance; margin-bottom: 28px; }
  .hero .lede {
    color: var(--ink-soft);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 56px;
    text-wrap: pretty;
    font-weight: 400;
  }

  .hero-status {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 32px;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    line-height: 1;
    color: var(--ink);
  }
  .hero-status .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    background: rgba(200, 224, 76, 0.12);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11.5px;
    border-right: 1px solid rgba(255,255,255,0.10);
  }
  .hero-status .tag .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 224, 76, 0.18);
    animation: bp-pulse 2s ease-in-out infinite;
  }
  .hero-status .label {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12.5px;
  }
  @keyframes bp-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(200, 224, 76, 0.18); }
    50%      { box-shadow: 0 0 0 5px rgba(200, 224, 76, 0.06); }
  }

  .hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* PILLARS — Section 2 (gray band) */
  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
  }
  .pillar { text-align: left; padding: 0 8px; }
  .pillar .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 22px;
  }
  .pillar h3 { margin-bottom: 10px; font-weight: 700; }
  .pillar p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

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

  /* WOO AGENT — Section 3 (navy) */
  .woo-head {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 56px;
  }
  .woo-head .kicker {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .woo-head h2 { margin-bottom: 18px; text-wrap: balance; }
  .woo-head p {
    color: var(--ink-soft);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.55;
    max-width: 700px;
    margin: 0 auto;
    text-wrap: pretty;
  }

  /* faux browser frame for placeholder */
  .browser {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #0F1A22;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 6px 20px rgba(0,0,0,0.3);
  }
  .browser .chrome {
    height: 44px;
    background: linear-gradient(180deg, #16323F, #0F2531);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .browser .traffic { display: flex; gap: 8px; }
  .browser .traffic span {
    width: 12px; height: 12px; border-radius: 50%;
    display: inline-block;
  }
  .browser .traffic .r { background: #FF5F57; }
  .browser .traffic .y { background: #FEBC2E; }
  .browser .traffic .g { background: #28C840; }
  .browser .url {
    flex: 1;
    height: 26px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    display: flex; align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 12px;
  }
  .browser .url .scheme { color: var(--ink-mute); }
  .browser .body {
    aspect-ratio: 16 / 9;
    background:
      radial-gradient(ellipse 60% 40% at 50% 30%, rgba(200,224,76,0.06), transparent 70%),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 14px, transparent 14px 28px),
      #0F1A22;
    display: grid;
    place-items: center;
    color: var(--ink-mute);
    font-size: 14px;
    letter-spacing: 0.02em;
    position: relative;
  }
  .browser .body::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  }
  .browser .body .placeholder {
    position: relative;
    text-align: center;
    color: var(--ink-mute);
  }
  .browser .body .placeholder strong { color: var(--ink-soft); display: block; font-size: 16px; margin-bottom: 6px; font-weight: 600; }

  .woo-foot {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .woo-foot .links {
    display: flex; gap: 36px; flex-wrap: wrap; justify-content: center;
    font-size: 16px;
  }
  .woo-foot .next {
    color: var(--accent);
    font-weight: 600;
    font-size: 17px;
  }
  .woo-foot .next .small { color: var(--ink-soft); font-weight: 400; }

  /* CLUB — Section 4 (olive band) */
  .club-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
  }
  @media (max-width: 820px) { .club-grid { grid-template-columns: 1fr; } }

  .club-copy h2 { margin-bottom: 22px; text-wrap: balance; }
  .club-copy p { color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; text-wrap: pretty; }

  .founder-card {
    position: relative;
    padding: 36px 36px 36px 36px;
  }
  .founder-card .blob {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    transform: scale(1);
    z-index: 0;
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
    max-height: 480px;
    margin: 0 auto;
    left: 0; right: 0; top: 50%;
    translate: 0 -50%;
  }
  .founder-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 56px 24px;
  }
  .founder-inner .avatar {
    width: 132px; height: 132px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.20);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  }
  .founder-inner .avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
  }
  .founder-inner .name { font-size: 22px; font-weight: 700; }
  .founder-inner .role {
    font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 600;
  }
  .founder-inner .bio { color: var(--ink-soft); font-size: 16px; max-width: 380px; text-wrap: pretty; }
  .founder-inner .previously {
    color: var(--ink-soft);
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-top: -2px;
  }
  .founder-inner .previously .pl-label {
    color: var(--paper);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-right: 6px;
  }
  .founder-inner .meta a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    font-size: 15px;
    font-weight: 600;
  }

  /* CONTACT — Section 5 (navy) */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
  }
  @media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

  .contact-head .kicker {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .contact-head h2 { margin-bottom: 22px; text-wrap: balance; }
  .contact-head p { color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; text-wrap: pretty; }
  .contact-meta {
    margin-top: 32px;
    font-size: 16px;
    display: flex; flex-direction: column; gap: 10px;
    color: var(--ink-soft);
  }
  .contact-meta a {
    color: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 1px;
    transition: border-color .15s ease, color .15s ease;
  }
  .contact-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }

  form.contact-form { display: flex; flex-direction: column; gap: 20px; }
  .field { display: flex; flex-direction: column; gap: 8px; }
  .field label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .field input, .field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    transition: border-color .15s ease, background-color .15s ease;
    resize: vertical;
  }
  .field input:focus, .field textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.06);
  }
  .field textarea { min-height: 130px; }
  .field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }

  .form-actions {
    display: flex; align-items: center; gap: 16px;
    margin-top: 4px; flex-wrap: wrap;
  }
  .form-note { font-size: 13px; color: var(--ink-mute); }

  /* FOOTER */
  footer.footer {
    background: var(--gray-foot);
    color: var(--navy);
    padding: 56px 0 28px;
  }
  footer .foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  @media (max-width: 720px) { footer .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

  footer .brand .word { color: var(--navy); }
  footer .tagline { margin-top: 10px; color: rgba(27,42,54,0.7); font-size: 15px; }

  .foot-q h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .foot-q p { font-size: 16px; color: rgba(27,42,54,0.75); }
  .foot-q a { color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 1px; font-weight: 700; }
  .foot-q a:hover { color: rgba(27,42,54,0.65); }

  .foot-bottom {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid rgba(27,42,54,0.18);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    font-size: 13px;
    color: rgba(27,42,54,0.7);
  }
  .foot-bottom .links { display: flex; gap: 18px; }
  .foot-bottom a:hover { color: var(--navy); }

  /* small */
  @media (max-width: 640px) {
    .hero-top { padding-bottom: 40px; }
    .hero h1 { font-size: 36px; }
    .hero .lede { font-size: 17px; }
  }
