@import url("partnear-design-tokens.css");

:root {
  --navy: var(--ptn-navy-900);
  --blue: var(--ptn-blue-600);
  --emerald: var(--ptn-emerald-500);
  --ink: var(--ptn-text);
  --muted: var(--ptn-text-muted);
  --line: var(--ptn-border);
  --paper: var(--ptn-page);
  --mist: var(--ptn-surface-subtle);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--ptn-font-sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(37, 99, 235, .7); outline-offset: 4px; border-radius: 6px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 12px 16px; color: #fff; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.site-header { height: 88px; max-width: 1440px; margin: auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.brand-lockup { display: inline-flex; align-items: center; line-height: 1; }
.brand-lockup-mark { width: 188px; height: auto; display: block; }
.desktop-nav { display: flex; align-items: center; gap: 32px; color: #475569; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a:focus { color: var(--blue); }
.mobile-menu { display: none; }

.hero { min-height: 700px; max-width: 1440px; margin: auto; padding: 112px 48px 96px; display: grid; grid-template-columns: 1fr 1.04fr; gap: 76px; align-items: center; }
.brand-reveal { margin: 0 0 28px; color: var(--navy); }
.brand-reveal-word { display: inline-flex; align-items: baseline; overflow: visible; font-family: var(--ptn-font-display); font-size: 20px; font-weight: 800; letter-spacing: .12em; line-height: 1; white-space: nowrap; }
.brand-reveal-fixed, .brand-reveal-a, .brand-reveal-r { display: inline-block; }
.brand-reveal-a { width: 0; overflow: hidden; opacity: 0; color: var(--blue); transform: translateX(.86em); clip-path: inset(0 100% 0 0); animation: partnear-a-arrives 760ms cubic-bezier(.2,.8,.2,1) 420ms forwards; }
.brand-reveal-r { animation: partnear-r-settles 760ms cubic-bezier(.2,.8,.2,1) 420ms forwards; }
.brand-reveal-meaning { display: block; margin-top: 10px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
@keyframes partnear-a-arrives {
  0% { width: 0; opacity: 0; color: var(--blue); transform: translateX(.86em); clip-path: inset(0 100% 0 0); }
  42% { width: .7em; opacity: 1; color: var(--blue); transform: translateX(.08em); clip-path: inset(0 0 0 0); }
  100% { width: .7em; opacity: 1; color: var(--navy); transform: translateX(0); clip-path: inset(0 0 0 0); }
}
@keyframes partnear-r-settles {
  0%, 38% { transform: translateX(0); }
  100% { transform: translateX(0); }
}
.eyebrow { margin: 0 0 24px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 32px; color: var(--navy); font-size: clamp(56px, 6.8vw, 104px); line-height: .97; letter-spacing: -.065em; }
h2 { color: var(--navy); font-size: clamp(38px, 4.2vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.hero-description { max-width: 560px; margin-bottom: 36px; color: #475569; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 15px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.button:hover, .button:focus { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); }
.button-secondary { color: var(--navy); border-color: var(--line); background: #fff; }

.operation-card { padding: 34px; border: 1px solid #d4deea; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(22, 33, 62, .10); }
.card-topline { display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-size: 14px; font-weight: 750; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: #047857; font-size: 11px; letter-spacing: .08em; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.flow-steps { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr; align-items: center; margin: 72px 0; }
.flow-step { min-width: 0; color: #64748b; }
.flow-step span { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 800; color: #94a3b8; }
.flow-step strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 18px; }
.flow-step small { display: block; line-height: 1.5; font-size: 12px; }
.flow-step.active strong { color: var(--blue); }
.flow-line { height: 1px; margin: 0 8px; background: #cbd5e1; }
.next-action { padding: 19px 20px; display: flex; align-items: center; gap: 12px; border-radius: 14px; color: var(--navy); background: var(--mist); }
.next-action span { color: var(--muted); font-size: 13px; }
.next-action strong { flex: 1; font-size: 14px; }
.next-action i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--navy); font-size: 18px; font-style: normal; }

.problem { padding: 150px max(48px, calc((100vw - 1120px) / 2)); background: var(--mist); }
.problem p:last-child { max-width: 620px; color: #475569; font-size: 18px; line-height: 1.7; }
.flow-section { max-width: 1440px; margin: auto; padding: 148px 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 72px; }
.section-heading h2 { margin: 0; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.flow-grid article { min-height: 274px; padding: 30px 38px 20px 0; border-right: 1px solid var(--line); }
.flow-grid article + article { padding-left: 38px; }
.flow-grid article:last-child { border-right: 0; }
.flow-grid span { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.flow-grid h3 { margin: 74px 0 14px; color: var(--navy); font-size: 24px; letter-spacing: -.035em; }
.flow-grid p { max-width: 240px; color: #64748b; line-height: 1.6; }

.operating-surface { padding: 142px max(48px, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: 1fr 1.1fr; gap: 76px; color: #fff; background: var(--navy); }
.operating-surface .eyebrow { color: #8facff; }
.operating-surface h2 { margin: 0; color: #fff; }
.surface-grid { border-top: 1px solid rgba(255, 255, 255, .24); }
.surface-grid article { padding: 22px 0 24px; display: grid; grid-template-columns: 84px 108px 1fr; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .18); align-items: baseline; }
.surface-grid span { color: #8facff; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.surface-grid strong { color: #fff; font-size: 20px; letter-spacing: -.03em; }
.surface-grid p { margin: 0; color: #cbd5e1; line-height: 1.6; }

.why { padding: 158px max(48px, calc((100vw - 1120px) / 2)); color: #fff; background: var(--navy); }
.why .eyebrow { color: #7da4ff; }
.why h2 { max-width: 900px; margin-bottom: 42px; color: #fff; }
.why-rule { width: 96px; height: 4px; margin-bottom: 38px; border-radius: 6px; background: var(--emerald); }
.why p { max-width: 580px; color: #cbd5e1; font-size: 18px; line-height: 1.7; }
.contact { padding: 146px 48px; text-align: center; }
.contact h2 { margin-bottom: 22px; }
.contact p { margin-bottom: 34px; color: #64748b; font-size: 18px; }
.button-light { color: #fff; background: var(--navy); }
footer { max-width: 1440px; margin: auto; padding: 34px 48px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .brand-lockup-mark { width: 148px; }

@media (max-width: 820px) {
  .site-header { height: 72px; padding: 0 22px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { width: 48px; height: 48px; display: grid; place-content: center; gap: 6px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 20px; height: 2px; display: block; border-radius: 3px; background: var(--navy); transition: transform .18s ease; }
  .mobile-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
  .mobile-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; top: 56px; right: 0; width: 220px; padding: 10px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--ptn-shadow-card); z-index: 2; }
  .mobile-menu nav a { min-height: 48px; padding: 14px; display: flex; align-items: center; border-radius: 8px; color: var(--navy); font-size: 14px; font-weight: 700; }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus { background: var(--mist); }
  .hero { min-height: auto; padding: 72px 22px 80px; grid-template-columns: 1fr; gap: 58px; }
  .brand-reveal-word { font-size: 17px; }
  .hero-description { font-size: 16px; }
  .operation-card { padding: 24px; }
  .flow-steps { grid-template-columns: 1fr; gap: 24px; margin: 42px 0; }
  .flow-line { display: none; }
  .flow-step { padding-left: 18px; border-left: 2px solid #dbe4ee; }
  .flow-step.active { border-left-color: var(--blue); }
  .problem, .why { padding: 92px 22px; }
  .flow-section { padding: 92px 22px; }
  .section-heading { display: block; margin-bottom: 46px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid article, .flow-grid article + article { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-grid h3 { margin-top: 36px; }
  .operating-surface { padding: 92px 22px; display: block; }
  .operating-surface h2 { margin-bottom: 42px; }
  .surface-grid article { grid-template-columns: 1fr; gap: 7px; padding: 22px 0; }
  .contact { padding: 92px 22px; }
  footer { padding: 28px 22px; gap: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .brand-reveal-a { width: .7em; opacity: 1; color: var(--navy); transform: none; clip-path: none; }
}
