/* ─────────────────────────────────────────────────────────────
   SolderPop landing page styles
   solderpop.io
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg:          #091018;
  --bg2:         #0d151e;
  --panel:       rgba(255,255,255,0.034);
  --panel-soft:  rgba(255,255,255,0.02);
  --border:      rgba(255,255,255,0.08);
  --text:        #F4F7FB;
  --muted:       rgba(244,247,251,0.72);
  --muted2:      rgba(244,247,251,0.44);
  --coral:       #FF6B6B;
  --coral2:      #FF8585;
  --orange:      #F97316;
  --amber:       #E89530;
  --shadow:      0 28px 70px rgba(0,0,0,0.34);
  --line:        rgba(255,255,255,0.018);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 50% 6%, rgba(255,107,107,0.10), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #071018 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.62;
}

body::after {
  content: "";
  position: fixed;
  top: -18%;
  left: 50%;
  width: 960px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,107,107,0.11) 0%, transparent 68%);
  animation: orb-float 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orb-float {
  0%, 100% { transform: translateX(-50%) translateY(0px) scale(1); }
  40%       { transform: translateX(-50%) translateY(-44px) scale(1.07); }
  70%       { transform: translateX(-50%) translateY(22px) scale(0.96); }
}

/* ── Layout ──────────────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 1.5rem));
  margin: 0 auto;
}

/* ── Scroll progress bar ─────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--coral), var(--amber));
  z-index: 100;
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9,16,24,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  width: min(1160px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
}

.sp-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.sp-core {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, var(--coral2), var(--coral));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 22px rgba(255,107,107,0.24);
}

.sp-ring {
  position: absolute;
  width: 11px;
  height: 11px;
  top: -1px;
  right: -1px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--coral);
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark .solder { color: rgba(244,247,251,0.74); }
.wordmark .pop    { color: var(--coral); }

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill,
.nav-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
}

.pill {
  color: var(--coral);
  background: rgba(255,107,107,0.06);
  border: 1px solid rgba(255,107,107,0.22);
}

.nav-link {
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: 0.18s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,107,107,0.22);
  transform: translateY(-1px);
}

/* Language toggle */
.lang-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.44rem 0.76rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  transition: 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.hero-wrap {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 2rem 0.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid rgba(255,107,107,0.22);
  background: rgba(255,107,107,0.06);
  border-radius: 999px;
  padding: 0.5rem 0.92rem;
  margin-bottom: 1.3rem;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  animation: eyebrow-dot 2.2s ease-in-out infinite;
}

@keyframes eyebrow-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.65); }
}

h1 {
  margin: 0 auto 1.15rem;
  max-width: 12ch;
  font-size: clamp(3.15rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.068em;
  font-weight: 800;
}

h1 span {
  background: linear-gradient(90deg,
    rgba(244,247,251,0.55) 0%,
    rgba(255,107,107,0.70) 45%,
    rgba(244,247,251,0.55) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 6s linear infinite;
}

@keyframes text-shimmer {
  0%   { background-position: 250% center; }
  100% { background-position: -250% center; }
}

.hero-copy {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.17rem);
  line-height: 1.78;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.98rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--bg);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.26) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.52s ease;
}

.btn-primary:hover {
  background: var(--coral2);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

/* ── Hero entrance animations ────────────────────────────────── */

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-wrap .eyebrow  { animation: hero-in 0.65s ease both; animation-delay: 0.08s; }
.hero-wrap h1        { animation: hero-in 0.65s ease both; animation-delay: 0.24s; }
.hero-wrap .hero-copy{ animation: hero-in 0.65s ease both; animation-delay: 0.40s; }
.hero-wrap .cta-row  { animation: hero-in 0.65s ease both; animation-delay: 0.56s; }

/* ── Sections ─────────────────────────────────────────────────── */

section { padding: 0 0 4.6rem; }

.section-head {
  margin-bottom: 1.45rem;
  max-width: 78ch;
}

.kicker {
  margin-bottom: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 17ch;
}

.section-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.74;
  max-width: 70ch;
}

/* ── Manifesto ────────────────────────────────────────────────── */

.manifesto {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.manifesto-main,
.manifesto-quote {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.45rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.manifesto-main:hover,
.manifesto-quote:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,107,0.22);
  box-shadow: 0 36px 80px rgba(0,0,0,0.42), 0 0 36px rgba(255,107,107,0.06);
}

.manifesto-title {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 14ch;
}

.manifesto-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.76;
}

.manifesto-quote {
  display: flex;
  align-items: center;
}

.manifesto-quote p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.28rem, 2.35vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 700;
}

/* ── Cards ────────────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,107,107,0.30);
  box-shadow: 0 36px 80px rgba(0,0,0,0.42), 0 0 44px rgba(255,107,107,0.08);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* ── Feature logo ────────────────────────────────────────────── */

