:root {
  --petroleum: #1f3a3d;
  --sand: #f4efe8;
  --ivory: #faf7f2;
  --calm-green: #a8b5a2;
  --rose-clay: #c980b7;
  --charcoal: #222222;
  --petroleum-soft: rgba(31, 58, 61, 0.14);
  --petroleum-muted: rgba(31, 58, 61, 0.66);
  --shadow-soft: 0 22px 52px rgba(31, 58, 61, 0.1);
  --page-pad: clamp(1.35rem, 4vw, 4.75rem);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--sand);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--sand);
  color: var(--petroleum);
  font-family:
    Inter,
    "Nunito Sans",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  text-rendering: geometricprecision;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow-x: clip;
}

.site-header {
  display: flex;
  align-items: center;
  padding: clamp(0.55rem, 1.25vw, 0.85rem) var(--page-pad);
  border-bottom: 1px solid rgba(31, 58, 61, 0.13);
}

.header-inner {
  display: flex;
  width: min(100%, 96rem);
  margin-inline: auto;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  border-radius: 8px;
  text-decoration: none;
}

.brand-link:focus-visible {
  outline: 3px solid rgba(31, 58, 61, 0.4);
  outline-offset: 0.35rem;
}

.brand-logo-frame {
  position: relative;
  display: block;
  width: clamp(6.9rem, 9.2vw, 8.3rem);
  height: clamp(4.35rem, 5.8vw, 5.15rem);
  overflow: hidden;
}

.brand-logo-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(8.25rem, 10.8vw, 9.85rem);
  height: clamp(8.25rem, 10.8vw, 9.85rem);
  transform: translate(-50%, -50%);
  object-fit: contain;
}

main {
  display: grid;
}

.hero {
  display: grid;
  width: min(100%, 96rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.93fr) minmax(28rem, 1.07fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6.6rem);
  padding: clamp(2.3rem, 5.2vw, 4.8rem) var(--page-pad)
    clamp(4.8rem, 7vw, 6.4rem);
}

.hero-copy {
  max-width: 45.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  margin: 0 0 clamp(2.3rem, 4vw, 3.8rem);
  padding: 0.28rem 1.55rem 0.25rem;
  border: 1px solid rgba(31, 58, 61, 0.06);
  border-radius: 999px;
  background: rgba(168, 181, 162, 0.56);
  color: var(--petroleum);
  font-size: 0.78rem;
  font-weight: 730;
  letter-spacing: 0.28em;
  line-height: 1;
}

h1 {
  margin: 0;
  max-width: 45rem;
  color: var(--petroleum);
  font-family:
    "Plus Jakarta Sans",
    Manrope,
    Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: clamp(3.35rem, 5.15vw, 4.55rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-subtitle {
  max-width: 40rem;
  margin: clamp(1.8rem, 2.5vw, 2.35rem) 0 0;
  color: rgba(34, 34, 34, 0.9);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.68;
}

.hero-subtitle strong {
  color: var(--petroleum);
  font-weight: 760;
}

.instagram-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 4.35rem;
  margin-top: clamp(2rem, 3.2vw, 2.6rem);
  padding: 0.95rem 1.85rem;
  border: 1px solid rgba(31, 58, 61, 0.22);
  border-radius: 10px;
  background: var(--petroleum);
  box-shadow: 0 16px 36px rgba(31, 58, 61, 0.2);
  color: var(--ivory);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  font-weight: 720;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.instagram-cta svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.instagram-cta:hover {
  background: var(--petroleum);
  box-shadow: 0 18px 42px rgba(31, 58, 61, 0.26);
  transform: translateY(-1px);
}

.instagram-cta:focus-visible {
  outline: 3px solid rgba(201, 128, 183, 0.52);
  outline-offset: 0.35rem;
}

.hero-visual {
  min-width: 0;
}

.visual-stage {
  position: relative;
  min-height: clamp(31.5rem, 46vw, 40rem);
  isolation: isolate;
}

.system-lines {
  position: absolute;
  inset: -1.2rem -1.8rem -1rem -2.2rem;
  z-index: 1;
  width: calc(100% + 4rem);
  height: calc(100% + 2.2rem);
  overflow: visible;
  fill: var(--calm-green);
  stroke: rgba(31, 58, 61, 0.18);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-lines path {
  fill: none;
}

.system-lines .right-rail,
.system-lines .connector-line {
  stroke: rgba(31, 58, 61, 0.2);
}

.system-lines .connector-line {
  stroke-dasharray: 4 12;
}

.system-lines .muted-line {
  stroke: rgba(31, 58, 61, 0.14);
  stroke-dasharray: 3 10;
}

.dot-field {
  fill: rgba(31, 58, 61, 0.26);
  stroke: none;
}

.rose-node {
  fill: var(--rose-clay);
  stroke: none;
}

.line-node,
.line-square {
  fill: var(--calm-green);
  stroke: rgba(250, 247, 242, 0.86);
  stroke-width: 1.6;
}

.mark-field {
  position: absolute;
  top: 50%;
  left: 54%;
  z-index: 2;
  width: min(48vw, 28.4rem);
  aspect-ratio: 0.92;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.mark-field img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 119%;
  height: 119%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.system-card {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-width: clamp(10.6rem, 14vw, 12.7rem);
  min-height: 5.1rem;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(31, 58, 61, 0.07);
  border-radius: 8px;
  background: rgba(250, 247, 242, 0.88);
  box-shadow: var(--shadow-soft);
  color: var(--petroleum);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  font-weight: 700;
  line-height: 1.1;
  backdrop-filter: blur(14px);
}

.system-card svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--calm-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.card-create {
  top: 9%;
  left: 1.5%;
  animation: float-a 7.5s ease-in-out infinite;
}

.card-organize {
  top: 31%;
  right: -0.2rem;
  animation: float-b 8.4s ease-in-out infinite;
}

.card-automate {
  bottom: 9%;
  left: 0.4rem;
  animation: float-c 8s ease-in-out infinite;
}

.card-scale {
  right: 4.4%;
  bottom: 11%;
  min-width: clamp(9.7rem, 13vw, 11.3rem);
  animation: float-d 7.8s ease-in-out infinite;
}

.site-footer {
  padding: clamp(1.2rem, 2.4vw, 1.85rem) var(--page-pad);
  border-top: 1px solid rgba(31, 58, 61, 0.13);
  color: rgba(31, 58, 61, 0.72);
}

.footer-inner {
  display: grid;
  width: min(100%, 96rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.footer-message {
  position: relative;
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  justify-self: center;
  color: rgba(31, 58, 61, 0.65);
  font-size: clamp(0.86rem, 1.1vw, 0.98rem);
  font-weight: 620;
  line-height: 1.5;
  text-align: center;
}

.footer-message::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--rose-clay);
  box-shadow: 0 0 0 0.32rem rgba(201, 128, 183, 0.08);
  content: "";
}

.copyright {
  grid-column: 3;
  justify-self: end;
  color: rgba(31, 58, 61, 0.63);
  font-size: 0.86rem;
  font-weight: 620;
  white-space: nowrap;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0.45rem, -0.55rem, 0);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-0.45rem, 0.5rem, 0);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0.35rem, 0.55rem, 0);
  }
}

