/* IPAPAS unified design system (youth landing page tone)
   - Glassy header
   - Gradient accents
   - Modern typography + spacing
*/

:root{
  --brand:#6D8C24;
  --brand2:#AC7C2C;
  --ink:#0b1220;
  --muted:rgba(11,18,32,.66);
  --line:rgba(15,23,42,.12);
  --soft:rgba(15,23,42,.06);
  --bg:#f7fafc;
  --card:rgba(255,255,255,.78);
  --radius:18px;
  --max:1120px;
  --shadow: 0 10px 28px rgba(2,6,23,.08);
  --shadow2: 0 18px 50px rgba(2,6,23,.10);
}

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

body{
  font-family: Pretendard, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
               "Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1000px 500px at 15% 10%, rgba(109,140,36,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 5%, rgba(172,124,44,.16), transparent 58%),
    radial-gradient(900px 600px at 70% 95%, rgba(99,102,241,.12), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f6f7ff 100%);
  line-height:1.7;
}

/* Subtle grain */
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, rgba(2,6,23,.018) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(2,6,23,.012) 0 1px, transparent 1px 7px);
  opacity:.35;
  mix-blend-mode:multiply;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

/* Header */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(15,23,42,.10);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:46px;width:auto;display:block;filter: drop-shadow(0 10px 16px rgba(2,6,23,.10))}