.feature-logo {
  position: absolute;
  top: 50%;
  left: 2rem;
  height: 96px;
  width: auto;
  max-width: calc(100% - 4rem);
  animation: logo-float 4.5s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 9px)); }
}

@media (max-width: 480px) {
  .feature-logo { height: 60px; }
}

/* ── Feature ──────────────────────────────────────────────────── */

.feature {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-top {
  position: relative;
  min-height: 195px;
  padding: 1.25rem 1.3rem 3.6rem;
  background: linear-gradient(180deg, rgba(59,130,246,0.10), rgba(255,255,255,0.02));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.feature-top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(232,149,48,0.10), rgba(255,107,107,0.04));
  animation: feature-hue-shift 6s ease-in-out infinite;
  pointer-events: none;
}

.feature-badge-new, .feature-logo { z-index: 1; }

@keyframes feature-hue-shift {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

.feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(244,247,251,0.74);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
}

.feature-badge-new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #111b27;
  background: linear-gradient(135deg, #E89530 0%, #f0a040 60%, #FF6B6B 100%);
  border: none;
  border-radius: 999px;
  padding: 0.44rem 0.9rem 0.44rem 0.72rem;
  filter: drop-shadow(0 0 5px rgba(232,149,48,0.55)) drop-shadow(0 0 2px rgba(232,149,48,0.3));
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.feature-badge-new::before {
  content: '✦';
  font-size: 0.78rem;
  margin-right: 0.4rem;
  vertical-align: -0.05em;
}

@keyframes badge-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px  rgba(232,149,48,0.55)) drop-shadow(0 0 2px rgba(232,149,48,0.3)); }
  50%       { filter: drop-shadow(0 0 18px rgba(232,149,48,0.95)) drop-shadow(0 0 6px rgba(255,107,107,0.6)); }
}

.feature-bottom {
  padding: 1.35rem 1.3rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  align-items: start;
}

.feature-title {
  margin: 0 0 0.45rem;
  font-size: 1.76rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 14ch;
}

.feature-sub {
  margin: 0 0 0.85rem;
  color: rgba(244,247,251,0.72);
  font-size: 0.96rem;
}

.feature-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.74;
  max-width: 58ch;
}

.feature-aside {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  background: var(--panel-soft);
  padding: 1rem;
}

.feature-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-aside strong { color: var(--text); }

.feature-cta {
  margin-top: 1.1rem;
  color: var(--amber);
}

/* ── Mailing ──────────────────────────────────────────────────── */

.mailing {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
  box-shadow: var(--shadow);
  padding: 1.55rem;
  text-align: center;
  animation: mailing-pulse 5s ease-in-out infinite;
}

@keyframes mailing-pulse {
  0%, 100% { box-shadow: var(--shadow); border-color: var(--border); }
  50%       { box-shadow: var(--shadow), 0 0 55px rgba(255,107,107,0.10); border-color: rgba(255,107,107,0.18); }
}

.mailing h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.mailing p {
  max-width: 58ch;
  margin: 0 auto 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.74;
}

.mailing-form {
  display: flex;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.mailing-input {
  flex: 1 1 340px;
  min-width: 0;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 0 1rem;
  font: 500 1rem "Inter", sans-serif;
  outline: none;
}

.mailing-input::placeholder { color: rgba(244,247,251,0.42); }

.mailing-input:focus {
  border-color: rgba(255,107,107,0.28);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.08);
}

.mailing-tag {
  margin-top: 0.95rem;
  color: var(--muted2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────── */

footer { padding: 0 0 2.5rem; }

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Scroll animations ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 920px) {
  .grid-3,
  .manifesto,
  .feature-bottom { grid-template-columns: 1fr; }
  h2, .feature-title, .manifesto-title { max-width: 100%; }
}

@media (max-width: 640px) {
  .page, .nav-inner { width: min(100% - 1rem, 1160px); }
  .nav-inner { min-height: 68px; }

  .pill, .nav-link, .lang-btn {
    font-size: 0.58rem;
    letter-spacing: 1px;
    padding: 0.44rem 0.66rem;
  }

  .hero { min-height: auto; padding: 4.2rem 0 3rem; }
  .hero-wrap { padding: 1rem 0.2rem; }
  h1 { font-size: 2.95rem; max-width: 100%; }

  .hero-copy, .section-copy, .manifesto-copy,
  .feature-copy, .card p { font-size: 0.98rem; line-height: 1.66; }

  .cta-row { flex-direction: column; }
  .btn { width: 100%; }
  .mailing-form { flex-direction: column; }
  .mailing-input { width: 100%; flex: 1 1 auto; }

  .feature-top { min-height: 150px; }
  .feature-title { font-size: 1.4rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
