:root{
  --purple:#6C4CF0;
  --purple-dark:#4B2FD1;
  --text-dark:#1a1a2e;
  --text-gray:#555;
  --content-width:1200px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:"Pretendard","Noto Sans KR",sans-serif;
  font-size:17px;
  color:var(--text-dark);
  background:#fff;
  line-height:1.5;
}

img{
  max-width:100%;
  display:block;
}

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

.wrap{
  max-width:var(--content-width);
  margin:0 auto;
  padding:0 48px;
}


/* ================= HEADER =================
   아래 .hero-event-section 배경 이미지를 헤더까지 그대로 공유합니다.
   배경만 살짝 블러 처리
================= */

.top-header{
  position:relative;
  overflow:hidden; border-bottom: 1px solid #d7d7d76e;
}

.top-header::before{
  content:"";
  position:absolute;
  inset:0;

  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);

  pointer-events:none;
  z-index:0;
}

.top-header > *{
  position:relative;
  z-index:1;
}

.top-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:27px;
  padding-bottom:27px;
}

.top-header .brand-left{
  display:flex;
  align-items:center;
  gap:20px;
}

.brand-link{
  display:inline-flex;
  align-items:center;
  border-radius:5px;
}

.brand-link:focus-visible{
  outline:3px solid rgba(98, 65, 205, .35);
  outline-offset:4px;
}

.top-header .brand-left .ms-logo{
  height:28px;
}

.top-header .brand-left .github-logo{
  height:33px;
}

.top-header .brand-left .brand-divider{
  width:1px;
  height:28px;
  background:#d9d9d9;
}

.top-header .brand-right img{
  height:26px;
}


/* ================= HEADER + HERO + EVENT 공용 배경 ================= */

.hero-event-section{
  position:relative;
  background-image:url("images/hero-event-bg.jpg");
  background-size:cover;
  background-position:center top;
}


/* ================= HERO SECTION ================= */

.hero-section{
  position:relative;
  padding:112px 0 138px;
  overflow:hidden;
}

.hero-inner{
  max-width:760px;
}

.hero-inner h1{
  font-size:48px;
  font-weight:800;
  line-height:1.35;
  color:var(--text-dark);
  margin-bottom:30px;
}

.hero-inner h1 .accent{
  color:#6633ff;
}

.hero-inner .hero-sub-title{
  font-size:21px;
  font-weight:700;
  margin-bottom:17px;
  color:var(--text-dark);
}

.hero-inner .hero-desc{
  font-size:20px;
  color:#272727;
  margin-bottom:44px;
}

.btn-row{
  display:flex;
  gap:15px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:17px 28px;
  font-size:22px;
  font-weight:700;
  border-radius:10px;
  cursor:pointer;
  border:none;
  white-space:nowrap;
}

.btn-primary{
  background:#6633ff;
  color:#fff;
}

.btn-primary:hover{
  background:var(--purple-dark);
}

.btn-outline{
  background:#fff;
  color:#6633ff;
  border:1px solid #6633ff;
}

.btn-outline:hover{
  background:#f5f5f5;
}


/* ================= EVENT BANNER =================
   공용 배경은 그대로 두고 배경만 블러 처리
================= */

.event-section {
  position: relative;
  padding: 0;
  overflow: hidden;

  background-image: url("images/event-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.event-section::before{
  content:"";
  position:absolute;
  inset:0;

  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);

  pointer-events:none;
  z-index:0;
}

.event-section > *{
  position:relative;
  z-index:1;
}

.event-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.event-text-area{
  max-width:720px;
}

.event-date-badge{
  display:inline-block;
  padding:9px 20px;
  border-radius:20px;
  border:1px solid #6633ff;
  color:#6633ff;
  font-size:16px;
  font-weight:700;
  margin-bottom:21px;
}

.event-text-area h2{
  font-size:36px;
  font-weight:800;
  line-height:1.4;
  margin-bottom:8px;
}

.event-text-area h2 .accent{
  color:#6633ff;
  font-size:44px;
}

.event-text-area p{
  font-size:20px;
  color:#272727;
  margin-top:18px;
}

.event-text-area p .highlight{
  color:#6633ff;
  font-weight:700;
}

.event-visual{
  width:440px;
  flex-shrink:0;
}

/* images/event-visual.png :
   가이드북 목업 + 상품권 이미지 합성 에셋 */


/* ================= MIDDLE: 기능 소개 섹션 ================= */

.feature-section{
  position:relative;
  background-image:url("images/info-bg.jpg");
  background-size:cover;
  background-position:top center;
  padding:112px 0 124px;
}