@keyframes float-d {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-0.35rem, -0.5rem, 0);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(23rem, 1.06fr);
    gap: clamp(2rem, 4vw, 3.4rem);
  }

  h1 {
    font-size: clamp(2.85rem, 5.3vw, 3.9rem);
  }

  .visual-stage {
    min-height: clamp(29rem, 50vw, 36rem);
  }

  .system-card {
    min-width: 10rem;
    min-height: 4.65rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: clamp(3.2rem, 8vw, 5rem);
  }

  .hero-copy {
    max-width: 46rem;
  }

  h1 {
    max-width: 43rem;
    font-size: clamp(2.75rem, 8vw, 4.25rem);
  }

  .hero-subtitle {
    max-width: 42rem;
  }

  .hero-visual {
    max-width: 42rem;
    margin-inline: auto;
    width: 100%;
  }

  .visual-stage {
    min-height: 33rem;
  }

  .system-lines {
    inset: -1rem -1.25rem -1rem -1.25rem;
    width: calc(100% + 2.5rem);
  }

  .mark-field {
    width: min(31rem, 78vw);
  }

  .card-create {
    left: 0.75rem;
  }

  .card-organize {
    right: 1rem;
  }

  .card-automate {
    left: 1rem;
  }

  .card-scale {
    right: 1rem;
  }

  .site-footer {
    padding-block: 1.55rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-block: 0.6rem;
  }

  .brand-logo-frame {
    width: 6.6rem;
    height: 4.25rem;
  }

  .brand-logo-frame img {
    width: 8rem;
    height: 8rem;
  }

  .hero {
    gap: 2.7rem;
    padding-block: 3rem 3.7rem;
  }

  .eyebrow {
    margin-bottom: 2rem;
    padding-inline: 1.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  h1 {
    font-size: clamp(2.35rem, 11.2vw, 3.1rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    margin-top: 1.45rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .instagram-cta {
    width: 100%;
    min-height: 3.9rem;
    margin-top: 1.8rem;
    padding-inline: 1.2rem;
  }

  .visual-stage {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
    padding-top: 1rem;
  }

  .system-lines {
    inset: -1.65rem -0.8rem auto;
    height: 17rem;
    opacity: 0.5;
  }

  .mark-field {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    width: min(18rem, 78vw);
    height: min(18rem, 78vw);
    margin: 0 auto 0.25rem;
    transform: none;
  }

  .system-card {
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 4.55rem;
    justify-content: flex-start;
    gap: 0.72rem;
    padding: 0.85rem 0.9rem;
    font-size: 0.96rem;
    animation: none;
  }

  .system-card svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .site-footer {
    padding-block: 1.65rem;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.72rem;
    justify-items: center;
  }

  .footer-message {
    grid-column: auto;
    flex-direction: column;
    max-width: 20rem;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.91rem;
  }

  .copyright {
    grid-column: auto;
    justify-self: center;
  }
}

@media (max-width: 390px) {
  .system-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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