/* Homepage in English (/) and Korean (/ko/): what Thegram is, shown with real product screens. */
.home { --tint: #f6f6f4; --ink2: #3d3d3d; }
.home section[id] { scroll-margin-top: 88px; }
.h-wrap { width: min(1280px, 100% - 2 * var(--pad)); margin-inline: auto; }
.h-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--past); }
.h-title { margin: 0; font-size: clamp(32px, 4.2vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.05em; }
.h-sub { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 750; line-height: 1.2; letter-spacing: -0.04em; }
.h-num { font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--gray); }
.nav .nav-lang { color: var(--past); }

/* hero */
.h-hero { padding: clamp(128px, 17vh, 176px) 0 clamp(64px, 8vw, 120px); }
.h-hero-title { margin: 0; font-size: clamp(40px, 6.4vw, 92px); font-weight: 800; line-height: 1.02; letter-spacing: -0.055em; }
.h-hero-sub { max-width: 46rem; margin: 28px 0 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; color: var(--ink2); }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.h-cta .btn { min-height: 50px; padding: 0 24px; font-size: 16px; }
.h-proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--past); }
.h-proof li::before { content: "✓"; margin-right: 8px; color: var(--black); }
.h-member { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 14px 0 0; font-size: 14px; color: var(--past); }
.h-member img { display: block; width: auto; height: 40px; margin-left: -4.7px; }

/* product screens */
.h-shot { min-width: 0; margin: 0; }
.h-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: clamp(10px, 1.2vw, 16px); background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 28px 72px -28px rgba(0, 0, 0, .24); }
.h-shot figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--gray); }
.h-shot-hero { width: min(1280px, 100% - 2 * var(--pad)); margin: clamp(48px, 6vw, 80px) auto 0; }
.h-shot-card { justify-self: center; width: min(442px, 100%); }
.h-shot-card img { border-radius: 20px; }

/* what Thegram does */
.h-what { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.h-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.h-pillars a { display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s var(--ease), transform .6s var(--ease); }
.h-pillars a:hover { border-color: var(--black); transform: translateY(-3px); }
.h-pillars b { margin-top: 32px; font-size: 23px; line-height: 1.25; letter-spacing: -0.035em; }
.h-pillars p { margin: 12px 0 28px; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.h-more { margin-top: auto; font-size: 15px; font-weight: 600; }

/* document → knowledge → answer */
.h-flow { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.h-flow-steps { display: grid; gap: clamp(72px, 9vw, 128px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.h-flow-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.h-flow-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink2); }
.h-flow-tag { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.h-flow-tag b { padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.h-flow-shots { display: grid; gap: 16px; margin-top: clamp(28px, 3.5vw, 44px); }
.h-flow-shots figcaption { margin-top: 0; }
.h-flow-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.h-flow-shots img.h-flow-narrow { max-width: 820px; }
.h-flow-side { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px; align-items: start; }
.h-flow-ai { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.h-flow-ai li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
/* Studio step: one still, switched by right panel and file type; without script the first still stays. */
.h-studio-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.h-seg { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.h-seg button {
  flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--past); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.h-seg button:hover { color: var(--black); }
.h-seg button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.h-seg button:focus-visible { outline: 1.5px solid var(--black); outline-offset: 2px; }
html:not(.js) .h-studio-bar { display: none; }

/* feature sections */
.h-feature { padding: clamp(80px, 10vw, 140px) 0; }
.h-tint { background: var(--tint); }
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.h-split + .h-split { margin-top: clamp(72px, 9vw, 128px); }
.h-split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.h-split-rev .h-copy { order: 2; }
.h-copy > p { margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink2); }
.h-copy > p.h-fine { font-size: 13px; color: var(--gray); }
.h-list, .h-hubs, .h-rules { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(0, 0, 0, .1); }
.h-list li, .h-hubs li, .h-rules li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 15px; line-height: 1.5; color: var(--ink2); }
.h-list b, .h-hubs b, .h-rules b { font-size: 16px; color: var(--black); }
.h-rules li { padding: 20px 0; }
.h-rules p { margin: 4px 0 0; font-size: 16px; line-height: 1.6; }
.h-notes { display: grid; gap: 14px; max-width: 60rem; margin-top: clamp(56px, 7vw, 96px); font-size: 13px; line-height: 1.65; color: var(--past); }
.h-notes p { margin: 0; }
.h-notes a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

/* AI connections */
.h-connect { padding: clamp(80px, 10vw, 140px) 0; }
.h-lede { max-width: 46rem; margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.h-ai { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.h-ai a { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 76px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s var(--ease); }
.h-ai a:hover { border-color: var(--black); }
.h-ai img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.h-ai span { display: grid; min-width: 0; font-size: 15px; line-height: 1.3; }
.h-ai small { font-size: 13px; color: var(--gray); }
.h-code-label { margin: 48px 0 0; font-size: 15px; color: var(--past); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
.g-code.h-code { max-width: 920px; margin: 12px 0 0; padding: 18px 18px 18px 24px; border: 1.5px solid transparent; border-radius: 18px; color: var(--white); background: linear-gradient(var(--black), var(--black)) padding-box, conic-gradient(from var(--angle), #0a0a0a, #0a0a0a 55%, #8a8a8a 70%, #fff 78%, #8a8a8a 86%, #0a0a0a) border-box; animation: spin 4s linear infinite; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.h-code code { font-size: clamp(14px, 1.4vw, 17px); }
.h-code .g-copy { border-color: var(--white); background: var(--black); color: var(--white); }
.h-code .g-copy:hover, .h-code .g-copy.done { background: var(--white); color: var(--black); }
.h-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; font-size: 15px; font-weight: 600; }

/* getting started */
.h-start { padding: clamp(88px, 11vw, 150px) 0; background: var(--black); color: var(--white); }
.h-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.h-steps li { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); }
.h-steps b { font-size: 21px; line-height: 1.3; letter-spacing: -0.03em; }
.h-steps p { margin: 0; font-size: 16px; line-height: 1.6; color: #bdbdbd; }
.h-start .h-cta { margin-top: clamp(40px, 5vw, 64px); }
.h-start .btn { border-color: var(--white); background: var(--white); color: var(--black); }
.h-start .btn.line { border-color: rgba(255, 255, 255, .45); background: transparent; color: var(--white); }

.foot-langs { display: flex; gap: 20px; }
.foot-lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.foot-wordmark { display: block; width: auto; height: 32px; }
.foot-badge { display: block; width: auto; height: 41px; margin-left: -4.8px; }
.foot-trademark { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--gray); }

:lang(ko) .h-hero-title { line-height: 1.12; letter-spacing: -0.06em; }
:lang(ko) .h-title { line-height: 1.2; }

@media (max-width: 999px) {
  .h-split, .h-split-rev { grid-template-columns: 1fr; }
  .h-split-rev .h-copy { order: 0; }
  .h-pillars, .h-steps { grid-template-columns: 1fr; }
  .h-flow-copy, .h-flow-side { grid-template-columns: 1fr; }
  .h-ai { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .h-ai { grid-template-columns: 1fr; }
  .h-cta .btn { flex: 1 1 100%; justify-content: center; }
  .h-pillars a { padding: 22px; }
  .h-flow-pair { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; }
}