.feature-heading{
  text-align:center;
  margin-bottom:68px;
}

.feature-heading h2{
  font-size:32px;
  font-weight:800;
  color:#002665;
  margin-bottom:24px;
}

.feature-heading p{
  font-size:22px;
  color:var(--text-dark);
  line-height:1.7;
}

.feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  margin-bottom:68px;
}

.feature-card{
  background:#fff;
  border-radius:22px;
  padding:30px;
  box-shadow:0 10px 30px rgba(80,60,160,0.08);
}

.feature-card-visual{
  position:relative;
  background:#eceafb;
  border-radius:15px;
  overflow:hidden;
  margin-bottom:26px;
}

.feature-card-visual img.screenshot{
  width:100%;
  display:block;
}

.feature-card-visual img.icon{
  position:absolute;
  right:20px;
  bottom:-24px;
  width:88px;
  height:88px;
  border-radius:50%;
}

.feature-card h3{
  font-size:24px;
  font-weight:800;
  margin-bottom:12px;
}

.feature-card p{
  font-size:20px;
  color:#272727;
  line-height:1.4;
  word-break:keep-all;
}

.feature-cta{
  text-align:center;
}

.feature-cta .btn-row{
  justify-content:center;
  margin-bottom:28px;
}

.feature-cta .cta-note{
  padding-top:20px;
  font-size:24px;
  color:var(--text-dark);
}


/* ================= FOOTER ================= */

.site-footer{
  position:relative;
  background-image:url("images/footer-bg.jpg");
  background-size:cover;
  background-position:center;
  color:#cfcfd6;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding:42px 0;
}

.footer-inner .footer-logo img{
  height:26px;
}

.footer-info{
  text-align:right;
  font-size:15px;
  line-height:1.8;
  color:#b8b8c2;
}


/* ================= MODAL / POPUP ================= */

.modal-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.55);
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:20px;
  overflow-y:auto;
}

.modal-overlay.active{
  display:flex;
}

.modal-box{
  background:#fff;
  width:100%;
  max-width:580px;
  border-radius:18px;
  padding:34px 30px 28px;
  position:relative;
  max-height:90vh;
  overflow-y:auto;
  margin:auto;
}

.modal-close{
  position:absolute;
  top:16px;
  right:18px;
  background:none;
  border:none;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  color:#999;
}

.modal-close:hover{
  color:#333;
}

.modal-title{
  font-size:25px;
  font-weight:800;
  margin-bottom:10px;
  padding-right:24px;
}

.modal-desc{
  font-size:16px;
  color:var(--text-gray);
  margin-bottom:28px;
}

.form-row{
  margin-bottom:18px;
}

.form-row label{
  display:block;
  font-size:15px;
  font-weight:600;
  margin-bottom:8px;
}

.form-row .req{
  color:#e0442f;
}

.form-row input{
  width:100%;
  min-height:50px;
  padding:13px 14px;
  font-size:16px;
  border:1px solid #ddd;
  border-radius:9px;
  outline:none;
}

.form-row input:focus{
  border-color:#6633ff;
}

.privacy-agree{
  margin:24px 0 26px;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
  padding:20px 0;
}

.privacy-agree-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}

.privacy-agree-label input{
  width:19px;
  height:19px;
  flex-shrink:0;
}

.privacy-toggle{
  background:none;
  border:none;
  font-size:14px;
  color:#888;
  margin-top:10px;
  margin-left:27px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:3px;
}

.privacy-toggle .chevron{
  display:inline-block;
  transition:transform .2s ease;
}

.privacy-toggle.open .chevron{
  transform:rotate(180deg);
}

.privacy-content{
  display:none;
  margin-top:12px;
  margin-left:27px;
  padding:18px;
  background:#f8f8fa;
  border-radius:8px;
  font-size:14px;
  color:#777;
  line-height:1.7;
  max-height:280px;
  overflow-y:auto;
}

.privacy-content p + p,
.privacy-content p + ol,
.privacy-content ol + p,
.privacy-content p + ul{
  margin-top:12px;
}

.privacy-content ol,
.privacy-content ul{
  padding-left:20px;
}

.privacy-content li + li{
  margin-top:7px;
}

.privacy-content strong{
  color:#333;
}

.privacy-content.open{
  display:block;
}

.marketing-consent{
  margin:0 0 26px;
  padding:18px;
  border:1px solid #e7e2fb;
  border-radius:10px;
  background:#faf9ff;
}

