/* ============================================
   Medium Clone - Custom Styles
   ============================================ */

:root {
  --ink-900: #191919;
  --ink-800: #242424;
  --ink-700: #383838;
  --ink-600: #525252;
  --ink-500: #737373;
  --ink-400: #a8a8a8;
  --ink-300: #d0d0d0;
  --ink-200: #e6e6e6;
  --ink-100: #f3f3f3;
  --ink-50: #f9f9f9;
  --accent: #1a8917;
  --accent-dark: #156d12;
  --accent-light: #e6f6e6;
}

/* ---------- Base ---------- */
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Georgia", "Cambria", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: var(--ink-600);
}

::selection {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* ---------- Navbar ---------- */
/* .navbar-medium {
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  height: 57px;
  position: sticky;
  top: 0;
  z-index: 1000;
} */
.navbar-medium {
  /* background: #fff; */
  /* border-bottom: 1px solid var(--ink-200); */
  height: 57px;
  /* position: sticky; */
  top: 0;
  z-index: 1000;
}
.navbar-medium .nav-link {
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}
.navbar-medium .nav-link:hover {
  color: var(--ink-900);
}

.navbar-brand-medium {
  font-family: "Georgia", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-right: 1.5rem;
}
.navbar-brand-medium:hover {
  color: var(--ink-900);
}

.search-box {
  background: var(--ink-100);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  width: 240px;
  outline: none;
  transition:
    width 0.3s,
    background 0.2s;
}
.search-box:focus {
  width: 280px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink-300);
}
.search-wrapper {
  position: relative;
}
.search-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
  font-size: 0.875rem;
}

.btn-medium-blue {
  background: #4a80f1;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-medium-blue:hover {
  background: #4172de;
  color: #fff;
}

.btn-medium-green {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-medium-green:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-medium-outline {
  border: 1px solid var(--ink-400);
  background: transparent;
  color: var(--ink-700);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-medium-outline:hover {
  border-color: var(--ink-700);
  color: var(--ink-900);
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 5rem 0 4rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.hero-subtext {
  font-size: 1.5rem;
  color: var(--ink-600);
  font-family: "Georgia", serif;
  line-height: 1.4;
}

/* ---------- Trending pills ---------- */
.trending-bar {
  border-bottom: 1px solid var(--ink-200);
  padding: 0.75rem 0;
}
.trending-label {
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-700);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
}
.trending-pill:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}
.trending-pill .star {
  color: var(--ink-400);
  font-size: 0.75rem;
}

/* ---------- Article cards ---------- */
.article-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ink-200);
  cursor: pointer;
  transition: opacity 0.2s;
}
.article-card:hover {
  opacity: 0.85;
}
.article-card:hover .article-title {
  text-decoration: underline;
  text-decoration-color: var(--ink-300);
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-700);
  font-weight: 500;
}
.article-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.article-meta {
  font-size: 0.8125rem;
  color: var(--ink-500);
}

.article-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.25rem 0 0.5rem;
}

.article-subtitle {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.5;
}

.article-tag {
  font-size: 0.75rem;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
}
.article-tag:hover {
  background: var(--ink-200);
  color: var(--ink-700);
}

.article-thumb {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.clap-btn,
.bookmark-btn {
  background: none;
  border: none;
  color: var(--ink-500);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.clap-btn:hover,
.bookmark-btn:hover {
  background: var(--ink-100);
  color: var(--ink-700);
}
.clap-btn.clapped {
  color: var(--accent);
}
.bookmark-btn.saved {
  color: var(--ink-900);
}

/* ---------- Featured large card ---------- */
.featured-card {
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 2rem;
  margin-bottom: 1rem;
}
.featured-card .article-title {
  font-size: 2rem;
  line-height: 1.2;
}
.featured-card .article-subtitle {
  font-size: 1.0625rem;
}
.featured-card .article-thumb {
  width: 280px;
  height: 200px;
}

/* ---------- Sidebar ---------- */
.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.sidebar-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-900);
}
.sidebar-item-bio {
  font-size: 0.75rem;
  color: var(--ink-500);
  line-clamp: 1;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.who-to-follow {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.who-to-follow img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer-medium {
  /* padding: 0.2rem 0; */
  padding: 2rem 0;
}
.footer-medium a {
  font-size: 0.8125rem;
  color: var(--ink-500);
  padding: 0.25rem 0.75rem;
  transition: color 0.2s;
}
.footer-medium a:hover {
  color: var(--ink-700);
}

/* ---------- Article page ---------- */
.article-page-header {
  padding: 2.5rem 0 1.5rem;
}
.article-page-title {
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.article-page-subtitle {
  font-size: 1.25rem;
  color: var(--ink-600);
  font-family: "Georgia", serif;
  line-height: 1.4;
  margin-top: 0.5rem;
}
.article-page-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin: 1.5rem 0 2rem;
}

.article-body {
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink-800);
}
.article-body p {
  margin-bottom: 1.75rem;
}
.article-body h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body blockquote {
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-600);
  border-left: 4px solid var(--ink-200);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
}
.article-body a:hover {
  color: var(--accent-dark);
}
.article-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body img {
  width: 100%;
  border-radius: 4px;
  margin: 1.5rem 0;
}
.article-body figcaption {
  font-size: 0.875rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 0.5rem;
  font-family: "Inter", sans-serif;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.author-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.article-engagement-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: 2rem;
}

