/* /var/www/html/site.css */
:root{
  --bg: #0b1020;
  --bg2:#0a1226;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --subtle: rgba(255,255,255,.55);

  --accent: #7c5cff;
  --accent2:#2dd4bf;
  --accent3:#60a5fa;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --max: 1120px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f7f8fb;
    --bg2:#f2f5fb;
    --surface: rgba(15,23,42,.05);
    --surface2: rgba(15,23,42,.07);
    --border: rgba(15,23,42,.10);
    --text: rgba(15,23,42,.92);
    --muted: rgba(15,23,42,.65);
    --subtle: rgba(15,23,42,.54);

    --shadow: 0 18px 60px rgba(15,23,42,.10);
    --shadow2: 0 10px 30px rgba(15,23,42,.08);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple SD Gothic Neo","Noto Sans KR", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  letter-spacing: -0.01em;
}

a{color:inherit}

/* ===== Unified custom bullet ===== */
ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul li{
  position: relative;
  padding-left: 18px;
}

ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    135deg,
    rgba(124,92,255,.9),
    rgba(45,212,191,.8)
  );
}
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar{
  position: sticky;
  top: env(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,18,38,.78), rgba(10,18,38,.48));
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light){
  .topbar{
    background: linear-gradient(180deg, rgba(247,248,251,.85), rgba(247,248,251,.55));
  }
}
.topbar-inner{
  min-height: 68px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}
.logo{
  width: 34px; height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(135deg, rgba(124,92,255,.95), rgba(45,212,191,.85));
  box-shadow: 0 12px 30px rgba(124,92,255,.18);
  border: 1px solid rgba(255,255,255,.20);
}
.logo-img{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
}
.topbar .logo-img{
  box-shadow: none;
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.brand-title strong{font-size: 14px; letter-spacing:-0.02em}
.brand-title span{font-size: 12px; color: var(--muted)}
.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:nowrap;
  overflow: hidden;
  justify-content:flex-end;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.pill:hover{background: rgba(255,255,255,.07); color: var(--text)}

@media (max-width: 640px){
  .nav a.pill:not(:last-child){
    display: none;
  }

  .brand-title strong{
    font-size: 13px;
  }

  .brand-title span{
    display: none;
  }
}

@media (max-width: 640px){
  .pill{
    max-width: 96px;
  }
}

.hero{
  padding: 64px 0 30px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; }
}
.hero-card{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: 34px;
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(480px 260px at 20% 10%, rgba(124,92,255,.28), transparent 60%),
    radial-gradient(480px 260px at 90% 0%, rgba(45,212,191,.18), transparent 60%);
  pointer-events:none;
}
.hero-card > *{position:relative}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(45,212,191,.18);
}
.h1{
  margin: 16px 0 10px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
@media (max-width: 520px){
  .h1{font-size: 36px;}
}
.lead{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 62ch;
}
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration:none;
  font-weight: 650;
  font-size: 14px;
}
.btn.primary{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.92), rgba(96,165,250,.88));
  color: rgba(255,255,255,.96);
  box-shadow: 0 16px 40px rgba(124,92,255,.20);
}
.btn.primary:hover{filter: brightness(1.03)}
.btn.ghost{
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn.ghost:hover{background: rgba(255,255,255,.07)}
.meta{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  color: var(--subtle);
  font-size: 13px;
}
.meta b{color: var(--text)}
.hero-side{
  display:grid;
  gap: 14px;
}
.side-card{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding: 18px;
}
.side-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.side-title h3{
  margin:0;
  font-size: 15px;
  letter-spacing:-0.02em;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}
.list{
  margin: 12px 0 0;
  padding: 0;
  list-style:none;
  display:grid;
  gap: 10px;
}
.list li{
  padding-left: 0;
}
.list li::before{
  content: none;
}
.li{
  display:flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.bullet{
  width: 9px; height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(45,212,191,.8));
  margin-top: 6px;
  flex: 0 0 auto;
}

.section{
  padding: 28px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.h2{
  margin:0;
  font-size: 22px;
  letter-spacing:-0.03em;
}
.sub{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){ .cards{grid-template-columns: repeat(2, minmax(0,1fr));} }
@media (max-width: 640px){ .cards{grid-template-columns: 1fr;} }

.card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 16px;
  min-height: 126px;
}
.card h4{
  margin: 2px 0 8px;
  font-size: 15px;
  letter-spacing:-0.02em;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#features{
  position: relative;
}

#features::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 700px at 25% 100%, rgba(124,92,255,.16), transparent 72%),
    radial-gradient(1000px 700px at 78% 100%, rgba(45,212,191,.10), transparent 74%);
  z-index: 0;
}

