:root {
  color-scheme: light;
  --sand: #f5f4f1;
  --paper: #ffffff;
  --ink: #333332;
  --ink-deep: #222221;
  --muted: #716f6b;
  --line: rgba(34, 34, 33, 0.12);
  --purple: #7366fe;
  --purple-deep: #5d50e8;
  --purple-soft: #d9d5ff;
  --shadow-wide: 0 24px 100px rgba(52, 48, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--sand);
  background-image: radial-gradient(rgba(34, 34, 33, 0.024) 0.55px, transparent 0.7px);
  background-size: 5px 5px;
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-inline: max(24px, calc((100% - 1240px) / 2));
}

.brand,
.site-nav,
.service-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink-deep);
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 4px 4px 0 var(--purple-soft);
}

.site-nav {
  gap: 2px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(115, 102, 254, 0.1);
  color: var(--purple-deep);
  outline: none;
}

.service-showcase,
.hero,
.services-section,
.site-footer {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.service-showcase {
  padding: clamp(76px, 9vw, 124px) 0 96px;
}

.showcase-intro {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.service-type,
.panel-label {
  margin: 0;
  color: var(--purple-deep);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.showcase-intro h1 {
  margin: 18px 0 28px;
  font-size: clamp(3.6rem, 7.2vw, 6.15rem);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.showcase-intro h1 > span {
  display: block;
}

.headline-highlight {
  position: relative;
  z-index: 0;
  width: fit-content;
  margin: 6px auto 0;
  padding: 0 0.12em 0.06em;
}

.headline-highlight::before {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.04em;
  height: 0.56em;
  border-right: 3px solid var(--purple);
  background: var(--purple-soft);
  content: "";
  transform: rotate(-0.6deg);
}

.showcase-intro > p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.service-tabs-shell {
  max-width: 760px;
  margin: 56px auto 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(45, 42, 38, 0.07);
  backdrop-filter: blur(12px);
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.service-tab {
  display: grid;
  min-height: 84px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  border: 0;
  border-radius: 17px;
  padding: 15px 18px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.service-tab:hover:not(.is-active) {
  background: rgba(115, 102, 254, 0.08);
  color: var(--purple-deep);
}

.service-tab.is-active {
  background: var(--purple-deep);
  box-shadow: 0 10px 28px rgba(93, 80, 232, 0.28);
  color: #ffffff;
}

.service-tab:focus-visible {
  outline: 3px solid rgba(115, 102, 254, 0.34);
  outline-offset: 3px;
}

.tab-number {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.68;
}

.tab-title {
  align-self: end;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tab-description {
  align-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.service-tab.is-active .tab-description {
  color: #ffffff;
}

.service-tab.is-active .tab-number {
  opacity: 1;
}

.showcase-panels {
  margin-top: 30px;
}

.showcase-panel {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.45fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 26px;
  background: #292724;
  box-shadow: var(--shadow-wide);
  isolation: isolate;
}

.showcase-panel.is-active {
  animation: panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#panel-captured {
  background: #252837;
}

.panel-copy {
  display: flex;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 72px);
  color: #ffffff;
}

.panel-label {
  color: #b8b0ff;
}

.panel-copy h2 {
  max-width: 430px;
  margin: 18px 0 24px;
  font-size: clamp(2.65rem, 4.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.panel-description {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.75;
}

.panel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.panel-features li {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-visual {
  position: relative;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
}

.panel-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-panel:hover .panel-visual > img {
  transform: scale(1.025);
}

.visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(41, 39, 36, 0.24), transparent 30%),
    linear-gradient(0deg, rgba(26, 24, 22, 0.25), transparent 42%);
  pointer-events: none;
}

#panel-captured .visual-shade {
  background:
    linear-gradient(90deg, rgba(37, 40, 55, 0.24), transparent 30%),
    linear-gradient(0deg, rgba(27, 30, 43, 0.24), transparent 42%);
}

.app-preview {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: 48px;
  width: min(420px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(26, 24, 22, 0.24);
  color: var(--ink-deep);
  backdrop-filter: blur(18px);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #77736e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-preview > p {
  margin: 30px 0 24px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.42;
}

.reading-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #dfdcd6;
}

.reading-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.preview-stats span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #7a7773;
  font-size: 0.75rem;
  font-weight: 700;
}

.preview-stats strong {
  color: var(--ink-deep);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.captured-preview {
  background: rgba(248, 247, 253, 0.86);
}

.memory-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 20px 0;
}

.memory-stack span {
  aspect-ratio: 4 / 5;
  border: 5px solid #ffffff;
  border-bottom-width: 14px;
  border-radius: 3px;
  background-image: url("./assets/camera-placeholder.jpg");
  background-position: 22% 52%;
  background-size: 350%;
  box-shadow: 0 7px 18px rgba(48, 42, 72, 0.14);
  transform: rotate(-3deg);
}

.memory-stack span:nth-child(2) {
  background-position: 54% 42%;
  transform: translateY(5px) rotate(2.5deg);
}

.memory-stack span:nth-child(3) {
  background-position: 82% 64%;
  transform: rotate(-1deg);
}

.captured-preview > p {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.image-credit {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.image-credit:hover,
.image-credit:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration: underline;
}

.tab-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding: 108px 0 72px;
}

.hero h2 {
  max-width: 820px;
  margin: 16px 0 24px;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero h2 span {
  display: block;
}

.hero-description {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.75;
}

.hero-panel {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: var(--purple);
  box-shadow: 0 22px 70px rgba(93, 80, 232, 0.22);
  color: #ffffff;
}

.hero-count {
  display: block;
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero-label {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.services-section {
  padding: 32px 0 112px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(42, 39, 35, 0.08);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.service-card:hover {
  box-shadow: 0 22px 64px rgba(42, 39, 35, 0.12);
  transform: translateY(-4px);
}

.service-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  place-items: center;
}

.placeholder {
  background:
    linear-gradient(135deg, rgba(115, 102, 254, 0.24), transparent 46%),
    repeating-linear-gradient(
      -45deg,
      rgba(51, 51, 50, 0.03) 0 12px,
      rgba(51, 51, 50, 0.07) 12px 13px
    ),
    #e8e6df;
  color: rgba(51, 51, 50, 0.5);
  font-weight: 800;
}

.placeholder::after {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(51, 51, 50, 0.25);
  border-radius: 14px;
  content: "";
}

.service-content {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.service-content h3 {
  margin: 7px 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.service-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.service-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--purple-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 26px 0 38px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--purple-deep);
  font-weight: 800;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .showcase-panel {
    grid-template-columns: 1fr;
  }

  .panel-copy {
    padding: 50px;
  }

  .panel-copy h2 {
    max-width: 620px;
  }

  .panel-description {
    max-width: 620px;
  }

  .panel-visual {
    min-height: 540px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-panel {
    min-height: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .service-showcase,
  .hero,
  .services-section,
  .site-footer {
    width: min(100% - 28px, 1200px);
  }

  .service-showcase {
    padding: 68px 0 72px;
  }

  .showcase-intro {
    text-align: left;
  }

  .showcase-intro h1 {
    margin: 14px 0 22px;
    font-size: clamp(2.5rem, 12.4vw, 4rem);
  }

  .headline-highlight {
    margin-inline: 0;
  }

  .showcase-intro h1 > .headline-highlight {
    display: inline;
    padding: 0 0.12em 0.04em;
    background: linear-gradient(
      transparent 47%,
      var(--purple-soft) 47% 94%,
      transparent 94%
    );
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .headline-highlight::before {
    display: none;
  }

  .showcase-intro > p:last-child {
    margin-inline: 0;
    font-size: 1rem;
  }

  .service-tabs-shell {
    margin-top: 38px;
    border-radius: 18px;
    padding: 4px;
  }

  .service-tabs {
    gap: 4px;
  }

  .service-tab {
    min-height: 66px;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    column-gap: 8px;
    border-radius: 14px;
    padding: 10px 11px;
  }

  .tab-number {
    width: 28px;
    height: 28px;
    grid-row: 1;
    font-size: 0.58rem;
  }

  .tab-title {
    align-self: center;
    font-size: 0.92rem;
  }

  .tab-description {
    display: none;
  }

  .showcase-panels {
    margin-top: 18px;
  }

  .showcase-panel {
    min-height: auto;
    border-radius: 19px;
  }

  .panel-copy {
    padding: 34px 24px 36px;
  }

  .panel-copy h2 {
    margin: 14px 0 18px;
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .panel-description {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .panel-features {
    gap: 6px;
    margin-top: 24px;
  }

  .panel-features li {
    min-height: 31px;
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .panel-visual {
    min-height: 410px;
  }

  .app-preview {
    right: 16px;
    bottom: 40px;
    width: calc(100% - 32px);
    border-radius: 18px;
    padding: 18px;
  }

  .reading-preview > p {
    margin: 22px 0 18px;
    font-size: 1.15rem;
  }

  .preview-stats {
    margin-top: 18px;
  }

  .preview-stats strong {
    font-size: 1.35rem;
  }

  .memory-stack {
    margin: 16px 0;
  }

  .image-credit {
    right: 12px;
    bottom: 11px;
    font-size: 0.56rem;
  }

  .hero {
    padding: 76px 0 56px;
  }

  .hero h2 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .hero-panel {
    border-radius: 19px;
  }

  .services-section {
    padding-bottom: 80px;
  }

  .service-card {
    border-radius: 19px;
  }

  .service-media {
    min-height: 190px;
  }

  .service-content {
    padding: 22px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
