:root{
  --bg:#ffffff;
  --surface:#f5f5f7;
  --surface2:#ffffff;

  --text:#1d1d1f;
  --muted:#6e6e73;
  --border:rgba(0,0,0,.10);

  --primary:#0071e3;

  --shadow:0 10px 30px rgba(0,0,0,.08);
  --shadow2:0 1px 2px rgba(0,0,0,.06);

  --radius:16px;
  --radius2:22px;

  --container:1040px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  letter-spacing:-0.1px;
}
a{color:inherit;text-decoration:none;}
.container{width:min(var(--container),calc(100% - 40px));margin:0 auto;}
.muted{color:var(--muted);}

.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.skip:focus{
  left:12px;top:12px;width:auto;height:auto;padding:10px 12px;
  background:var(--surface2);border:1px solid var(--border);
  border-radius:12px;z-index:9999;
}

/* Header */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.78);
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(180%) blur(16px);
}
.header__inner{
  height:64px;
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;}
.brand__mark{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  background:var(--text);color:#fff;
}
.brand__name{font-size:16px;}

.nav{display:flex;align-items:center;position:relative;}
.nav__toggle{display:none;}
.nav__menu{display:flex;align-items:center;gap:10px;}
.nav__link{
  padding:10px 10px;border-radius:12px;
  color:var(--muted);
}
.nav__link:hover{background:rgba(0,0,0,.03);color:var(--text);}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}
.btn:hover{background:rgba(0,0,0,.03);}
.btn:active{transform:translateY(1px);}
.btn--primary{border-color:transparent;background:var(--primary);color:#fff;}
.btn--primary:hover{filter:brightness(.98);}
.btn--secondary{background:var(--surface2);}
.btn--ghost{background:transparent;border-color:transparent;}
.btn--ghost:hover{background:rgba(0,0,0,.03);}

/* Mobile icon button */
.icon-btn{
  width:42px;height:42px;border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface2);
  cursor:pointer;
}
.burger{width:18px;height:2px;display:block;margin:0 auto;background:var(--text);position:relative;border-radius:2px;}
.burger::before,.burger::after{content:"";position:absolute;left:0;width:18px;height:2px;background:var(--text);border-radius:2px;}
.burger::before{top:-6px;}
.burger::after{top:6px;}

/* Hero */
.hero{padding:64px 0 28px;}
.hero__grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:22px;
  align-items:start;
}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.02);
  color:var(--muted);
  font-weight:650;font-size:13px;
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--primary);}
.hero__title{
  margin:18px 0 10px;
  font-size:clamp(30px,3.5vw,52px);
  line-height:1.06;
  letter-spacing:-0.7px;
  font-weight:800;
}
.accent{color:var(--primary);}
.hero__desc{
  margin:0 0 18px;
  color:var(--muted);
  font-size:17px;
  max-width:60ch;
}
.hero__cta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;}
.hero__meta{display:flex;gap:10px;flex-wrap:wrap;}
.stat{
  min-width:120px;
  padding:12px 14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(0,0,0,.02);
}
.stat__num{font-weight:800;font-size:18px;}
.stat__label{color:var(--muted);font-size:13px;}

.hero__card{
  border:1px solid var(--border);
  background:var(--surface2);
  border-radius:var(--radius2);
  padding:18px;
}
.hero__cardTitle{font-weight:800;margin-top:8px;}
.hero__cardDesc{margin:6px 0 14px;color:var(--muted);}
.mini{
  display:flex;flex-direction:column;gap:10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:12px;
  background:rgba(0,0,0,.02);
}
.mini__row{display:flex;justify-content:space-between;gap:10px;}
.mini__label{color:var(--muted);}
.mini__value{font-weight:800;}

/* Sections */
.section{padding:76px 0;}
.section:nth-of-type(even){background:var(--surface);}
.section__head{margin-bottom:18px;}
.section__title{
  margin:0 0 6px;
  font-size:clamp(22px,2.2vw,30px);
  letter-spacing:-0.4px;
  font-weight:800;
}
.section__desc{margin:0;color:var(--muted);}

/* Grid cards */
.grid{display:grid;gap:14px;}
.grid--3{grid-template-columns:repeat(3,1fr);}
.card{
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius2);
  background:var(--surface2);
}
.card__icon{font-size:22px;}
.card__title{margin:10px 0 6px;font-size:16px;font-weight:800;}
.card__text{margin:0;color:var(--muted);font-size:14px;}

/* Pricing */
.price{
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius2);
  background:var(--surface2);
  display:flex;flex-direction:column;gap:10px;
}
.price--featured{border-color:rgba(0,113,227,.35);box-shadow:var(--shadow2);}
.price__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;}
.price__name{margin:0;font-size:16px;font-weight:800;}
.price__tag{margin:0;color:var(--muted);font-weight:700;font-size:12px;}
.price__num{margin:2px 0 6px;font-size:30px;font-weight:900;letter-spacing:-0.6px;}
.price__cta{margin-top:auto;}
.list{margin:0;padding-left:18px;color:var(--muted);}
.list li{margin:8px 0;}

