/* ==========================================================================
   Polaris LP — implementation of "Polaris LP.dc.html"
   Design tokens transcribed from the Design Composer source.
   ========================================================================== */

:root {
  --ink:        #16161a;
  --ink-soft:   #3c3b36;
  --muted:      #55534d;
  --muted-2:    #75736c;
  --faint:      #8b8880;
  --line:       #eae7e1;
  --line-2:     #dcd7cd;
  --line-3:     #d9d5cd;
  --line-4:     #f0ede8;
  --accent:     #cbbfae;
  --ink-hover:  #33322e;
  --link-hover: #8d7f6c;

  --shell:   1330px;
  --gutter:  56px;

  --serif: "Cormorant Garamond", serif;
  --sans:  "Noto Sans JP", sans-serif;
}

html, body { margin: 0; padding: 0; background: #ffffff; }

body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; }

@keyframes floaty {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.page { width: 100%; overflow-x: hidden; background: #ffffff; }

.shell { max-width: var(--shell); margin: 0 auto; }

.eyebrow {
  margin: 0 0 30px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--faint);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.section-head--center { align-items: center; }

.section-head h2 { margin: 0; font-size: 32px; font-weight: 500; }
.section-head p {
  margin: 0;
  max-width: 400px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
  font-weight: 300;
}

.icon-arrow { height: 9px; width: auto; display: block; }
.icon-arrow--invert { filter: invert(1); }
.icon-arrow--dim { opacity: .75; }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
}

.btn--dark {
  background: var(--ink);
  color: #ffffff;
  justify-content: space-between;
  gap: 40px;
  padding: 19px 26px 19px 34px;
  letter-spacing: 0.06em;
}
.btn--dark:hover { background: var(--ink-hover); color: #ffffff; }

.btn--text {
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.btn--text .icon-arrow { opacity: .7; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 26px; width: auto; display: block; }

.site-nav {
  display: flex;
  gap: 42px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 24px 14px 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.header-cta:hover { background: var(--ink-hover); color: #ffffff; }

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f5f2 100%);
  padding: 104px var(--gutter) 132px;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 780px;
  max-width: 58%;
  pointer-events: none;
  animation: floaty 12s ease-in-out infinite;
}

.hero__inner { position: relative; }

.hero__eyebrow {
  margin: 0 0 34px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 118px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__lead {
  margin: 42px 0 0;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 26px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__scroll span:first-child {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--faint);
}
.hero__scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, #b3afa6, rgba(179, 175, 166, 0));
}

/* --- services ----------------------------------------------------------- */

.services { padding: 118px var(--gutter) 96px; background: #ffffff; }
.services .section-head h2 { font-size: 34px; letter-spacing: 0.02em; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.services__grid { margin-top: 58px; }

.service-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 30px 28px;
  background: #ffffff;
  transition: box-shadow .3s ease, transform .3s ease;
}
.service-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  margin-bottom: 34px;
}
.service-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.service-card p {
  margin: 0 0 40px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}
.service-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* --- works -------------------------------------------------------------- */

.works { padding: 60px var(--gutter) 110px; background: #ffffff; }
.works__grid { margin-top: 44px; }

.work-card { display: block; }
.work-card__frame {
  overflow: hidden;
  border-radius: 3px;
  background: #f4f2ee;
  aspect-ratio: 16 / 10;
}
.work-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.work-card:hover .work-card__frame img { transform: scale(1.04); }
.work-card h3 {
  margin: 20px 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.work-card p { margin: 0; font-size: 11px; color: var(--muted-2); font-weight: 300; }

/* --- strengths ---------------------------------------------------------- */

.strengths {
  position: relative;
  padding: 96px var(--gutter) 104px;
  background: linear-gradient(180deg, #ffffff, #f8f6f3);
  overflow: hidden;
}
.strengths__blur {
  position: absolute;
  right: -160px;
  top: 40px;
  width: 560px;
  opacity: .55;
  pointer-events: none;
}
.strengths__wave {
  position: absolute;
  left: -120px;
  bottom: -40px;
  width: 460px;
  opacity: .5;
  pointer-events: none;
}
.strengths .shell { position: relative; }
.strengths__grid { margin-top: 62px; gap: 40px; }

.strength__icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  margin-bottom: 26px;
}
.strength h3 { margin: 0 0 14px; font-size: 16px; font-weight: 500; }
.strength p {
  margin: 0;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}

/* --- pricing ------------------------------------------------------------ */

.pricing { padding: 104px var(--gutter) 96px; background: #ffffff; }
.pricing .section-head p { max-width: none; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 52px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 38px 34px 34px;
  background: #ffffff;
}
.plan--featured {
  border-color: var(--line-2);
  padding: 44px 36px 38px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.07);
  transform: translateY(-14px);
}

.plan__label {
  margin: 0 0 26px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.plan__head .plan__label { margin: 0; }
.plan__badge {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.plan__price {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.plan--featured .plan__price { font-size: 42px; }
.plan__desc {
  margin: 0 0 34px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}
.plan__list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 300;
}
.plan__list img { width: 15px; height: 15px; flex: none; }

.plan__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 16px 24px 16px 28px;
  font-size: 12px;
  transition: border-color .2s ease, color .2s ease;
}
.plan__cta:hover { border-color: var(--ink); color: var(--ink); }
.plan__cta .icon-arrow { opacity: .8; }

.plan__cta--dark {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  padding: 17px 24px 17px 28px;
}
.plan__cta--dark:hover { background: var(--ink-hover); color: #ffffff; border-color: var(--ink-hover); }

.pricing__note {
  margin: 26px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  font-weight: 300;
}

/* --- faq ---------------------------------------------------------------- */

.faq {
  position: relative;
  padding: 88px var(--gutter) 96px;
  background: #ffffff;
  overflow: hidden;
}
.faq__blur {
  position: absolute;
  right: -140px;
  bottom: -120px;
  width: 520px;
  opacity: .5;
  pointer-events: none;
}
.faq .shell { position: relative; }

.faq__list {
  max-width: 660px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: none;
  border: 0;
  padding: 20px 4px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.faq__q-mark { font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }
.faq__q-text { flex: 1; font-size: 13px; color: var(--ink); font-weight: 300; }
.faq__sign { font-size: 16px; color: var(--faint); line-height: 1; }

.faq__a {
  margin: 0;
  padding: 0 40px 24px 44px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
  font-weight: 300;
}
.faq__a[hidden] { display: none; }

/* --- clients ------------------------------------------------------------ */

.clients { padding: 20px var(--gutter) 70px; background: #ffffff; }
.clients__label {
  margin: 0 0 34px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--faint);
  text-align: center;
}
.clients__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  opacity: .65;
}
.clients__row img { height: 40px; width: auto; }

/* --- contact ------------------------------------------------------------ */

.contact { padding: 20px var(--gutter) 74px; background: #ffffff; }

.contact__panel {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  border-radius: 6px;
  background: linear-gradient(120deg, #f4f2ef 0%, #eeebe6 100%);
  padding: 88px 72px;
  overflow: hidden;
}
.contact__deco {
  position: absolute;
  right: 40px;
  bottom: -70px;
  width: 320px;
  pointer-events: none;
}
.contact__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.contact__row h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 62px;
  line-height: 1.14;
  letter-spacing: 0.01em;
}
.contact__aside { max-width: 380px; }
.contact__aside p {
  margin: 0 0 30px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--ink-soft);
  font-weight: 300;
}
.contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  padding: 18px 26px 18px 32px;
  font-size: 12px;
}
.contact__cta:hover { background: var(--ink-hover); color: #ffffff; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  padding: 34px var(--gutter) 40px;
  background: #ffffff;
  border-top: 1px solid var(--line-4);
}
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer img { height: 22px; width: auto; }
.footer-nav {
  display: flex;
  gap: 38px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.site-footer p {
  margin: 0;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Responsive — the source design is a fixed desktop canvas; these breakpoints
   preserve its proportions on narrower viewports.
   ========================================================================== */

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero__title { font-size: 92px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .strengths__grid { gap: 34px; }
  .pricing__grid { grid-template-columns: 1fr; gap: 22px; }
  .plan--featured { transform: none; }
  .contact__panel { padding: 72px 48px; }
  .contact__row h2 { font-size: 52px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero { padding: 72px var(--gutter) 96px; }
  .hero__title { font-size: 72px; }
  .hero__visual { width: 520px; max-width: 70%; opacity: .7; }
  .hero__scroll { display: none; }
  .services { padding: 80px var(--gutter) 72px; }
  .works { padding: 48px var(--gutter) 80px; }
  .strengths { padding: 72px var(--gutter) 80px; }
  .pricing { padding: 80px var(--gutter) 72px; }
  .faq { padding: 64px var(--gutter) 72px; }
  .section-head { gap: 28px; }
  .clients__row { gap: 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .site-header { padding: 16px var(--gutter); }
  .header-cta { gap: 16px; padding: 12px 18px 12px 20px; font-size: 10px; }
  .hero__title { font-size: 54px; }
  .hero__visual { top: -10px; right: -80px; opacity: .5; }
  .hero__actions { gap: 20px; }
  .btn--dark { width: 100%; gap: 20px; padding: 17px 22px 17px 26px; }
  .grid-4 { grid-template-columns: 1fr; }
  .services__grid, .works__grid { margin-top: 36px; }
  .strengths__grid { margin-top: 40px; }
  .section-head h2, .services .section-head h2 { font-size: 26px; }
  .contact__panel { padding: 52px 26px; }
  .contact__row h2 { font-size: 38px; }
  .contact__deco { width: 200px; right: -20px; bottom: -50px; opacity: .8; }
  .contact__cta { width: 100%; }
  .faq__a { padding: 0 8px 24px 34px; }
  .site-footer .shell { justify-content: center; text-align: center; }
  .footer-nav { gap: 22px; flex-wrap: wrap; justify-content: center; }
}
