/* ============================================================
 *  GAAT 메인 홈페이지 — (사)대한민국 청소년 로봇연맹
 * ============================================================ */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-deep: #134e4a;
  --mint: #ccfbf1;
  --mint-soft: #f0fdfa;
  --amber: #f59e0b;
  --text: #1f2937;
  --text-soft: #6b7280;
  --border: #e2e8e6;
  --bg: #ffffff;
  --bg-alt: #f6faf9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(19, 78, 74, .07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Pretendard", "맑은 고딕", "Malgun Gothic", -apple-system, sans-serif;
  color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block; border-radius: 10px; padding: 10px 20px;
  font-size: 14.5px; font-weight: 700; border: 1.5px solid transparent;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--teal); color: var(--teal-deep); background: #fff; }
.btn-outline:hover { background: var(--mint-soft); }
.btn-ghost { color: var(--teal-deep); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-white { background: #fff; color: var(--teal-deep); }
.btn-white:hover { background: var(--mint); }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: 6px; flex: 1; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--text-soft); }
.nav a:hover { color: var(--teal-deep); }
.header-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--teal-deep); }

/* ---------- 히어로 (브랜드 딥그린 + 네트워크 그래픽) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0b2b28 0%, #114b45 45%, #0e3b4a 100%);
  padding: 84px 0 0;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-net { position: absolute; right: -4%; top: 0; width: 62%; height: 100%; opacity: .5; }
.net-lines path { fill: none; stroke: #5eead4; stroke-width: 1; opacity: .28; }
.net-dots circle { fill: #7dd3fc; opacity: .45; animation: netPulse 4s ease-in-out infinite; }
.net-dots circle:nth-child(3n) { fill: #5eead4; animation-delay: 1.3s; }
.net-dots circle:nth-child(4n) { fill: #fbbf24; animation-delay: 2.1s; }
@keyframes netPulse { 0%,100% { opacity: .25; } 50% { opacity: .8; } }

.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow.g1 { width: 420px; height: 420px; background: rgba(16,185,129,.30); top: -120px; left: -80px; }
.glow.g2 { width: 380px; height: 380px; background: rgba(56,189,248,.18); bottom: -140px; right: 22%; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; padding-bottom: 76px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #d7f5f0;
  padding: 7px 16px; border-radius: 20px; font-size: 13.5px; font-weight: 700; margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,.25); }
.hero h1 { font-size: 52px; line-height: 1.28; letter-spacing: -1.2px; font-weight: 900; color: #fff; margin-bottom: 20px; }
.hero h1 .hl { color: #5eead4; }
.hero h1 .hl2 { color: var(--amber); }
.hero-sub { font-size: 17px; color: #b9d6d2; margin-bottom: 28px; }
.hero-sub b { color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 등급 pill */
.grade-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.gp {
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(94,234,212,.5); border-radius: 30px;
  padding: 10px 22px; display: flex; align-items: baseline; gap: 8px; backdrop-filter: blur(4px);
}
.gp b { color: #5eead4; font-size: 16px; }
.gp span { font-size: 14px; color: #e6f5f3; font-weight: 600; }
.gp.alt { border-color: rgba(245,158,11,.6); }
.gp.alt b { color: var(--amber); }

/* 히어로 카드 — GAAT는 */
.hero-card {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 20px; padding: 28px 28px 24px;
  backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* 검정영역 퀵 스트립 */
.hero-strip { position: relative; border-top: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.16); }
.strip-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.strip-inner span { font-size: 13.5px; color: #bfdedb; padding: 5px 0; }
.strip-inner span:not(.strip-label)::before { content: "•"; color: #5eead4; margin-right: 12px; opacity: .6; }
.strip-label { font-size: 12px !important; font-weight: 800; letter-spacing: 2px; color: #5eead4 !important; margin-right: 4px; }
.strip-inner .strip-label::before { content: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-card, .net-dots circle { animation: none; }
}
.hc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 17px; line-height: 1.45; }
.hc-head b { color: var(--amber); font-size: 18px; }
.hc-seal {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(140deg, #fde68a, #d97706); color: #4a2f06;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}
.hc-list { list-style: none; }
.hc-list li { padding: 10px 0 10px 26px; border-bottom: 1px dashed rgba(255,255,255,.16); position: relative; }
.hc-list li:last-child { border-bottom: none; }
.hc-list li::before { content: "✓"; position: absolute; left: 0; color: #5eead4; font-weight: 800; }
.hc-list b { display: block; font-size: 15px; color: #fff; }
.hc-list span { font-size: 13px; color: #a7d8d2; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-tag { font-size: 12px; font-weight: 800; letter-spacing: 2.5px; color: var(--teal); }
.sec-head h2 { font-size: 32px; color: var(--teal-deep); margin: 10px 0 14px; letter-spacing: -.4px; }
.sec-lead { font-size: 16px; color: var(--text-soft); }

/* ---------- 어두운 섹션 (예린이 스토리) ---------- */
.section-dark { background: linear-gradient(160deg, #0f2c2a 0%, #12403c 55%, #0d3a45 100%); color: #dbe9e7; }
.sec-head.light h2 { color: #fff; }
.sec-head.light .sec-tag { color: #5eead4; }
.sec-head.light .sec-lead { color: #a7c4c0; }

.worry-row {
  display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 32px; margin-bottom: 44px;
}
.worry-label {
  display: block; font-size: 11.5px; letter-spacing: .14em; color: #5eead4;
  font-weight: 700; margin-bottom: 14px;
}
.worry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.worry-tags span {
  background: rgba(94,234,212,.1); color: #a7ded6;
  padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
}
.worry-tags span::before { content: "#"; opacity: .5; margin-right: 2px; }

.worry-list { list-style: none; border-left: 1px solid rgba(255,255,255,.1); padding-left: 34px; }
.worry-list li {
  padding: 10px 0 10px 26px; border-bottom: 1px dashed rgba(255,255,255,.12);
  font-size: 15.5px; color: #e2f0ee; position: relative;
}
.worry-list li:first-child { padding-top: 0; }
.worry-list li:first-child::before { top: 0; }
.worry-list li:last-child { border-bottom: none; padding-bottom: 0; }
.worry-list li::before { content: "?"; position: absolute; left: 2px; top: 10px; color: var(--amber); font-weight: 900; }

.solve-band {
  background: linear-gradient(90deg, #f59e0b, #fb923c); color: #fff;
  text-align: center; font-size: 21px; font-weight: 800; letter-spacing: 1px;
  padding: 14px 20px; border-radius: 12px; margin-bottom: 26px;
}
.solve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solve { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px 20px; }
.solve h4 { color: #fff; font-size: 16.5px; margin-bottom: 10px; }
.solve-quote { color: #5eead4; font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.solve p { font-size: 13.8px; color: #c8ddda; }
.solve b { color: var(--amber); }
.story-foot { text-align: center; margin-top: 34px; font-size: 19px; font-weight: 700; color: #fff; }
.story-foot b { color: #5eead4; }

/* ---------- 검정내용 표 ---------- */
.table-scroll { overflow-x: auto; }
.content-table { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff; }
.content-table th, .content-table td { border: 1px solid var(--border); padding: 14px 16px; text-align: left; vertical-align: top; }
.content-table thead th { background: var(--teal-deep); color: #fff; font-size: 14.5px; font-weight: 700; text-align: center; }
.content-table .c-no { text-align: center; width: 56px; font-weight: 800; color: var(--teal); }
.content-table tbody b { display: block; font-size: 16px; color: var(--teal-deep); margin-bottom: 3px; }
.content-table tbody span { font-size: 13.5px; color: var(--teal); }
.content-table tbody td:last-child { font-size: 14px; color: #4b5563; line-height: 1.9; }


/* ---------- 명칭 풀이 (GAAT 아크로님) ---------- */
.acronym {
  background: linear-gradient(180deg, var(--mint-soft), #fff);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px 26px; margin-bottom: 26px; text-align: center;
}
.acr-head { margin-bottom: 22px; }
.acr-head b { display: block; font-size: 30px; letter-spacing: .06em; color: var(--teal-deep); line-height: 1.2; }
.acr-head span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); font-weight: 700; }
.acr-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acr {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 10px 16px;
}
.acr i {
  display: block; font-style: normal; font-size: 28px; font-weight: 800;
  color: var(--teal); line-height: 1; margin-bottom: 10px;
}
.acr b { display: block; font-size: 15px; color: var(--teal-deep); margin-bottom: 2px; }
.acr span { font-size: 13px; color: var(--text-soft); }
.acr-foot { margin-top: 20px; font-size: 14.5px; color: #4b5563; }
.acr-foot b { color: var(--teal-deep); }

/* ---------- 카드 3열 ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.card-ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 17.5px; color: var(--teal-deep); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: #4b5563; }

/* ---------- 등급 ---------- */
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.level-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.level-chip { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; font-size: 15px; padding: 5px 18px; border-radius: 20px; }
.level-chip.alt { background: var(--amber); }
.level-card h3 { font-size: 22px; color: var(--teal-deep); margin: 14px 0 16px; }
.level-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.level-table th, .level-table td { padding: 10px 0; font-size: 14.5px; border-bottom: 1px solid var(--border); text-align: left; }
.level-table th { color: var(--text-soft); font-weight: 600; width: 38%; }
.level-desc { font-size: 14px; color: #4b5563; }

/* ---------- 평가 영역 ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.area-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: var(--mint);
  color: var(--teal-deep); font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.area h4 { font-size: 16px; color: var(--teal-deep); margin-bottom: 7px; }
.area p { font-size: 13.8px; color: var(--text-soft); }

/* ---------- 단계 ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 34px; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.steps h4 { font-size: 16px; color: var(--teal-deep); margin-bottom: 7px; }
.steps p { font-size: 13.5px; color: var(--text-soft); }

.notice-box { background: #fff7ed; border: 1.5px solid #fed7aa; border-radius: var(--radius); padding: 24px 26px; }
.notice-box h4 { color: #9a3412; font-size: 16px; margin-bottom: 10px; }
.notice-box ul { margin-left: 18px; }
.notice-box li { font-size: 14.5px; color: #7c2d12; margin-bottom: 5px; }

.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---------- 자격증 ---------- */
.cert-row { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.cert-info h3 { font-size: 22px; color: var(--teal-deep); margin-bottom: 18px; }
.tick-list { list-style: none; }
.tick-list li { font-size: 15px; color: #4b5563; padding: 8px 0 8px 28px; position: relative; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.muted-note { margin-top: 14px; font-size: 13.5px; color: var(--text-soft); }

.cert-mini {
  background: #fff; border: 2px solid var(--teal-deep); border-radius: 6px;
  padding: 26px 22px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.cert-mini::after { content: ""; position: absolute; inset: 7px; border: 1px solid #b08d3f; pointer-events: none; }
.cert-mini img { height: 30px; width: auto; margin: 0 auto 8px; }
.cm-no { font-size: 11px; color: var(--text-soft); }
.cm-title { font-size: 24px; font-weight: 900; letter-spacing: 9px; color: var(--teal-deep); margin: 14px 0 4px; }
.cm-name { font-size: 22px; font-weight: 900; letter-spacing: 4px; margin: 16px 0 4px; }
.cm-meta { font-size: 13.5px; color: #4b5563; margin-bottom: 20px; }
.cm-org { font-size: 14px; font-weight: 900; letter-spacing: 3px; color: var(--teal-deep); }
.cert-cap { text-align: center; font-size: 12.5px; color: var(--text-soft); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq-list summary { padding: 17px 22px; font-size: 15.5px; font-weight: 700; color: var(--teal-deep); cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; color: var(--teal); font-weight: 800; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 22px 18px; font-size: 14.5px; color: #4b5563; }

/* ---------- 하단 CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; padding: 66px 0; text-align: center; }
.cta-tag { display:inline-block; background:rgba(255,255,255,.16); padding:7px 18px; border-radius:20px; font-size:14px; font-weight:700; margin-bottom:16px; }
.cta-band h2 { font-size: 30px; margin-bottom: 22px; line-height: 1.4; }
.cta-band p { font-size: 16px; opacity: .9; margin-bottom: 26px; }

/* ---------- 푸터 ---------- */
.site-footer { background: #0f2c2a; color: #b9cbc8; padding: 56px 0 0; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }

.foot-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }

.foot-col h5 { color: #fff; font-size: 13px; letter-spacing: .04em; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13.5px; padding: 5px 0; color: #b9cbc8; transition: color .15s; }
.foot-col a:hover { color: #fff; }

.foot-contact .fc-row { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.foot-contact .fc-row span { flex: 0 0 54px; font-size: 11.5px; color: #6f8b88; white-space: nowrap; }
.foot-contact .fc-row a { padding: 0; }

.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px; font-size: 12.5px; color: #7e9c99; }
.foot-bottom a { color: #7e9c99; }
.foot-bottom a:hover { color: #fff; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero-inner, .cert-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; letter-spacing: -.6px; }
  .hero { padding-top: 56px; }
  .hero-inner { padding-bottom: 52px; }
  .hero-net { width: 100%; opacity: .28; right: -20%; }
  .glow.g2 { right: -10%; }
  .strip-inner { gap: 6px; }
  .strip-inner span:not(.strip-label)::before { margin-right: 8px; }
  .cards-3, .levels, .areas { grid-template-columns: 1fr; }
  .solve-grid { grid-template-columns: 1fr; }
  .worry-row { grid-template-columns: 1fr; gap: 22px; padding: 24px 22px; }
  .worry-list { border-left: none; border-top: 1px solid rgba(255,255,255,.1); padding-left: 0; padding-top: 18px; }
  .acr-items { grid-template-columns: 1fr 1fr; }
  .acr-head b { font-size: 26px; }
  .solve-band { font-size: 17px; }
  .cta-band h2 { font-size: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
  .section { padding: 60px 0; }
  .sec-head h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .foot-contact { grid-column: 1 / -1; }
  .hero-facts { gap: 22px; }
}
