/* Primus Landing Page Styles */

@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }
  img { max-width: 100%; display: block; }
  ul { list-style: none; }
}

@layer base {
  /* Local fonts */
  @font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Fonts/inter/static/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Fonts/inter/static/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Fonts/inter/static/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Fonts/inter/static/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Fonts/inter/static/Inter-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Inter Tight';
    src: url('../assets/fonts/Fonts/Inter_Tight/static/InterTight-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter Tight';
    src: url('../assets/fonts/Fonts/Inter_Tight/static/InterTight-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter Tight';
    src: url('../assets/fonts/Fonts/Inter_Tight/static/InterTight-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter Tight';
    src: url('../assets/fonts/Fonts/Inter_Tight/static/InterTight-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'IBM Plex Mono';
    src: url('../assets/fonts/Fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'IBM Plex Mono';
    src: url('../assets/fonts/Fonts/IBM_Plex_Mono/IBMPlexMono-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  :root {
    --brand-orange: #FF7705;
    --brand-pink: #FF0090;
    --brand-rose: #f472b6;
    --text-0: #fff;
    --text-1: #e5e7eb;
    --text-2: #9ca3af;
    --surface-1: rgba(25, 25, 25, 0.88);
    --surface-2: rgba(0, 0, 0, 0.90);
    --border-1: rgba(255, 119, 5, 0.2);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, #000 70%);
    color: var(--text-0);
    line-height: 1.6;
  }
}

@layer layout {
  .container {
    width: 100%;
    max-width: 72rem; /* ~1152px */
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
    border-bottom: 1px solid rgba(255, 119, 5, 0.15);
    backdrop-filter: blur(8px);
  }

  .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  /* Align header brand with hero text */
  header.site-header > .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .brand img { height: 20px; width: auto; }

  .brand-link { text-decoration: none; line-height: 1; display: inline-flex; }

  .brand .wordmark {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(-45deg, var(--brand-orange), #FF3C4B, var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
    line-height: 1;
  }

  nav.site-nav ul { display: flex; align-items: center; gap: 1rem; }
  nav.site-nav a { color: var(--text-1); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
  nav.site-nav a:hover { color: #fff; }
  .bar-cta { display: none; margin-left: auto; }
  .cta-hidden { opacity: 0; transform: translateY(-4px); pointer-events: none; }
  .bar-cta, nav.site-nav .menu-cta { transition: opacity 240ms cubic-bezier(.22,.61,.36,1), transform 240ms cubic-bezier(.22,.61,.36,1); }

  @media (prefers-reduced-motion: reduce) {
    .bar-cta, nav.site-nav .menu-cta { transition: none; }
  }
  /* Header CTA fade */
  nav.site-nav li.menu-cta { transition: opacity 200ms ease, transform 200ms ease; }
  nav.site-nav li.menu-cta.cta-hidden { opacity: 0; transform: translateY(-4px); pointer-events: none; }

  /* Hamburger */
  .hamburger {
    display: none;
    width: 44px; height: 44px;
    border: none;
    background: transparent;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 101;
  }
  .hamburger .bar { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: transform 200ms ease, opacity 160ms ease; }
  /* Animate bars into an X when open */
  .nav-open #nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open #nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open #nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 119, 5, 0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 30px rgba(255, 119, 5, 0.10);
  }

  .cta-btn.secondary {
    background: transparent;
    color: var(--text-1);
    border: 1px solid rgba(255,255,255,0.2);
  }

  .hero {
    padding: 4rem 0 2rem 0;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
  }

  .hero h1 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(-45deg, var(--brand-orange), #FF3C4B, var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
  }

  .hero .subtitle { font-size: 1.1rem; color: var(--text-1); margin-bottom: 1rem; }
  .hero .kicker { color: var(--brand-orange); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
  /* Emphasize primary hero CTA without affecting header/nav CTAs */
  .hero .actions .cta-btn { font-size: 1.125rem; padding: 0.85rem 1.25rem; min-width: 13rem; }

  section { padding: 2.5rem 0; }
  .section-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; }

  .value-prop, .card {
    background: linear-gradient(135deg, rgba(52, 52, 52, 0.8), rgba(27, 27, 27, 0.9));
    border: 1px solid var(--border-1);
    padding: 1.25rem;
    border-radius: 0.9rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  }

  .value-prop.alt {
    background:
      radial-gradient(70% 120% at 0% 0%, rgba(255, 119, 5, 0.42) 0%, rgba(255, 119, 5, 0.00) 60%),
      radial-gradient(60% 120% at 100% 0%, rgba(255, 0, 144, 0.42) 0%, rgba(255, 0, 144, 0.00) 60%),
      radial-gradient(65% 90% at 50% 40%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.00) 55%),
      linear-gradient(180deg, rgba(25, 25, 25, 0.88) 0%, rgba(0, 0, 0, 0.88) 100%);
    border: 1px solid rgba(255, 119, 5, 0.8);
    position: relative;
    overflow: hidden;
    box-shadow:
      0 8px 24px rgba(0,0,0,0.35),
      0 0 36px rgba(255, 119, 5, 0.25),
      0 0 42px rgba(255, 0, 144, 0.22),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }

  /* Broad, slow sweep highlight */
  .value-prop.alt::before {
    content: "";
    position: absolute;
    inset: -35% -45%;
    background: radial-gradient(60% 80% at 0% 50%, rgba(255,255,255,0.08), rgba(255,255,255,0.0) 70%);
    transform: translateX(-40%) rotate(8deg);
    animation: sweep 16s ease-in-out infinite;
    mix-blend-mode: soft-light;
    filter: blur(28px);
    pointer-events: none;
  }

  /* Subtle animated aurora overlay */
  .value-prop.alt::after {
    content: "";
    position: absolute;
    inset: -25%;
    background:
      radial-gradient(60% 60% at 20% 30%, rgba(255, 119, 5, 0.65) 0%, rgba(255, 119, 5, 0.00) 60%),
      radial-gradient(60% 60% at 80% 20%, rgba(255, 0, 144, 0.60) 0%, rgba(255, 0, 144, 0.00) 60%);
    filter: blur(10px);
    animation: auroraMove 12s ease-in-out infinite alternate;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform, opacity;
  }

  @keyframes auroraMove {
    0%   { transform: translate3d(-12%, -10%, 0) rotate(0deg) scale(1); opacity: 0.65; }
    50%  { transform: translate3d(10%, 6%, 0) rotate(22deg) scale(1.06); opacity: 0.8; }
    100% { transform: translate3d(16%, 12%, 0) rotate(36deg) scale(1.12); opacity: 0.7; }
  }

  @keyframes sweep {
    0%   { transform: translateX(-40%) rotate(8deg); opacity: 0.20; }
    50%  { transform: translateX(0%) rotate(8deg);   opacity: 0.28; }
    100% { transform: translateX(40%) rotate(8deg);  opacity: 0.20; }
  }

  .value-prop h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
  .value-prop p { color: var(--text-1); font-size: 1rem; }

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

  .benefit-card h3, .card h3 { color: var(--brand-orange); font-weight: 700; margin-bottom: 0.5rem; }
  .benefit-card li, .card p, .card li { color: var(--text-1); font-size: 1rem; }
  .benefit-card li span:first-child, .card li span:first-child { margin-right: 0.5rem; }

  .achievement-card { text-align: center; border: 1px solid rgba(255, 119, 5, 0.6); }
  .achievement-card .number { font-size: 2rem; font-weight: 800; }
  .achievement-card .description { color: var(--text-1); }
  .achievement-card .number.swell { animation: swell 700ms cubic-bezier(.22,.61,.36,1); }
  @keyframes swell {
    0% { transform: scale(0.9); filter: brightness(0.9); }
    60% { transform: scale(1.08); filter: brightness(1.1); }
    100% { transform: scale(1); filter: brightness(1); }
  }

  .partnership-card { border: 1px solid #374151; }
  .partnership-card.you-own h3 { color: #fb923c; }
  .partnership-card.we-deliver h3 { color: #f472b6; }

  .achievement-examples p { color: var(--text-1); }
  .achievement-examples strong { width: 10rem; display: inline-block; }
  .achievement-examples .enhancement { color: #fb923c; }
  .achievement-examples .modernization { color: #f472b6; }
  .achievement-examples .transformation { color: #fb923c; }

  .process-step { text-align: center; }
  .process-step .step-number {
    background: linear-gradient(to bottom right, #f97316, #ec4899);
    border-radius: 999px;
    width: 3rem; height: 3rem; display: grid; place-items: center; margin: 0 auto 0.5rem auto;
  }
  .process-step .step-number.pop { animation: step-pop 520ms cubic-bezier(.22,.61,.36,1); }
  .process-step .step-number.pop-all { animation: step-pop 520ms cubic-bezier(.22,.61,.36,1); }
  @keyframes step-pop {
    0% { transform: scale(0.85); filter: brightness(0.9); }
    60% { transform: scale(1.12); filter: brightness(1.1); }
    100% { transform: scale(1); filter: brightness(1); }
  }
  .process-step h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
  .process-step p { color: var(--text-2); font-size: 0.9rem; }

  footer.footer {
    border-top: 1px solid var(--brand-orange);
    padding: 1rem 0 1rem 0;
  }
  .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .footer-logo { height: 20px; width: auto; margin-bottom: 0.5rem; opacity: 0.9; }
  .footer .left p:first-child { font-weight: 700; font-size: 1.1rem; }
  .footer .left p:last-child { color: var(--text-2); }
  .footer .right { text-align: right; }
  .footer .right p:first-child { color: var(--brand-rose); font-weight: 700; }
  .footer .right p:last-child { color: var(--text-1); }
}

@layer utilities {
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
  }
  .center-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
  }
}

/* Legal bar */
.legal-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 0.25rem 1rem 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-logo { height: 16px; width: auto; opacity: 0.9; }
.legal-logo-link { display: inline-flex; align-items: center; }

/* Button hover glow */
.cta-btn {
  transition: transform 120ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 36px rgba(255, 119, 5, 0.25), 0 0 54px rgba(255, 0, 144, 0.18);
  filter: saturate(1.05);
}
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 24px rgba(255, 119, 5, 0.18);
}

/* Forms */
.form-card { padding: 1.25rem; }
.form-intro { color: var(--text-1); margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { color: var(--text-1); font-weight: 600; font-size: 0.95rem; }
.form-group input, .form-group textarea {
  background: rgba(17, 24, 39, 0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(255, 119, 5, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 119, 5, 0.2);
}
.form-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.form-status { font-size: 0.95rem; color: var(--text-1); }
.form-status.success { color: #10b981; }
.form-status.error { color: #f87171; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hamburger { display: inline-flex; }
  .bar-cta { display: inline-flex; }
  nav.site-nav { position: absolute; top: 56px; left: 0; right: 0; padding: 0 1.25rem; }
  nav.site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.85));
    padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 220ms cubic-bezier(.22,.61,.36,1), opacity 180ms ease;
  }
  .nav-open nav.site-nav ul { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-open .site-header-inner { align-items: flex-start; }
  /* Make CTA full width on mobile menu */
  nav.site-nav .menu-cta .cta-btn { width: 100%; justify-content: center; }

  /* Backdrop on open */
  header.site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }
  .nav-open header.site-header::after { opacity: 1; pointer-events: none; }
}

@media (max-width: 768px) {
  nav.site-nav ul { gap: 0.75rem; }
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero .actions .cta-btn { width: 100%; }
}

/* Thanks page */
.thanks-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 119, 5, 0.18) 0%, rgba(255, 119, 5, 0.00) 60%),
    radial-gradient(60% 120% at 100% 0%, rgba(255, 0, 144, 0.18) 0%, rgba(255, 0, 144, 0.00) 60%),
    linear-gradient(180deg, rgba(25, 25, 25, 0.88) 0%, rgba(0, 0, 0, 0.88) 100%);
  border: 1px solid rgba(255, 119, 5, 0.35);
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: left;
}
.thanks-head {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-orange);
  margin-bottom: 0.25rem;
}
.thanks-card h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.thanks-copy { color: var(--text-1); margin-bottom: 1rem; }
.thanks-actions { display: flex; gap: 0.75rem; }