/* ---------- Topic page ---------- */
.topic-hero {
  padding: 3rem 0;
  text-align: center;
}
.topic-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
}
.topic-hero p {
  font-size: 1.125rem;
  color: var(--ink-600);
  margin-top: 0.5rem;
}
.topic-tabs {
  border-bottom: 1px solid var(--ink-200);
  display: flex;
  gap: 0;
}
.topic-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.topic-tab:hover {
  color: var(--ink-700);
}
.topic-tab.active {
  color: var(--ink-900);
  border-bottom-color: var(--ink-900);
  font-weight: 600;
}

/* ---------- Author profile page ---------- */
.author-profile-header {
  padding: 2.5rem 0;
  text-align: center;
}
.author-profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}
.author-profile-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.author-profile-bio {
  font-size: 1rem;
  color: var(--ink-600);
  max-width: 500px;
  margin: 0.5rem auto 1rem;
}
.author-profile-stats {
  font-size: 0.8125rem;
  color: var(--ink-500);
}

/* ---------- Helpers ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clap-count {
  transition: transform 0.2s;
}
.clap-count.pulse {
  transform: scale(1.3);
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .search-box {
    width: 100%;
  }
  .search-box:focus {
    width: 100%;
  }
  .article-thumb {
    width: 80px;
    height: 80px;
  }
  .featured-card .article-thumb {
    width: 100%;
    height: 180px;
    margin-top: 1rem;
  }
  .article-body {
    font-size: 1.125rem;
  }
  .article-page-title {
    font-size: 1.75rem;
  }
}

/* ============================================
   Hero Visual — Vue Flow Graph + Post Mockup
   ============================================ */

.hero-visual-wrap {
  position: relative;
  width: 100%;
  height: 420px;
}

/* ---- Vue Flow canvas ---- */
.vf-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  overflow: hidden;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--ink-200) 1px,
    transparent 0
  );
  background-size: 20px 20px;
}

.vf-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vf-edge {
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 2;
  transition: stroke 0.3s;
}

.vf-edge-dash {
  stroke-dasharray: 6 4;
  animation: dash-flow 1s linear infinite;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -10;
  }
}

/* ---- Nodes ---- */
.vf-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 0.4rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-700);
  font-family: "Inter", sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: default;
  animation: vf-node-in 0.5s ease-out both;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}

.vf-node i {
  font-size: 0.6875rem;
  color: var(--ink-500);
}

.vf-node:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.15);
  transform: translateY(-1px);
}
.vf-node:hover i {
  color: var(--accent);
}

.vf-node-1 {
  animation-delay: 0.1s;
}
.vf-node-2 {
  animation-delay: 0.3s;
}
.vf-node-3 {
  animation-delay: 0.5s;
}
.vf-node-4 {
  animation-delay: 0.7s;
}
.vf-node-5 {
  animation-delay: 0.9s;
}

.vf-node-4 {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.vf-node-4 i {
  color: #fff;
}
.vf-node-4:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(26, 137, 23, 0.3);
}

@keyframes vf-node-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---- Pulsing connection dots ---- */
.vf-node::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
  border: 2px solid var(--ink-50);
  transition: background 0.3s;
}
.vf-node:hover::after {
  background: var(--accent);
}
.vf-node-4::after {
  background: var(--accent);
}

/* ---- Flowing particles along edges ---- */
.vf-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(26, 137, 23, 0.4);
  opacity: 0;
  pointer-events: none;
}

.vf-particle.active {
  animation: vf-particle-flow 2s ease-in-out infinite;
}

@keyframes vf-particle-flow {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ---- Article post mockup ---- */
.post-mockup {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: post-slide-in 0.6s ease-out 1s both;
  z-index: 5;
}

@keyframes post-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.post-mockup-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-300), var(--ink-400));
  flex-shrink: 0;
}

.post-mockup-author-line {
  flex-grow: 1;
}

.post-mockup-name {
  height: 8px;
  width: 80px;
  background: var(--ink-200);
  border-radius: 4px;
  margin-bottom: 4px;
}

