/* ============================================================
   WEBUPLY — homepage hero graft (logo + strategy-call form)
   Only the top hero uses this file; everything below the hero
   stays on the original css/style.css.
   ============================================================ */

/* Hero accent: site blue (no teal) */
.hero.hero-graft {
  --hg-accent: #5B8DEF;
  --hg-accent-2: #3B6FD9;
  --hg-accent-deep: #1E3A8A;
  --cyan: var(--hg-accent);
  --cyan-ink: var(--hg-accent-2);
}
.hero.hero-graft .btn-neon,
.hero.hero-graft .hg-submit {
  background: linear-gradient(120deg, #4A7FD4 0%, #1E3A8A 100%);
  color: #fff;
  box-shadow: 0 10px 36px rgba(30, 58, 138, 0.45);
}
.hero.hero-graft .btn-neon:hover,
.hero.hero-graft .hg-submit:hover {
  box-shadow: 0 0 0 1px #5B8DEF, 0 14px 44px rgba(30, 58, 138, 0.55);
}
.hero.hero-graft .label,
.hero.hero-graft .label-neon { color: var(--hg-accent); }
.nav-logo { display: inline-flex; flex: none; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }

.hero.hero-graft {
  height: auto;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(96px, 12vh, 140px) 0 clamp(56px, 8vh, 90px);
  background: var(--dark);
  color: var(--white);
  overflow: clip;
  isolation: isolate;
}
.hero.hero-graft::before {
  content: ""; position: absolute; inset: 0; z-index: -1; animation: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 12, 0.86) 0%, rgba(4, 4, 12, 0.62) 48%, rgba(4, 4, 12, 0.40) 100%),
    linear-gradient(0deg, rgba(4, 4, 12, 0.85) 0%, transparent 26%);
  background-size: auto; background-repeat: no-repeat;
}
.hero.hero-graft::after { display: none; }
.hg-bg { position: absolute; inset: 0; z-index: -2; }
.hg-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.08); animation: hgZoom 2.4s var(--ease) forwards; }
@keyframes hgZoom { to { transform: scale(1); } }

.hg-grid { display: grid; grid-template-columns: 1.1fr minmax(340px, 460px); gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; z-index: 1; }

