:root {
  --bg: #fff8ea;
  --ink: #201a12;
  --muted: #776f63;
  --paper: rgba(255, 255, 255, 0.78);
  --line: rgba(32, 26, 18, 0.12);
  --gold: #f4c95d;
  --sun: #ffec9f;
  --coral: #ff8d6b;
  --teal: #5bc7b5;
  --blue: #5578ff;
  --shadow: 0 24px 70px rgba(64, 45, 18, 0.16);
  font-family:
    "Pretendard Variable",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 93, 0.48), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(91, 199, 181, 0.34), transparent 26rem),
    linear-gradient(135deg, #fff8ea 0%, #f7eee0 46%, #fffdf7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(32, 26, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 26, 18, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 252, 244, 0.82);
  border-color: var(--line);
  box-shadow: 0 14px 44px rgba(64, 45, 18, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
}

nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 999px;
}

nav a:hover,
.nav-cta {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 86px);
  padding: 76px 0 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #99702c;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  font-weight: 950;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.primary-button {
  color: #241500;
  background: linear-gradient(135deg, var(--gold), #ffd981);
  box-shadow: 0 14px 28px rgba(174, 111, 0, 0.2);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.floating-beta {
  position: absolute;
  right: 38px;
  bottom: 8px;
  z-index: 3;
  padding: 15px 18px;
  color: #2b210f;
  font-weight: 950;
  line-height: 1.35;
  background: rgba(255, 248, 223, 0.92);
  border: 1px solid rgba(244, 201, 93, 0.58);
  border-radius: 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 42px 0 0;
}

.proof-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.proof-strip dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-strip dd {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 34px 18px 20px;
  z-index: -2;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 233, 174, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 54px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.device-card {
  position: absolute;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.device-card-a {
  top: 28px;
  right: 0;
  width: min(330px, 76%);
  padding: 24px;
}

.device-card-b {
  bottom: 42px;
  left: 0;
  width: min(365px, 82%);
  padding: 30px;
}

.status-pill,
.app-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 950;
  border-radius: 999px;
}

.status-pill {
  color: #225047;
  background: rgba(91, 199, 181, 0.22);
}

.app-chip {
  color: #5b3d00;
  background: rgba(244, 201, 93, 0.34);
}

.screen-topline {
  width: 100%;
  height: 130px;
  margin-top: 22px;
  background:
    radial-gradient(circle at 68% 42%, rgba(85, 120, 255, 0.54), transparent 42%),
    linear-gradient(135deg, #fff4cf, #ffe4c6 48%, #dff8f3);
  border-radius: 28px;
}

.metric-row {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}

.metric-row strong {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-row span {
  max-width: 120px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.mini-chart {
  display: flex;
  gap: 9px;
  align-items: end;
  height: 92px;
  margin-top: 24px;
}

.mini-chart i {
  display: block;
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--teal), var(--gold));
  border-radius: 999px 999px 8px 8px;
}

.device-card-b h2 {
  margin-top: 18px;
  font-size: 2.15rem;
}

.device-card-b ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.device-card-b li {
  padding: 14px 16px;
  font-weight: 850;
  background: rgba(255, 248, 234, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(32, 26, 18, 0.1);
  border-radius: 999px;
}

.orbit.one {
  top: 72px;
  left: 50px;
  width: 330px;
  height: 330px;
}

.orbit.two {
  right: 42px;
  bottom: 74px;
  width: 250px;
  height: 250px;
}

.services,
.portfolio,
.process,
.contact {
  padding: 88px 0;
}

.beta-service {
  padding: 20px 0 88px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: 36px;
  max-width: none;
  align-items: end;
}

.section-heading.split > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

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

.service-card,
.portfolio-card,
.timeline article,
.contact-panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(64, 45, 18, 0.09);
  backdrop-filter: blur(16px);
}

.service-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 30px;
}

.service-card span {
  display: block;
  margin-bottom: 56px;
  color: #b4862d;
  font-size: 0.88rem;
  font-weight: 950;
}

.service-card p,
.portfolio-card p,
.timeline p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border-radius: 32px;
}

.portfolio-card::before {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  content: "";
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: 0.42;
}

.portfolio-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.portfolio-head span {
  padding: 8px 10px;
  color: #5d4c2c;
  font-size: 0.72rem;
  font-weight: 950;
  background: rgba(244, 201, 93, 0.25);
  border-radius: 999px;
}

.portfolio-head strong {
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.portfolio-card p {
  margin-top: 42px;
}

.portfolio-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.portfolio-card li {
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.beta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: 28px;
  padding: clamp(24px, 5vw, 52px);
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 201, 93, 0.42), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(230, 249, 245, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.beta-panel p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.76;
}

.beta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.beta-card-stack {
  display: grid;
  gap: 12px;
}

.beta-card-stack article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.beta-card-stack span {
  display: inline-flex;
  margin-bottom: 22px;
  color: #9a6c19;
  font-weight: 950;
}

.beta-card-stack strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.beta-card-stack p {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: 30px;
}

.timeline span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 36px;
  font-weight: 950;
  color: #241500;
  place-items: center;
  background: var(--gold);
  border-radius: 50%;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: 36px;
  padding: clamp(24px, 5vw, 52px);
  background:
    radial-gradient(circle at 0 0, rgba(244, 201, 93, 0.42), transparent 28rem),
    rgba(255, 255, 255, 0.72);
  border-radius: 42px;
}

.mail-link {
  display: inline-flex;
  margin-top: 14px;
  color: #684600;
  font-weight: 950;
  border-bottom: 2px solid rgba(244, 201, 93, 0.8);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #4d4235;
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
}

.contact-form input,
.contact-form select {
  height: 52px;
  padding: 0 16px;
}

.contact-form textarea {
  resize: vertical;
  padding: 15px 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(153, 112, 44, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 201, 93, 0.22);
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-main strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.1rem;
}

.footer-main p {
  margin: 0;
}

.business-info {
  display: grid;
  gap: 8px;
  margin: 0;
}

.business-info div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
}