.post-mockup-meta {
  height: 6px;
  width: 50px;
  background: var(--ink-100);
  border-radius: 4px;
}

.post-mockup-tag {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s;
}

.post-mockup-tag.published {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.post-mockup-title {
  height: 14px;
  width: 85%;
  background: var(--ink-700);
  border-radius: 4px;
  margin-bottom: 0.625rem;
  transition: width 0.4s ease;
}

.post-mockup-body {
  margin-bottom: 0.75rem;
}

.post-mockup-line {
  height: 6px;
  background: var(--ink-100);
  border-radius: 4px;
  margin-bottom: 5px;
}
.post-mockup-line.w-100 {
  width: 100%;
}
.post-mockup-line.w-90 {
  width: 90%;
}
.post-mockup-line.w-70 {
  width: 70%;
}

.post-mockup-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-mockup-btn {
  font-size: 0.5625rem;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem 0.375rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.post-mockup-btn:hover {
  background: var(--ink-100);
  color: var(--ink-700);
}

.post-mockup-publish-btn {
  margin-left: auto;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.post-mockup-publish-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.post-mockup-publish-btn.published {
  background: var(--ink-300);
  cursor: default;
}
.post-mockup-publish-btn.published:hover {
  transform: none;
}

.post-mockup-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 0 0 12px 12px;
  transition: width 1.5s ease-in-out;
}

.post-mockup-progress.fill {
  width: 100%;
}

/* ---- Typing cursor blink ---- */
.post-mockup-title::after {
  content: "|";
  color: var(--accent);
  font-weight: 400;
  animation: blink 0.8s steps(2) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.post-mockup-title.done::after {
  display: none;
}

/* ---- Typing lines ---- */
.post-mockup-line {
  animation: line-appear 0.3s ease-out both;
}
.post-mockup-line:nth-child(1) {
  animation-delay: 1.8s;
}
.post-mockup-line:nth-child(2) {
  animation-delay: 2s;
}
.post-mockup-line:nth-child(3) {
  animation-delay: 2.2s;
}
.post-mockup-line:nth-child(4) {
  animation-delay: 2.4s;
}

@keyframes line-appear {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   3D Carousels Section
   ============================================ */

.carousels-heading {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.carousels-subheading {
  font-size: 1.0625rem;
  color: var(--ink-600);
  font-family: "Georgia", serif;
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.carousel-card-wrap {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.carousel-card-wrap:hover {
  border-color: var(--ink-300);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.carousel-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 1rem;
}

.carousel-card-label i {
  color: var(--accent);
  font-size: 1rem;
}

/* ---- 3D Carousel core ---- */
.carousel-3d {
  width: 100%;
  height: 240px;
  position: relative;
  perspective: 1000px;
  overflow: visible;
  margin-bottom: 1rem;
}

.carousel-3d-inner {
  width: 160px;
  height: 200px;
  position: relative;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-3d-item {
  position: absolute;
  width: 160px;
  height: 200px;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  transition:
    opacity 0.4s,
    box-shadow 0.4s;
  padding: 1rem;
  font-family: "Inter", sans-serif;
}

.carousel-3d-item span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-800);
}

/* ---- Platform icon items ---- */
.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.carousel-3d-item:hover .platform-icon {
  transform: scale(1.1);
}

/* ---- Flow step items ---- */
.carousel-flow-item {
  gap: 0.375rem;
}

.flow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.carousel-3d-item:hover .flow-step-icon {
  transform: scale(1.1);
}

.flow-step-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-top: 0.25rem;
}

.flow-step-desc {
  font-size: 0.6875rem;
  color: var(--ink-500);
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* ---- Front item highlight ---- */
.carousel-3d-item.is-front {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

/* ---- Description + controls ---- */
.carousel-desc {
  font-size: 0.8125rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  font-family: "Georgia", serif;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.carousel-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.carousel-nav-btn:hover {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

/* ---- Mobile: hide on very small screens, simplify ---- */
@media (max-width: 576px) {
  .carousel-3d {
    height: 200px;
  }
  .carousel-3d-inner {
    width: 130px;
    height: 170px;
  }
  .carousel-3d-item {
    width: 130px;
    height: 170px;
  }
  .platform-icon,
  .flow-step-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    border-radius: 11px;
  }
  .flow-step-desc {
    display: none;
  }
}

svg.vue-flow__background {
  position: absolute;
  top: 0px;
  z-index: -1;
}

.footer_menu a {
  font-size: 0.8125rem;
  color: var(--ink-500);
  padding: 0.25rem 0.61rem;
  transition: color 0.2s;
}
.navbar-medium-free {
  position: absolute;
  left: 0;
  right: 0;
}
.footer_menu div {
  border-top: 1px solid rgb(230 230 230 / 50%);
  padding-top: 11px;
}
