@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #122f57;
  --navy-deep: #0b2143;
  --blue: #1767b3;
  --cyan: #10a9d7;
  --sky: #e8f5fc;
  --ink: #132a48;
  --muted: #687b91;
  --line: #e3edf4;
  --paper: #fbfdff;
  --wrap: 1200px;
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: #fff; }
body, button, input { font-family: 'DM Sans', 'Noto Sans KR', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: white; background: #1972bf; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding-block: 126px; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 18px; color: white; background: var(--navy); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; min-height: 760px; height: min(860px, 100svh); min-height: max(760px, 100svh); overflow: hidden; isolation: isolate; background: #f7fbff; }
.hero-art, .hero-wash { position: absolute; z-index: -2; inset: 0; pointer-events: none; }
.hero-art { background: url('/assets/ruby-ai-hero.png') center 46% / cover no-repeat; transform: scale(1.035); animation: hero-drift 30s ease-in-out infinite alternate; }
.hero-wash { z-index: -1; background: linear-gradient(90deg, rgba(249,252,255,.92) 0%, rgba(249,252,255,.76) 32%, rgba(249,252,255,.23) 57%, rgba(249,252,255,0) 75%), linear-gradient(0deg, rgba(247,251,255,.26), transparent 28%); }
.site-header { position: absolute; z-index: 5; top: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 26px max(32px, calc((100% - var(--wrap))/2)); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); }
.brand-mark { width: 62px; height: 28px; overflow: visible; }
.brand-mark path { fill: none; stroke: #163a69; stroke-width: 4.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--cyan); }
.brand-name { font: 800 18px/1 'Manrope', sans-serif; letter-spacing: .015em; }
.primary-nav { display: flex; align-items: center; gap: 38px; color: #34516f; font-size: 13px; font-weight: 600; }
.primary-nav a { transition: color .2s ease; }
.primary-nav a:hover { color: var(--blue); }
.primary-nav .nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 17px; color: var(--navy); border: 1px solid rgba(25,75,121,.22); border-radius: 999px; background: rgba(255,255,255,.46); backdrop-filter: blur(12px); }
.nav-cta span { color: var(--cyan); font-size: 16px; }
.menu-toggle { display: none; }

.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(190px, 24vh, 265px); }
.eyebrow { margin: 0 0 20px; color: #66819b; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-blue { color: #1985b6; letter-spacing: .04em; text-transform: none; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(16,169,215,.1); }
h1, h2, p { margin-top: 0; }
.hero h1 { margin: 0; color: var(--navy-deep); font-size: clamp(46px, 6.1vw, 78px); font-weight: 700; letter-spacing: -.065em; line-height: 1.2; }
.hero h1 span { color: #1b5d99; }
.hero-copy { margin: 24px 0 0; color: #587088; font-size: 16px; font-weight: 400; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 32px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 22px; padding: 0 22px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--navy); box-shadow: 0 10px 22px rgba(18,47,87,.12); }
.button-primary:hover { background: #174c81; box-shadow: 0 14px 28px rgba(18,47,87,.18); }
.button-primary span, .button-dark span { color: #7bdcff; font-size: 17px; }
.button-quiet { color: #395876; background: rgba(255,255,255,.5); border-color: rgba(52,81,111,.15); backdrop-filter: blur(10px); }
.button-quiet:hover { background: rgba(255,255,255,.85); }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 66px; color: #71869a; font-size: 11px; letter-spacing: .03em; }
.note-line { width: 30px; height: 1px; background: #57a9ce; }
.scroll-cue { position: absolute; right: max(32px, calc((100% - var(--wrap))/2)); bottom: 38px; display: flex; align-items: center; gap: 13px; color: #6c879f; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.scroll-cue span { width: 26px; height: 1px; background: #77adc8; }

.section-label { display: flex; align-items: center; gap: 13px; color: #8b9baa; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.section-label span { color: #2288ba; font: 600 12px/1 'Manrope', sans-serif; letter-spacing: 0; }
.intro { background: #fff; }
.intro-grid { display: grid; grid-template-columns: .7fr 1.5fr; gap: 60px; }
.intro-grid > .section-label { padding-top: 8px; align-self: start; }
.intro-main { max-width: 790px; }
.intro-main .eyebrow { margin-bottom: 17px; }
.intro h2, .topics h2, .ruby-copy h2, .closing h2 { margin: 0; color: var(--navy-deep); font-size: clamp(32px, 4vw, 49px); font-weight: 700; letter-spacing: -.06em; line-height: 1.32; }
.text-muted { color: #93a4b5; }
.body-copy { max-width: 640px; margin: 22px 0 0; color: #667c91; font-size: 14px; line-height: 1.95; }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 55px; padding-top: 23px; border-top: 1px solid var(--line); }
.value-item { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 8px; row-gap: 7px; }
.value-index { color: #4ba3c9; font: 600 11px/1 'Manrope', sans-serif; }
.value-item strong { color: #274461; font-size: 12px; font-weight: 700; }
.value-item > span:last-child { grid-column: 2; color: #8a9aaa; font-size: 11px; }

.topics { background: #f5f9fc; }
.topics-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.topics-heading .section-label { margin-bottom: 36px; }
.topics-heading .eyebrow { margin-bottom: 13px; }
.topics h2 { font-size: clamp(30px, 3.5vw, 42px); }
.search-box { display: flex; width: min(310px, 100%); height: 48px; align-items: center; gap: 10px; margin-bottom: 3px; padding: 0 14px; border: 1px solid #dce8f0; border-radius: 6px; background: rgba(255,255,255,.8); }
.search-box svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #7d92a6; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #9aaaba; }
.search-box kbd { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; color: #9babb8; border: 1px solid #e6edf2; border-radius: 4px; font: 12px/1 sans-serif; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card { position: relative; display: flex; min-height: 270px; flex-direction: column; overflow: hidden; padding: 23px 23px 25px; border: 1px solid #e2ebf2; border-radius: 8px; background: white; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.topic-card:hover { transform: translateY(-5px); border-color: #c9e2ef; box-shadow: 0 18px 35px rgba(33,75,110,.08); }
.card-kicker { color: #98a9b8; font: 600 9px/1 'Manrope', sans-serif; letter-spacing: .11em; }
.topic-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-top: 29px; border-radius: 16px; }
.topic-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-spark { color: #1388ba; background: #e7f7fc; }
.icon-grid { color: #5575d7; background: #eef1ff; }
.icon-orbit { color: #9575d8; background: #f5efff; }
.icon-link { color: #278f90; background: #eaf8f5; }
.topic-title { margin-top: 20px; color: #1c3a5a; font-size: 15px; font-weight: 700; letter-spacing: -.035em; }
.topic-desc { margin-top: 7px; color: #8293a3; font-size: 11px; line-height: 1.6; }
.card-arrow { position: absolute; right: 23px; bottom: 23px; color: #77a7c0; font-size: 17px; transition: transform .2s ease; }
.topic-card:hover .card-arrow { transform: translate(2px, -2px); }
.search-empty { margin: 26px 0 0; color: #687b91; text-align: center; font-size: 13px; }
.topics-footnote { margin: 20px 0 0; color: #8b9aaa; font-size: 11px; text-align: right; }

.ruby-section { padding-top: 108px; padding-bottom: 108px; background: #fff; }
.ruby-panel { position: relative; display: grid; min-height: 420px; grid-template-columns: 1fr .8fr; align-items: center; overflow: hidden; padding: 62px 8.5%; border: 1px solid #e4eef4; border-radius: 12px; background: linear-gradient(120deg, #f5fbff 0%, #edf7fd 46%, #f8fbff 100%); }
.ruby-glow { position: absolute; top: -160px; right: -90px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(104,193,224,.19), rgba(210,236,247,.11) 42%, transparent 70%); pointer-events: none; }
.ruby-copy { position: relative; z-index: 2; max-width: 450px; }
.ruby-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; padding: 8px 11px; color: #5f829c; border: 1px solid #d7e9f2; border-radius: 999px; background: rgba(255,255,255,.52); font: 600 9px/1 'Manrope', sans-serif; letter-spacing: .12em; }
.ruby-dot { width: 6px; height: 6px; border-radius: 50%; background: #48b9d8; box-shadow: 0 0 0 4px rgba(72,185,216,.12); }
.ruby-copy .eyebrow { margin-bottom: 10px; }
.ruby-copy h2 { font-size: clamp(39px, 4.3vw, 54px); }
.ruby-copy h2 span { color: #168abb; }
.ruby-copy .body-copy { max-width: 395px; margin-top: 16px; font-size: 13px; }
.button-dark { min-height: 46px; margin-top: 23px; color: #fff; background: #163e68; font-size: 11px; }
.button-dark:hover { background: #205786; }
.ruby-orb { position: relative; display: grid; width: min(340px, 100%); aspect-ratio: 1; place-items: center; justify-self: center; color: #58adca; }
.orb-ring { position: absolute; border: 1px solid rgba(63,151,189,.2); border-radius: 50%; }
.ring-one { width: 78%; height: 78%; transform: rotate(-30deg) scaleY(.55); }
.ring-two { width: 98%; height: 64%; transform: rotate(36deg); border-color: rgba(63,151,189,.14); }
.orb-core { position: relative; display: grid; width: 128px; height: 128px; place-items: center; border: 1px solid rgba(56,147,188,.18); border-radius: 50%; background: radial-gradient(circle at 35% 29%, rgba(255,255,255,.96), rgba(221,244,251,.8) 52%, rgba(184,224,241,.54)); box-shadow: 0 18px 60px rgba(48,126,166,.12), inset 0 0 26px rgba(255,255,255,.74); }
.orb-label { color: #328db6; font: 500 64px/.95 'Manrope', sans-serif; }
.orb-star { position: absolute; top: 18px; right: 23px; color: #51b8d5; font-size: 14px; animation: star-glow 5s ease-in-out infinite; }
.orb-node { position: absolute; z-index: 1; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #3cafd0; box-shadow: 0 0 0 4px rgba(60,175,208,.12); }
.node-a { top: 20%; right: 25%; }
.node-b { bottom: 23%; left: 20%; width: 7px; height: 7px; background: #8ba7ef; }
.node-c { top: 35%; left: 13%; width: 6px; height: 6px; background: #82d6d2; }
.orb-caption { position: absolute; right: 5%; bottom: 10%; color: #8eafc1; font: 500 9px/1 'Manrope', sans-serif; letter-spacing: .13em; }

.closing { padding-block: 88px 104px; text-align: center; background: #f7fafc; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing .section-label { margin-bottom: 24px; }
.closing h2 { font-size: clamp(34px, 4.4vw, 52px); }
.closing h2 span { color: #7992a8; }
.closing .button { margin-top: 27px; }
.site-footer { color: #c5d2df; background: #102a49; }
.footer-main { display: flex; min-height: 128px; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: #f4f8fc; }
.footer-brand .brand-mark path { stroke: #e5f2fa; }
.footer-brand .brand-mark circle { fill: #4dc5e4; }
.footer-brand .brand-name { font-size: 15px; }
.footer-message { color: #95aabd; font-size: 12px; }
.footer-email { color: #d9e7f1; font-size: 12px; }
.footer-email span { margin-left: 8px; color: #66d0ec; }
.footer-bottom { display: flex; min-height: 55px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(218,233,243,.13); color: #8198ad; font: 10px/1.4 'Manrope', 'Noto Sans KR', sans-serif; }

@keyframes hero-drift { from { transform: scale(1.035) translate3d(0,0,0); } to { transform: scale(1.045) translate3d(-.35%,.2%,0); } }
@keyframes star-glow { 0%,100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }

@media (min-width: 1440px) { .hero-art { background-position: center 48%; } }
@media (max-width: 980px) {
  .hero { min-height: 720px; }
  .site-header { padding-inline: 30px; }
  .primary-nav { gap: 24px; }
  .hero-art { background-position: 56% center; }
  .hero-wash { background: linear-gradient(90deg, rgba(249,252,255,.95) 0%, rgba(249,252,255,.86) 38%, rgba(249,252,255,.34) 72%, rgba(249,252,255,.08) 100%); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-card { min-height: 250px; }
  .intro-grid { grid-template-columns: .45fr 1.55fr; gap: 34px; }
  .ruby-panel { padding-inline: 7%; }
}
@media (max-width: 680px) {
  .wrap { width: min(var(--wrap), calc(100% - 40px)); }
  .section-pad { padding-block: 82px; }
  .hero { min-height: 760px; height: 100svh; max-height: 920px; }
  .hero-art { inset: 0 0 0 0; background-position: 59% center; transform: scale(1.08); animation-duration: 34s; }
  .hero-wash { background: linear-gradient(90deg, rgba(249,252,255,.97) 0%, rgba(249,252,255,.91) 48%, rgba(249,252,255,.55) 78%, rgba(249,252,255,.22) 100%), linear-gradient(0deg, rgba(247,251,255,.56), transparent 45%); }
  .site-header { padding: 20px; }
  .brand { gap: 7px; }
  .brand-mark { width: 53px; height: 25px; }
  .brand-name { font-size: 15px; }
  .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(31,75,117,.16); border-radius: 50%; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); }
  .menu-toggle span { width: 15px; height: 1px; background: var(--navy); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 72px; right: 20px; left: 20px; display: none; align-items: stretch; gap: 0; padding: 10px 15px; border: 1px solid rgba(212,228,239,.9); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 16px 40px rgba(25,63,98,.1); backdrop-filter: blur(18px); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { padding: 14px 5px; border-bottom: 1px solid #edf2f6; font-size: 13px; }
  .primary-nav a:last-child { border: 0; }
  .primary-nav .nav-cta { justify-content: space-between; margin-top: 6px; padding: 13px 6px; border-radius: 0; background: transparent; }
  .hero-content { padding-top: clamp(190px, 27vh, 245px); }
  .eyebrow { margin-bottom: 17px; font-size: 9px; }
  .hero h1 { font-size: clamp(38px, 10.4vw, 64px); line-height: 1.22; }
  .hero-copy { margin-top: 19px; font-size: 13px; line-height: 1.9; }
  .hero-actions { align-items: flex-start; gap: 8px; margin-top: 25px; }
  .button { min-height: 48px; gap: 15px; padding-inline: 16px; font-size: 11px; }
  .hero-note { margin-top: 46px; font-size: 10px; }
  .scroll-cue { right: 20px; bottom: 23px; font-size: 8px; }
  .intro-grid { display: block; }
  .intro-grid > .section-label { margin-bottom: 45px; }
  .intro h2, .topics h2, .ruby-copy h2, .closing h2 { font-size: clamp(31px, 8.2vw, 40px); }
  .body-copy { font-size: 12px; }
  .value-row { grid-template-columns: 1fr; gap: 17px; margin-top: 34px; }
  .value-item { grid-template-columns: 28px 1fr; }
  .topics-heading { display: block; margin-bottom: 25px; }
  .topics-heading .section-label { margin-bottom: 34px; }
  .search-box { width: 100%; margin-top: 22px; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .topic-card { min-height: 230px; padding: 17px 14px; }
  .topic-icon { width: 46px; height: 46px; margin-top: 24px; border-radius: 14px; }
  .topic-icon svg { width: 28px; height: 28px; }
  .topic-title { font-size: 12px; }
  .topic-desc { max-width: 145px; font-size: 10px; }
  .card-arrow { right: 14px; bottom: 16px; }
  .topics-footnote { font-size: 10px; text-align: left; line-height: 1.7; }
  .ruby-section { padding-block: 68px; }
  .ruby-panel { min-height: auto; grid-template-columns: 1fr; gap: 15px; padding: 36px 25px 18px; }
  .ruby-badge { margin-bottom: 25px; }
  .ruby-copy h2 { font-size: 43px; }
  .ruby-orb { width: min(250px, 85%); margin-top: 6px; }
  .orb-core { width: 104px; height: 104px; }
  .orb-label { font-size: 54px; }
  .closing { padding-block: 72px 82px; }
  .closing .section-label { margin-bottom: 22px; }
  .site-footer .wrap { width: calc(100% - 40px); }
  .footer-main { min-height: 170px; flex-wrap: wrap; justify-content: space-between; gap: 11px 20px; padding-block: 27px; }
  .footer-brand { width: 100%; }
  .footer-message, .footer-email { font-size: 10px; }
  .footer-bottom { min-height: 52px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