.menu{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.menu a{
  padding:9px 12px;
  border-radius:999px;
  color:rgba(11,18,32,.70);
  border:1px solid transparent;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}
.menu a:hover{
  background:rgba(255,255,255,.72);
  border-color:rgba(15,23,42,.10);
  transform:translateY(-1px);
  color:rgba(11,18,32,.92);
}
.menu a.active{
  color:rgba(11,18,32,.96);
  background:
    radial-gradient(800px 200px at 20% 0%, rgba(109,140,36,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.60));
  border:1px solid rgba(109,140,36,.28);
}

/* Hero */
.hero{padding:92px 0 66px}
.hero h1{
  margin:0 0 12px;
  font-size:48px;
  line-height:1.15;
  letter-spacing:-.04em;
  background: linear-gradient(90deg, #0b1220 0%, #0b1220 40%, rgba(109,140,36,.95) 75%, rgba(172,124,44,.95) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p{margin:0;color:var(--muted);font-size:16.5px;max-width:880px}
.hero .actions{margin-top:18px}

/* Hero split (product visuals blended into background) */
.hero.hero-split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  align-items:center;
  gap:26px;
}
.hero-left{min-width:0}
.hero-media{
  position:relative;
  height:360px;
  border-radius:24px;
  overflow:visible;
  pointer-events:none;
}
.hero-media::before{
  content:"";
  position:absolute;
  inset:-60px -40px -60px -60px;
  background:
    radial-gradient(520px 240px at 20% 20%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(620px 280px at 90% 40%, rgba(109,140,36,.20), transparent 62%),
    radial-gradient(520px 300px at 70% 90%, rgba(172,124,44,.16), transparent 65%);
  filter: blur(2px);
}
.hero-shot{
  position:absolute;
  right:-34px;
  top:10px;
  width:min(560px, 100%);
  height:auto;
  border-radius:24px;
  box-shadow: 0 26px 70px rgba(2,6,23,.18);
  transform: rotate(6deg);
  opacity:.92;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}
.hero-shot.b{
  top:140px;
  right:-8px;
  width:min(520px, 94%);
  transform: rotate(-3deg);
  opacity:.68;
}
.hero-shot.c{
  top:250px;
  right:12px;
  width:min(420px, 78%);
  transform: rotate(2deg);
  opacity:.55;
}

.hero-media.api .hero-shot{
  -webkit-mask-image:none;
  mask-image:none;
}

/* API hero: single clean visual (no overlap/collage) */
.hero-media.api.single{height:420px}
.hero-media.api.single .hero-shot{
  top:0;
  right:0;
  bottom:0;
  margin:auto;
  height:100%;
  width:auto;
  max-width:100%;
  transform:none;
  opacity:1;
}

/* API hero: phone style (clean, product-like) */
.hero-media.api.single.phone{height:460px}
.hero-media.api.single.phone::before{
  inset:-40px -20px -40px -40px;
  background:
    radial-gradient(520px 240px at 18% 20%, rgba(59,130,246,.18), transparent 62%),
    radial-gradient(680px 300px at 92% 40%, rgba(109,140,36,.14), transparent 62%),
    radial-gradient(520px 300px at 70% 92%, rgba(172,124,44,.12), transparent 65%);
}
.phone-frame{
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  margin:auto;
  height:100%;
  width:auto;
  aspect-ratio: 9 / 19.5;
  max-width:100%;
  padding:10px;
  border-radius:42px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.72);
  box-shadow: 0 26px 70px rgba(2,6,23,.18);
  backdrop-filter: blur(10px);
}

.phone-stack{
  position:relative;
  height:100%;
  border-radius:32px;
  overflow:hidden;
  background:#fff;
}

.phone-screen{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  opacity:0;
  transition: opacity .32s ease;
}
.phone-screen.is-active{opacity:1}

.phone-tabs{
  position:absolute;
  right:0;
  left:0;
  bottom:-6px;
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  padding:10px 8px 0;
}
.phone-tabs .tab{
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.72);
  color:rgba(11,18,32,.74);
  font-weight:700;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.phone-tabs .tab:hover{transform:translateY(-1px)}
.phone-tabs .tab.is-active{
  border-color: rgba(59,130,246,.45);
  background: rgba(59,130,246,.10);
  color: rgba(11,18,32,.92);
}

/* API preview section */
.section-head{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.section-head h2{margin:0;font-size:22px;letter-spacing:-.02em}
.muted{color:var(--muted)}

.shot-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.shot-card{
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.shot-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px 10px;
}
.shot-sub{font-size:13px;color:rgba(11,18,32,.62);font-weight:600;white-space:nowrap}
.shot-frame{
  margin:0 14px 14px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(15,23,42,.10);
}
.shot-frame img{display:block;width:100%;height:auto;object-fit:contain}

/* API hero accent card */
.hero-kicker{margin-top:10px;color:rgba(11,18,32,.72);font-weight:600}


/* About hero (photo + overlay + glass card) */
.about-hero{
  position:relative;
  padding:84px 0 66px;
  border-radius:24px;
  margin:28px 20px 0;
  overflow:hidden;
  background: url("bg_about_city.webp") center/cover no-repeat;
}
.about-hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(6,10,18,.82), rgba(6,10,18,.24));
}
.about-hero .container{position:relative; z-index:1}

.hero-card{
  max-width:920px;
  padding:26px;
  border-radius:22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(2,6,23,.35);
}

.about-hero h1{
  margin:0 0 12px;
  font-size:46px;
  line-height:1.15;
  letter-spacing:-.04em;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.90) 45%, rgba(109,140,36,.98) 78%, rgba(172,124,44,.98) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.about-hero p{color: rgba(255,255,255,.78); font-size:16px; max-width:820px}
.about-hero .badge{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.80);
}
.about-hero .badge strong{color: rgba(255,255,255,.95)}


/* Sections & grids */
.section{padding:56px 0 92px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

/* Cards */
.card{
  border:1px solid rgba(15,23,42,.12);
  border-radius:var(--radius);
  background:var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.card:hover{box-shadow:var(--shadow2)}

/* Typography */
h2{margin:0 0 12px;font-size:22px;letter-spacing:-.02em}
h3{margin:0 0 6px;font-size:16px;letter-spacing:-.01em}
p{margin:0;color:var(--muted)}
.small{font-size:13px;color:var(--muted)}

/* Badges */
.badges,.badge-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.badge{
  font-size:13px;
  color:rgba(11,18,32,.72);
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(15,23,42,.10);
}
.badge strong{color:rgba(11,18,32,.92);font-weight:700}

/* Buttons */
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.78);
  color:rgba(11,18,32,.92);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(2,6,23,.12);border-color:rgba(15,23,42,.22)}

