/* ============================================================
   Happy2T — Brand Site Styles
   Palette: Blue #1E5FCC · Orange #F47A1F · Navy #0F1B33
   ============================================================ */

:root {
  --blue: #1e5fcc;
  --blue-600: #2a6bd6;
  --orange: #f47a1f;
  --orange-600: #ff8a2a;
  --navy: #0f1b33;
  --navy-700: #16223d;
  --ink: #1a2740;
  --muted: #5a6478;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef2fb;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--blue-600) 42%, #7a5bb0 60%, var(--orange) 88%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(15, 27, 51, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 27, 51, 0.1);
  --shadow-lg: 0 30px 80px rgba(15, 27, 51, 0.16);
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(244, 122, 31, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(244, 122, 31, 0.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost--light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost--light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  color: var(--ink); transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--blue); background: var(--bg-soft-2); }
.nav .nav-cta { background: var(--navy); color: #fff; }
.nav .nav-cta:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 96px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #f3f7ff 0%, #ffffff 55%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; }
.orb-blue { width: 460px; height: 460px; background: #2a6bd6; top: -120px; left: -120px; }
.orb-orange { width: 420px; height: 420px; background: #f47a1f; top: 40px; right: -130px; opacity: 0.28; }
.grid-overlay { position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.5;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 80%); }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.hero-logo { display: flex; justify-content: center; margin-bottom: 26px; }
.hero-mark { width: 150px; height: auto; }
.hero-eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 14px; }
.hero-title { font-size: clamp(2.05rem, 5.2vw, 3.6rem); line-height: 1.18; font-weight: 800;
  letter-spacing: -0.03em; color: var(--navy); }
.hero-tagline { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 700;
  letter-spacing: 0.02em; color: var(--blue); }
.hero-desc { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.hero-stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 26px; min-width: 158px; box-shadow: var(--shadow-sm); }
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 0.9rem; color: var(--muted); }

/* hero logo draw animation */
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2s var(--ease) forwards 0.2s; }
.draw.stem { stroke-dasharray: 70; stroke-dashoffset: 70; animation-delay: 1.1s; animation-duration: 0.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em;
  color: var(--orange); margin-bottom: 14px; }
.kicker--light { color: #ffd9b8; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy); line-height: 1.25; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }

/* ===== About / Brand ===== */
.about { background: var(--bg-soft); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.brand-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: var(--blue);
  background: var(--bg-soft-2); }
.brand-icon--t { color: var(--orange); background: #fff1e4; }
.brand-icon--heart { color: #e2477e; background: #fdeaf1; }
.brand-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.brand-card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Services ===== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d4def2; }
.service-card--feature { grid-column: span 2; background: linear-gradient(120deg, #0f1b33 0%, #1a2c52 100%);
  border-color: transparent; color: #eaf0fb; }
.service-card--feature h3, .service-card--feature .service-num { color: #fff; }
.service-card--feature .service-desc { color: #c4d0e8; }
.service-card--feature .service-points li { color: #d9e2f4; }
.service-card--feature .service-points li::before { background: var(--orange); }
.service-card--feature strong { color: #ffd9b8; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.service-num { font-size: 1.05rem; font-weight: 800; color: var(--blue); letter-spacing: 0.04em; }
.badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; padding: 5px 11px;
  border-radius: 999px; background: var(--bg-soft-2); color: var(--blue); }
.badge-orange { background: rgba(244, 122, 31, 0.16); color: #ffd9b8; }
.service-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 12px;
  letter-spacing: -0.01em; }
.service-desc { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.service-points { display: grid; gap: 9px; }
.service-points li { position: relative; padding-left: 24px; font-size: 0.97rem; color: #44506a; }
.service-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue); }
.service-card--feature .service-points { grid-template-columns: repeat(2, 1fr); }
.inline-link { color: var(--blue); font-weight: 700; white-space: nowrap; }
.inline-link:hover { color: var(--orange); }

/* ===== Platforms ===== */
.platforms { background: var(--bg-soft); }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.platform-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 32px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.platform-logo { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 auto 20px; letter-spacing: -0.02em; }
.platform-logo--pila { background: linear-gradient(135deg, #2a6bd6, #1e5fcc); }
.platform-logo--beacon { background: linear-gradient(135deg, #f47a1f, #ff9a3c); }
.platform-logo--math { background: linear-gradient(135deg, #16a37b, #0f8c68); font-size: 1.7rem; }
.platform-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.platform-status { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); background: var(--bg-soft-2); padding: 5px 14px; border-radius: 999px; }
.platform-note { text-align: center; margin-top: 34px; color: var(--muted); font-size: 0.98rem; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px;
  box-shadow: var(--shadow-sm); }
.why-num { font-size: 1.3rem; font-weight: 800; color: #fff; background: var(--grad);
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.why-item h3 { font-size: 1.18rem; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.why-item p { color: var(--muted); font-size: 0.98rem; }

/* ===== Process ===== */
.process { background: var(--bg-soft); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.step-no { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; display: grid;
  place-items: center; font-weight: 800; font-size: 1.15rem; color: var(--blue);
  background: var(--bg-soft-2); border: 2px solid #d8e2f7; }
.process-step h3 { font-size: 1.08rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.process-step p { font-size: 0.9rem; color: var(--muted); }

/* ===== Contact ===== */
.contact { padding-bottom: 110px; }
.contact-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, #1a2c52 0%, #0f1b33 60%);
  border-radius: var(--radius-lg); padding: 56px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--orange); filter: blur(90px); opacity: 0.3; right: -80px; bottom: -120px; }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: #fff;
  letter-spacing: -0.02em; line-height: 1.25; }
.contact-copy p { color: #c4d0e8; margin: 16px 0 28px; font-size: 1.05rem; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-list { position: relative; z-index: 1; display: grid; gap: 14px; }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); }
.contact-list span { color: #9fb0d0; font-size: 0.9rem; font-weight: 600; }
.contact-list a, .contact-list strong { color: #fff; font-weight: 700; }
.contact-list a:hover { color: var(--orange-600); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c4d0e8; padding: 54px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: 0.96; margin-bottom: 10px; }
.footer-brand p { color: #8fa0c2; font-size: 0.92rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #c4d0e8; font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px; color: #7e90b4; font-size: 0.88rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: 74px; right: 16px; left: 16px; flex-direction: column; align-items: stretch;
    gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card--feature { grid-column: auto; }
  .service-card--feature .service-points { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 124px 0 72px; }
}
@media (max-width: 480px) {
  .brand-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-stats li { min-width: 132px; padding: 14px 18px; }
  .contact-card { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