#features > .container{
  position: relative;
  z-index: 1;
}

.feature-wrap{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(124,92,255,.10), transparent 68%),
    radial-gradient(700px 220px at 85% 0%, rgba(45,212,191,.08), transparent 72%),
    rgba(255,255,255,.04);
  overflow:hidden;
}
details{
  border-top: 1px solid var(--border);
}
details:first-child{border-top:none}
summary{
  list-style:none;
  cursor:pointer;
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
summary::-webkit-details-marker{display:none}
.sum-left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.icon{
  width: 32px; height: 32px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.20), transparent 65%),
    rgba(255,255,255,.08);
  box-shadow: 0 6px 14px rgba(0,0,0,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 17px;
  line-height: 1;
}
.icon-app-img{
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}
.sum-title{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.sum-title strong{font-size: 14px}
.sum-title span{font-size: 12px; color: var(--muted)}
.chev{
  width: 32px; height: 32px;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  transition: transform .18s ease;
  display: grid;
  place-items: center;
  font-size: 0;
}

.chev::before{
  content: "⌄";
  font-size: 15px;
  line-height: 1;
  transform: translateY(-4px);
}
details[open] .chev{transform: rotate(180deg);}

.detail-body{
  padding: 0 18px 18px;
}
.ul{
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.ul li{
  margin: 6px 0;
}

.policy{
  margin-top: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.policy .left{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.policy .left strong{font-size: 14px}
.policy .left span{font-size: 13px; color: var(--muted)}
.policy .right{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.small{
  font-size: 12px;
  color: var(--subtle);
  line-height:1.6;
}
.footer{
  padding: 26px 0 44px;
  color: var(--subtle);
  text-align:center;
  font-size: 12px;
}
.hr{
  height: 1px;
  background: var(--border);
  margin: 22px 0 0;
}

/* ===== Policy / Document pages ===== */

.box{
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
}

.link{
  color: var(--accent3);
  font-weight: 600;
  text-decoration: none;
}
.link:hover{
  text-decoration: underline;
}

body.doc-page .lead{
  margin: 14px 0 22px;
}

/* ===== Doc pages: top gradient decoration ===== */
body.doc-page .hero-card::before{
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -4px;
  height: 140px;
  pointer-events: none;
  background:
    radial-gradient(
      600px 180px at 20% 0%,
      rgba(124,92,255,.18),
      transparent 65%
    ),
    radial-gradient(
      600px 180px at 85% 0%,
      rgba(45,212,191,.14),
      transparent 70%
    );
}

/* ===== Doc pages: typography tuning ===== */
body.doc-page .h1{
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

body.doc-page .lead{
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtle);
  margin-bottom: 28px;
}

body.doc-page .h2{
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 10px;
}

body.doc-page p,
body.doc-page li{
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

body.doc-page ul li{
  margin: 6px 0;
  line-height: 1.7;
}

body.doc-page .hero-card{
  padding: 28px 30px;
}

/* ===== Doc pages: bottom gradient decoration ===== */
body.doc-page .hero-card{
  position: relative;
  overflow: hidden;
}

body.doc-page .hero-card::after{
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 140px;
  pointer-events: none;
  background:
    radial-gradient(
      600px 180px at 20% 100%,
      rgba(124,92,255,.18),
      transparent 65%
    ),
    radial-gradient(
      600px 180px at 85% 100%,
      rgba(45,212,191,.14),
      transparent 70%
    );
}

body.doc-page .box .sum-left{
  margin-bottom: 10px;
}

/* ===== Language selector ===== */
.lang-wrapper{
  position: relative;
  margin-left: 0;
}

.lang-trigger{
  display:flex;
  align-items:center;
  gap: 4px;
  line-height: 1;
  padding: 8px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.lang-trigger:hover{
  background: rgba(255,255,255,.07);
  color: var(--text);
}

.lang-chevron{
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  overflow: hidden;
  flex: 0 0 15px;
  font-size: 0;
  line-height: 1;
  opacity: .85;
  transition: transform .18s ease;
}

.lang-chevron::before{
  content: "⌄";
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

.lang-wrapper.open .lang-chevron{
  transform: rotate(180deg);
}

.lang-menu{
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 120px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.95);
  box-shadow: var(--shadow2);
  overflow: hidden;
  display: none;
  z-index: 50;
}

@media (prefers-color-scheme: light){
  .lang-menu{
    background: #ffffff;
  }
}

.lang-item{
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}

.lang-item:hover{
  background: rgba(124,92,255,.10);
}