.business-info dt {
  color: rgba(119, 111, 99, 0.78);
  font-weight: 900;
}

.business-info dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.contact-lines,
.legal-contact {
  display: grid;
  gap: 3px;
}

.contact-lines a,
.legal-contact a {
  width: fit-content;
  color: inherit;
}

.business-info-hidden {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-links button,
.footer-links a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.ops-link {
  color: rgba(119, 111, 99, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-link:hover {
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: 22px;
  overflow: auto;
  background: rgba(32, 26, 18, 0.42);
  backdrop-filter: blur(12px);
  place-items: center;
}

.legal-modal {
  width: min(920px, 100%);
  max-height: min(820px, calc(100svh - 44px));
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(32, 26, 18, 0.28);
}

.legal-modal header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.legal-modal header h2 {
  font-size: 1.6rem;
}

.legal-modal header button {
  padding: 9px 13px;
  font-weight: 900;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.legal-body {
  max-height: calc(min(820px, 100svh - 44px) - 82px);
  padding: 24px;
  overflow: auto;
}

.legal-body h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.72;
}

.privacy-table {
  width: 100%;
  overflow: hidden;
  font-size: 0.9rem;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.privacy-table th,
.privacy-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.privacy-table th {
  color: var(--ink);
  background: rgba(244, 201, 93, 0.2);
}

.privacy-table td {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.plain-page {
  min-height: 100svh;
  padding: 28px 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(244, 201, 93, 0.22), transparent 34%),
    linear-gradient(135deg, #fbf6e9 0%, #f6efe0 52%, #efe3d0 100%);
}

.plain-document {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  color: var(--ink);
  background: rgba(255, 252, 244, 0.88);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.plain-document h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.95;
}

.plain-document h2 {
  margin: 28px 0 8px;
  font-size: 1.3rem;
}

.plain-document p {
  color: var(--muted);
  line-height: 1.78;
}

.plain-document a {
  color: #7f1d1d;
  font-weight: 900;
}

.plain-back {
  display: inline-flex;
  margin-bottom: 24px;
  text-decoration: none;
}

.plain-footer {
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.plain-footer p {
  margin: 4px 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .service-grid,
  .portfolio-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading.split,
  .contact-panel,
  .beta-panel,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  .site-header {
    position: static;
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .brand span {
    display: none;
  }

  nav a {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .section {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(2.9rem, 17vw, 4.8rem);
  }

  .proof-strip,
  .service-grid,
  .portfolio-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .device-card-a,
  .device-card-b {
    width: 88%;
  }

  .device-card-a {
    right: 0;
  }

  .device-card-b {
    left: 0;
  }

  .services,
  .portfolio,
  .process,
  .contact {
    padding: 58px 0;
  }

  .contact-panel {
    padding: 22px;
    border-radius: 30px;
  }

  .floating-beta {
    right: 12px;
    bottom: 0;
  }

  .site-footer {
    width: calc(100% - 24px);
  }

  .business-info div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .privacy-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