.marketing-consent legend{
  padding:0 6px;
  font-size:15px;
  font-weight:700;
  color:var(--text-dark);
}

.marketing-consent legend span{
  color:#777;
  font-weight:500;
}

.marketing-consent > p{
  margin:2px 0 14px;
  color:#666;
  font-size:13px;
  line-height:1.65;
}

.marketing-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
}

.marketing-options label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.marketing-options input{
  width:18px;
  height:18px;
  accent-color:var(--purple);
  flex:0 0 auto;
}

.btn-submit{
  width:100%;
}

.btn-submit:disabled{
  cursor:wait;
  opacity:.65;
}

.form-message{
  min-height:20px;
  margin:-8px 0 10px;
  font-size:14px;
  line-height:1.45;
}

.form-message.success{
  color:#16733f;
}

.form-message.error{
  color:#c62828;
}

/* ================= RESULT LAYER ================= */

.result-modal{
  background:rgba(17,14,35,.68);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.result-modal-box{
  max-width:470px;
  padding:48px 42px 40px;
  border:1px solid rgba(108,76,240,.14);
  box-shadow:0 28px 80px rgba(29,20,73,.28);
  text-align:center;
  overflow:visible;
}

.result-modal.active .result-modal-box{
  animation:resultModalIn .22s ease-out both;
}

.result-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:72px;
  height:72px;
  margin:0 auto 22px;
  border-radius:50%;
  background:linear-gradient(145deg,#7d62f7,#5535db);
  box-shadow:0 12px 28px rgba(108,76,240,.28);
  color:#fff;
  font-size:36px;
  font-weight:800;
  line-height:1;
}

.result-title{
  margin-bottom:12px;
  color:var(--text-dark);
  font-size:26px;
  font-weight:800;
  line-height:1.35;
}

.result-message{
  margin-bottom:28px;
  color:var(--text-gray);
  font-size:17px;
  line-height:1.7;
  white-space:pre-line;
}

.result-confirm{
  min-width:150px;
}

@keyframes resultModalIn{
  from{
    opacity:0;
    transform:translateY(12px) scale(.97);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* ================= MOBILE ================= */

@media (max-width:768px){
  html,
  body{
    width:100%;
    overflow-x:hidden;
  }

  body{
    font-size:16px;
  }

  .wrap{
    width:100%;
    padding-right:18px;
    padding-left:18px;
  }

  /* Header */
  .top-header .wrap{
    min-height:64px;
    padding-top:16px;
    padding-bottom:16px;
  }

  .top-header .brand-left{
    gap:10px;
  }

  .top-header .brand-left .ms-logo{
    height:20px;
  }

  .top-header .brand-left .github-logo{
    height:24px;
  }

  .top-header .brand-left .brand-divider{
    height:21px;
  }

  .top-header .brand-right img{
    height:19px;
  }

  /* Hero */
  .hero-event-section{
    background-color:#f8f8ff;
    background-size:auto 620px;
    background-position:15% 0;
    background-repeat:no-repeat;
  }

  .hero-section{
    padding:54px 0 64px;
    background:linear-gradient(90deg,rgba(248,248,255,.98) 0%,rgba(248,248,255,.94) 70%,rgba(248,248,255,.62) 100%);
  }

  .hero-inner{
    width:100%;
    max-width:none;
  }

  .hero-inner h1{
    margin-bottom:24px;
    font-size:clamp(29px,8.4vw,34px);
    line-height:1.28;
    letter-spacing:-.035em;
    word-break:keep-all;
  }

  .hero-inner .hero-sub-title{
    margin-bottom:14px;
    font-size:18px;
    line-height:1.55;
    word-break:keep-all;
  }

  .hero-inner .hero-desc{
    margin-bottom:30px;
    font-size:16px;
    line-height:1.65;
    word-break:keep-all;
  }

  .btn-row{
    flex-direction:column;
    gap:10px;
  }

  .btn{
    width:100%;
    min-height:54px;
    padding:14px 16px;
    font-size:16px;
    line-height:1.35;
    white-space:normal;
  }

  /* Event */
  .event-section{
    padding:46px 0 40px;
  }

  .event-inner{
    flex-direction:column;
    align-items:stretch;
    gap:24px;
  }

  .event-text-area{
    width:100%;
    max-width:none;
  }

  .event-date-badge{
    padding:7px 14px;
    margin-bottom:16px;
    font-size:14px;
  }

  .event-text-area h2{
    font-size:26px;
    line-height:1.35;
    letter-spacing:-.025em;
    word-break:keep-all;
  }

  .event-text-area h2 .accent{
    font-size:30px;
  }

  .event-text-area p{
    margin-top:14px;
    font-size:16px;
    line-height:1.65;
  }

  .event-visual{
    width:min(280px,78vw);
    margin:0 auto;
  }

  /* Feature */
  .feature-section{
    padding:60px 0 68px;
  }

  .feature-heading{
    margin-bottom:36px;
  }

  .feature-heading h2{
    margin-bottom:16px;
    font-size:27px;
    line-height:1.35;
    letter-spacing:-.03em;
    word-break:keep-all;
  }

  .feature-heading p{
    font-size:16px;
    line-height:1.7;
    word-break:keep-all;
  }

  .feature-heading p br{
    display:none;
  }

  .feature-grid{
    grid-template-columns:1fr;
    gap:18px;
    margin-bottom:40px;
  }

  .feature-card{
    padding:18px;
    border-radius:16px;
  }

  .feature-card-visual{
    margin-bottom:18px;
    border-radius:11px;
  }

  .feature-card h3{
    margin-bottom:9px;
    font-size:20px;
    line-height:1.4;
  }

  .feature-card p{
    font-size:16px;
    line-height:1.6;
  }

  .feature-cta .btn-row{
    margin-bottom:18px;
  }

  .feature-cta .cta-note{
    padding-top:4px;
    font-size:16px;
    line-height:1.65;
    word-break:keep-all;
  }

  /* Footer */
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    padding:30px 0 calc(30px + env(safe-area-inset-bottom));
  }

  .footer-inner .footer-logo img{
    height:22px;
  }

  .footer-info{
    text-align:left;
    font-size:13px;
    line-height:1.75;
    word-break:keep-all;
  }

  /* Form modal */
  .modal-overlay{
    align-items:center;
    padding:10px;
  }

  .modal-box{
    width:100%;
    max-width:none;
    max-height:calc(100dvh - 20px);
    padding:32px 20px 26px;
    border-radius:16px;
    overscroll-behavior:contain;
  }

  .modal-close{
    top:13px;
    right:14px;
    width:36px;
    height:36px;
    font-size:28px;
  }

  .modal-title{
    margin-bottom:8px;
    padding-right:34px;
    font-size:22px;
    line-height:1.4;
  }

  .modal-desc{
    margin-bottom:22px;
    font-size:15px;
    line-height:1.6;
  }

  .form-row{
    margin-bottom:15px;
  }

  .form-row label{
    margin-bottom:7px;
    font-size:14px;
  }

  .form-row input{
    min-height:48px;
    padding:12px 13px;
    font-size:16px;
  }

  .privacy-agree{
    margin:20px 0 22px;
    padding:16px 0;
  }

  .privacy-agree-label{
    align-items:flex-start;
    font-size:14px;
    line-height:1.5;
  }

  .privacy-agree-label input{
    margin-top:2px;
  }

  .privacy-toggle{
    margin-top:9px;
    margin-left:27px;
    font-size:13px;
  }

  .privacy-content{
    max-height:210px;
    margin-top:10px;
    margin-left:0;
    padding:14px;
    font-size:13px;
    line-height:1.65;
  }

  .marketing-consent{
    margin-bottom:22px;
    padding:15px 14px;
  }

  .marketing-consent legend{
    font-size:14px;
  }

  .marketing-consent > p{
    font-size:13px;
  }

  .marketing-options{
    display:grid;
    gap:10px;
  }

  .form-message{
    font-size:13px;
  }

  /* Result modal */
  .result-modal-box{
    max-width:420px;
    padding:38px 22px 28px;
  }

  .result-icon{
    width:62px;
    height:62px;
    margin-bottom:18px;
    font-size:30px;
  }

  .result-title{
    font-size:22px;
  }

  .result-message{
    margin-bottom:22px;
    font-size:15px;
  }

  .result-confirm{
    width:100%;
  }
}

@media (max-width:420px){
  .wrap{
    padding-right:14px;
    padding-left:14px;
  }

  .top-header .brand-left{
    gap:7px;
  }

  .top-header .brand-left .ms-logo{
    height:18px;
  }

  .top-header .brand-left .github-logo{
    height:22px;
  }

  .top-header .brand-left .brand-divider{
    height:19px;
  }

  .top-header .brand-right img{
    height:17px;
  }

  .hero-inner h1{
    font-size:29px;
  }

  .btn{
    font-size:15px;
  }

  .event-visual{
    width:220px;
  }
}
