.openai-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,.035) 1px, transparent 1px),
    #fff;
  background-size: 42px 42px;
  animation: grid-drift 18s linear infinite;
}
.openai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(16,163,127,.12) 50%, transparent 58%, transparent 100%);
  transform: translateX(-100%);
  animation: scan-sweep 6s ease-in-out infinite;
}
.openai-hero > * {
  position: relative;
  z-index: 1;
  animation: rise-in .7s ease both;
}
.hero-brand {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
}
.openai-hero h1 {
  margin: 0;
  font-size: clamp(46px, 9vw, 104px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 650;
}
.hero-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(720px, 100%);
  margin-top: 38px;
  padding: 14px 16px 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  color: var(--muted);
  text-align: left;
  min-width: 0;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.hero-search span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero-search:hover {
  transform: translateY(-3px);
  border-color: #111;
  box-shadow: 0 22px 70px rgba(0,0,0,.12);
}
.hero-search a {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 9px 14px;
  transition: transform .2s ease, background .2s ease;
}
.hero-search a:hover {
  transform: translateX(2px);
  background: #333;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
}
.hero-links a,
.tutorial-strip a,
.mini-list a {
  position: relative;
}
.hero-links a::after,
.tutorial-strip a::after,
.mini-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: #111;
  transition: right .22s ease;
}
.hero-links a:hover::after,
.tutorial-strip a:hover::after,
.mini-list a:hover::after {
  right: 0;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.feature-card {
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--line);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.feature-card:last-child { border-right: 0; }
.feature-card:hover,
.news-card:hover,
.openai-group:hover,
.tutorial-strip a:hover {
  background: #fafafa;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.feature-card span,
.news-card span,
.archive-item time {
  color: var(--muted);
  font-size: 14px;
}
.feature-card h2 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}
.section-block {
  padding: 46px 28px;
  border-bottom: 1px solid var(--line);
  animation: section-fade both;
  animation-timeline: view();
  animation-range: entry 0% cover 24%;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 24px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
}
.section-head a { color: var(--muted); }
.news-grid,
.openai-groups {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.news-card,
.openai-group {
  min-height: 220px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.news-card h3,
.openai-group h3 {
  margin: 8px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
}
.news-card p,
.openai-group p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.group-title span {
  color: var(--muted);
  font-size: 14px;
}
.mini-list {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}
.mini-list a {
  color: #333;
  font-size: 15px;
}
.tutorial-strip {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tutorial-strip a {
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.archive-head {
  padding: 74px 28px 34px;
  border-bottom: 1px solid var(--line);
}
.archive-head h1 {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  font-weight: 600;
}
.archive-head p {
  max-width: 1180px;
  margin: 18px auto 0;
  color: var(--muted);
}
.archive-list {
  max-width: 1180px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
}
.archive-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.archive-item h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
.archive-item p {
  grid-column: 2;
  margin: -12px 0 0;
  color: var(--muted);
}
.feature-card,
.news-card,
.openai-group,
.tutorial-strip a,
.archive-item {
  min-width: 0;
}
.feature-card h2,
.news-card h3,
.openai-group h3,
.tutorial-strip a,
.archive-item h2 {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .feature-row,
  .news-grid,
  .openai-groups,
  .tutorial-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .openai-hero {
    min-height: auto;
    align-items: flex-start;
    text-align: left;
    padding: 58px 18px 42px;
    background-size: 34px 34px;
  }
  .openai-hero h1 {
    font-size: clamp(38px, 15vw, 58px);
    line-height: 1.04;
  }
  .hero-brand {
    font-size: 18px;
    margin-bottom: 14px;
  }
  .hero-search {
    width: 100%;
    margin-top: 28px;
    border-radius: 18px;
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.07);
  }
  .hero-search a {
    width: 100%;
    text-align: center;
  }
  .hero-links {
    justify-content: flex-start;
    gap: 12px 16px;
    font-size: 14px;
  }
  .section-block {
    padding: 34px 18px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .feature-row,
  .news-grid,
  .openai-groups,
  .tutorial-strip { grid-template-columns: 1fr; }
  .feature-card,
  .news-card,
  .openai-group,
  .motion-grid article {
    min-height: auto;
    padding: 18px;
  }
  .feature-card h2,
  .archive-item h2 {
    font-size: 21px;
  }
  .archive-item { grid-template-columns: 1fr; }
  .archive-item p { grid-column: auto; margin: 0; }
  .archive-head {
    padding: 48px 18px 26px;
  }
  .archive-head h1 {
    font-size: clamp(38px, 14vw, 56px);
  }
  .archive-list {
    border-left: 0;
  }
}
.hero-text {
  width: 100%;
}
.motion-panel {
  position: relative;
  overflow: hidden;
}
.motion-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10a37f, #111, transparent);
  transform: translateX(-100%);
  animation: line-run 5s ease-in-out infinite;
}
.motion-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.motion-grid article {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(16,163,127,.08), transparent 44%),
    #fff;
  transition: transform .22s ease, background .22s ease;
}
.motion-grid article:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(135deg, rgba(16,163,127,.14), transparent 52%),
    #fff;
}
.motion-grid span {
  color: var(--muted);
  font-size: 14px;
}
.motion-grid h3 {
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.motion-grid p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .motion-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}
@keyframes scan-sweep {
  0%, 42% { transform: translateX(-100%); opacity: 0; }
  52% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes line-run {
  0%, 20% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@keyframes section-fade {
  from { opacity: .35; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