.hg-copy { padding-top: 0.15rem; }
.hg-copy .label { display: block; margin-bottom: 0.85rem; }
.hg-h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; margin-bottom: 1.4rem; color: #fff; }
.hg-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hg-line > span { display: block; transform: translateY(105%); animation: hgRise 0.9s var(--ease) forwards; }
.hg-line:nth-child(2) > span { animation-delay: 0.08s; }
.hg-line:nth-child(3) > span { animation-delay: 0.16s; }
.hg-accent { background: linear-gradient(120deg, #7BA3E8 0%, #3B6FD9 55%, #1E3A8A 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes hgRise { to { transform: none; } }
.hg-lede { color: var(--white-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 52ch; margin-bottom: 2rem; }
.hg-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.hg-call { border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.04); }
.hg-call:hover { border-color: #fff; }
.hg-trust { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white-2); }
.hg-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hg-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hg-in { opacity: 0; transform: translateY(16px); animation: hgFade 0.9s var(--ease) forwards; animation-delay: 0.1s; }
.hg-d1 { animation-delay: 0.25s; } .hg-d2 { animation-delay: 0.38s; } .hg-d3 { animation-delay: 0.5s; }
@keyframes hgFade { to { opacity: 1; transform: none; } }

/* quote card */
.hg-quote {
  position: relative; scroll-margin-top: 90px; margin-top: 0;
  background: linear-gradient(180deg, rgba(10, 10, 28, 0.92), rgba(4, 4, 12, 0.95));
  border: 1px solid var(--line-dark); border-radius: 14px;
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: hgFade 0.9s var(--ease) 0.3s both;
}
.hg-quote::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #5B8DEF, #1E3A8A, transparent); }
.hg-qhead { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.hg-qhead picture { display: inline-flex; flex: none; }
.hg-qhead img { width: 38px; height: 38px; object-fit: contain; }
.hg-qhead h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.1; color: #fff; }
.hg-qsub { font-size: 0.88rem; color: var(--white-2); margin-bottom: 1.1rem; }
.hg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hg-f { display: grid; gap: 0.4rem; }
.hg-full { grid-column: 1 / -1; }
.hg-f label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-2); }
.hg-f .req { color: var(--cyan); }
.hg-f input, .hg-f select, .hg-f textarea {
  width: 100%; min-height: 46px; padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.04); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px;
  font: 400 0.96rem/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hg-f textarea { min-height: 86px; resize: vertical; }
.hg-f select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B8DEF' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.hg-f select option { color: #0F1729; }
.hg-f select:disabled { color: var(--white-3); cursor: not-allowed; }
.hg-f input::placeholder, .hg-f textarea::placeholder { color: var(--white-3); }
.hg-f input:focus, .hg-f select:focus, .hg-f textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(59, 111, 217, 0.35); }
.hg-f [aria-invalid="true"] { border-color: #FF6B6B; }
.hg-slot { grid-column: 1 / -1; font-size: 0.8rem; color: var(--white-2); display: flex; gap: 0.5rem; align-items: flex-start; }
.hg-slot:empty { display: none; }
.hg-slot::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.5rem; border-radius: 50%; background: #FFB547; }
.hg-slot[data-state="live"]::before { background: var(--green); }
.hg-hp { position: absolute; left: -9999px; }
.hg-consent { grid-column: 1 / -1; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.74rem; line-height: 1.45; color: var(--white-2); }
.hg-consent input { flex: none; width: 17px; height: 17px; margin-top: 0.1rem; accent-color: var(--cyan); }
.hg-consent a { color: var(--cyan); }
.hg-submit { grid-column: 1 / -1; justify-content: center; width: 100%; }
.hg-submit:disabled { opacity: 0.7; cursor: progress; }
.hg-status { grid-column: 1 / -1; font-size: 0.86rem; min-height: 1.2em; }
.hg-status[data-tone="ok"] { color: var(--green); }
.hg-status[data-tone="err"] { color: #FF6B6B; }
.hg-alt { margin-top: 0.9rem; text-align: center; font-size: 0.84rem; color: var(--white-2); }
.hg-alt a { color: #fff; font-family: var(--font-mono); }

@media (max-width: 980px) {
  .hg-grid { grid-template-columns: 1fr; }
  .hero.hero-graft {
    min-height: 0;
    background: #fff;
    color: #0F1729;
  }
  .hero.hero-graft::before { display: none; }
  .hg-bg { display: none; }
  .hg-copy { text-align: center; }
  .hg-copy .label { text-align: center; }
  .hg-h1 {
    text-align: center;
    color: #0F1729;
  }
  .hg-h1 .hg-accent {
    background: linear-gradient(120deg, #7BA3E8 0%, #3B6FD9 55%, #1E3A8A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hg-lede {
    margin-left: auto;
    margin-right: auto;
    color: #475569;
  }
  .hg-actions { justify-content: center; gap: 0.55rem; margin-bottom: 1.35rem; }
  .hg-actions .btn,
  .hg-actions .btn-neon,
  .hg-actions .hg-call {
    font-size: 0.82rem;
    padding: 0.7rem 1.05rem;
  }
  .hg-actions .hg-call svg { width: 15px; height: 15px; }
  .hg-call {
    border-color: rgba(15, 23, 41, 0.18);
    color: #0F1729;
    background: rgba(15, 23, 41, 0.03);
  }
  .hg-call:hover { border-color: #0F1729; }
  .hg-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    color: #64748B;
  }
  .hg-trust li { justify-content: flex-start; }
  /* slightly smaller form card */
  .hg-quote {
    padding: 1.05rem 1rem 1.15rem;
    border-radius: 12px;
  }
  .hg-qhead { margin-bottom: 0.65rem; gap: 0.6rem; }
  .hg-qhead img { width: 32px; height: 32px; }
  .hg-qhead h2 { font-size: 1.15rem; }
  .hg-qsub { font-size: 0.8rem; margin-bottom: 0.85rem; }
  .hg-form { gap: 0.55rem; }
  .hg-f label { font-size: 0.62rem; }
  .hg-f input, .hg-f select, .hg-f textarea {
    min-height: 40px;
    padding: 0.55rem 0.7rem;
    font-size: 0.88rem;
    border-radius: 7px;
  }
  .hg-f textarea { min-height: 72px; }
  .hg-consent { font-size: 0.68rem; }
  .hg-submit {
    font-size: 0.82rem;
    padding: 0.7rem 1rem;
  }
  .hg-alt { font-size: 0.78rem; margin-top: 0.7rem; }
}
@media (max-width: 520px) {
  .hg-form { grid-template-columns: 1fr; }
  .hg-actions .btn { width: 100%; justify-content: center; }
  .nav-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-line > span, .hg-in, .hg-quote, .hg-bg img { animation: none; opacity: 1; transform: none; }
}