.btn.primary{
  border-color:rgba(109,140,36,.35);
  color:#0b1220;
  background:
    radial-gradient(600px 220px at 30% 0%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(90deg, rgba(109,140,36,.95), rgba(172,124,44,.92));
}
.btn.primary:hover{box-shadow:0 18px 34px rgba(109,140,36,.22)}

/* Store buttons (keep downloads clean & modern, less loud than primary CTA) */
.btn.store{
  border-color:rgba(15,23,42,.16);
  background:rgba(255,255,255,.82);
}

.btn.store.android{
  border-color:rgba(52,168,83,.34);
  background:
    radial-gradient(650px 220px at 30% 0%, rgba(255,255,255,.60), transparent 60%),
    linear-gradient(90deg, rgba(52,168,83,.22), rgba(26,115,232,.16));
}
.btn.store.android:hover{box-shadow:0 18px 34px rgba(26,115,232,.14)}

.btn.store.ios{
  border-color:rgba(17,24,39,.22);
  background:
    radial-gradient(650px 220px at 30% 0%, rgba(255,255,255,.60), transparent 60%),
    linear-gradient(90deg, rgba(17,24,39,.10), rgba(17,24,39,.06));
}
.btn.store.ios:hover{box-shadow:0 18px 34px rgba(2,6,23,.14)}

.btn.accent{
  border-color:rgba(99,102,241,.28);
  background:rgba(99,102,241,.10);
}

/* Service block */
.service-head{display:flex;gap:14px;align-items:center}
.service-head img{width:56px;height:56px;border-radius:14px;flex-shrink:0;display:block;box-shadow:0 10px 18px rgba(2,6,23,.12)}
.service-title{margin:0;font-size:17px;font-weight:800;letter-spacing:-.01em}
.service-desc{margin-top:4px;font-size:14px;color:var(--muted)}
.meta{margin-top:10px;font-size:13px;color:rgba(11,18,32,.58)}

/* Note / callout */
.note{
  background:
    radial-gradient(900px 250px at 20% 0%, rgba(109,140,36,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
  border:1px solid rgba(109,140,36,.22);
  border-radius:var(--radius);
  padding:16px;
  color:rgba(11,18,32,.78);
  font-size:14px;
  font-weight:600;
  box-shadow: var(--shadow);
}

hr.sep{border:0;border-top:1px solid rgba(15,23,42,.12);margin:14px 0}

/* Footer */
.footer{border-top:1px solid rgba(15,23,42,.10);padding:26px 0 40px;color:rgba(11,18,32,.62);font-size:13px}
.footer strong{color:rgba(11,18,32,.92)}

@media (max-width:900px){
  .grid3,.grid2{grid-template-columns:1fr}
  .hero{padding:76px 0 56px}
  .hero h1{font-size:36px}
  .about-hero{padding:64px 0 54px;margin:18px 12px 0;border-radius:20px}
  .about-hero h1{font-size:34px}
  .brand img{height:42px}

  .hero.hero-split{grid-template-columns:1fr}
  .hero-media{height:260px;margin-top:10px}
  .hero-shot{right:-10px;top:0;transform:rotate(4deg)}
  .hero-shot.b{top:120px;right:0;transform:rotate(-2deg)}
  .hero-shot.c{display:none}

  /* API hero single image should stay clean on mobile */
  .hero-media.api.single{height:340px}
  .hero-media.api.single .hero-shot{right:0;top:0;transform:none;height:100%;width:auto}

  /* API hero phone */
  .hero-media.api.single.phone{height:360px}
  .phone-frame{padding:8px;border-radius:36px}
  .phone-stack{border-radius:28px}

  /* API preview */
  .shot-grid{grid-template-columns:1fr}
  .shot-frame img{height:auto}

}