/* Contact */
.contact{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.form{
  border:1px solid var(--border);
  border-radius:var(--radius2);
  background:var(--surface2);
  padding:18px;
}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;}
.field__label{font-weight:800;font-size:13px;color:var(--muted);}
.input,.textarea{
  width:100%;
  padding:12px 12px;border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.02);
  color:var(--text);
  outline:none;
}
.input:focus,.textarea:focus{
  border-color:rgba(0,113,227,.35);
  background:rgba(0,113,227,.06);
}
.form__row{display:flex;gap:10px;flex-wrap:wrap;}
.form__hint{margin:10px 0 0;color:var(--muted);font-size:13px;}
.info{display:flex;flex-direction:column;gap:12px;}
.info__box{
  border:1px solid var(--border);
  border-radius:var(--radius2);
  background:var(--surface2);
  padding:18px;
}
.info__title{margin:0 0 8px;font-size:15px;font-weight:800;}
.info__text{margin:0;color:var(--muted);font-size:14px;}

/* Footer */
.footer{
  padding:28px 0;
  border-top:1px solid var(--border);
  background:var(--surface);
}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.footer__links{display:flex;align-items:center;gap:8px;}
.sep{color:var(--muted);}
.link:hover{text-decoration:underline;}

/* Toast */
.toast{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
  padding:12px 14px;border-radius:14px;border:1px solid var(--border);
  background:rgba(255,255,255,.92);color:var(--text);
  opacity:0;pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow:var(--shadow);
  max-width:min(520px,calc(100% - 24px));
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(-4px);}

/* ===== Apple-ish Scroll Story ===== */
.story__grid{
  display:grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 22px;
  align-items: start;
}

/* Left steps */
.story__steps{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.step{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--surface2);
  opacity: .52;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}
.step.is-active{
  opacity: 1;
  transform: translateY(0);
}
.step__kicker{
  margin:0 0 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
}
.step__title{
  margin:0 0 6px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.step__text{ margin:0; color: var(--muted); }

/* Right visual */
.story__visualWrap{ position: relative; }
.story__visual{
  position: sticky;
  top: 92px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  padding: 18px;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.visualTop{ display:flex; gap: 8px; justify-content:flex-end; }
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.02);
}
.pill--muted{ color: var(--muted); }

.visualCaption{ display:flex; flex-direction:column; gap:4px; }
.visualTitle{ font-weight: 850; font-size: 18px; letter-spacing: -0.3px; }
.visualDesc{ color: var(--muted); font-size: 14px; }

.device{
  margin: 2px 0 0;
  width: 100%;
}

/* device frame (Apple-ish) */
.device__frame{
  position: relative;
  border-radius: 28px;
  background: #0b0b0c;
  padding: 14px;
  box-shadow: var(--shadow);
  transform: translateY(var(--lift, 0px)) scale(var(--scale, 1));
  transition: transform .25s ease;
}
.device__notch{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  max-width: 220px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.device__screen{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(255,255,255,.08);
}

/* shots overlay + crossfade */
.shot{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .45s ease;
}
.shot.is-active{
  opacity:1;
  transform: scale(1);
}
.shot svg, .shot img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}

/* subtle stage tint changes */
.story__visual[data-active="0"] .device__frame{ background: #0b0b0c; }
.story__visual[data-active="1"] .device__frame{ background: #0a0a0b; }
.story__visual[data-active="2"] .device__frame{ background: #09090a; }
.story__visual[data-active="3"] .device__frame{ background: #080809; }

.visualCta{ display:flex; gap: 10px; flex-wrap: wrap; }
.visualHint{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr;}
  .story__grid{grid-template-columns:1fr;}
  .story__visual{ position: relative; top: auto; } /* 모바일 완화 */
}

@media (max-width: 820px){
  .grid--3{grid-template-columns:1fr;}
  .contact{grid-template-columns:1fr;}

  .nav__toggle{display:inline-flex;}
  .nav__menu{
    position:absolute;right:20px;top:64px;
    width:min(360px,calc(100vw - 40px));
    display:none;flex-direction:column;align-items:stretch;
    gap:8px;padding:12px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.92);
    border-radius: var(--radius2);
    backdrop-filter:saturate(180%) blur(16px);
    box-shadow: var(--shadow);
  }
  .nav__menu.open{display:flex;}
  .nav__link{padding:12px 12px;}
}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important;scroll-behavior:auto !important;}
  .device__frame{ transform:none !important; }
}
