/* =========================================================
   index.css — landing page ONLY.
   Loaded after style.css, scoped to body.landing so every
   other page (ner.html, translate.html, ...) is untouched.
   Vibe reference: rounded bold display type, marker-style
   highlights, floating rotated icon tiles, dark community CTA.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&display=swap');

body.landing{
  --pink: #EC5A8C;
  --blue: #3E6FF2;
  --teal: #1FA98A;
  --ink-soft: #2A2620;
}

body.landing h1,
body.landing h2,
body.landing .landing-display{
  font-family: 'Baloo 2', var(--font-display);
}

/* ---------- UNIFIED DOCKED SITE HEADER (CONSISTENT ACROSS ALL PAGES) ---------- */
body.landing .site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

body.landing .site-header .wrap,
.site-header .wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.landing .site-header.is-scrolled,
body.landing .site-header.is-scrolled .wrap {
  padding-top: 0;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.landing .nav-links a{ font-weight: 600; }
body.landing .nav-actions{
  display:flex; align-items:center; gap:8px;
}
body.landing .icon-btn{
  width: 40px; height:40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-muted);
  flex: none;
}
body.landing .icon-btn:hover{ border-color: var(--accent); color: var(--accent-dark); }
body.landing .icon-btn svg{ width:17px; height:17px; }
body.landing .btn-dark{
  display:inline-flex; align-items:center; gap:6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
body.landing .btn-dark:hover{ background: #000; transform: translateY(-1px); }

@media (max-width: 860px){
  body.landing .site-header .wrap{ border-radius: var(--radius-lg); height:auto; padding: 12px 14px; }
}

/* ---------- mark / highlight ---------- */
.mark{
  background: var(--accent);
  color: var(--ink);
  padding: 2px 12px 6px;
  border-radius: 10px;
  display: inline-block;
  transform: rotate(-1deg);
}

/* ---------- hero ---------- */
.hero-new{
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px;
  overflow: hidden;
  box-sizing: border-box;
}
.hero-new .hero-inner{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-new .eyebrow{ margin: 0 auto 22px; }
.hero-new h1{
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-new p.lede{
  max-width: 46ch;
  margin: 24px auto 0;
  font-size: 17.5px;
  color: var(--ink-muted);
}
.hero-new .hero-actions{ justify-content: center; margin-top: 34px; }

/* floating rotated icon tiles */
.float-tile{
  position: absolute;
  width: 76px; height: 76px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -14px rgba(31,27,22,0.25);
  display:flex; align-items:center; justify-content:center;
  transform: rotate(45deg);
  z-index: 1;
}
.float-tile .tile-icon{
  transform: rotate(-45deg);
  width: 30px; height:30px;
  display:flex; align-items:center; justify-content:center;
}
.float-tile .tile-icon svg{ width:26px; height:26px; }
.float-tile.c-gold{ color: var(--accent-dark); }
.float-tile.c-pink{ color: var(--pink); }
.float-tile.c-blue{ color: var(--blue); }
.float-tile.c-teal{ color: var(--teal); }

.float-tile.t1{ top: 8%;  left: 4%;   animation: bob 6s ease-in-out infinite; }
.float-tile.t2{ top: 58%; left: 1%;   animation: bob 7s ease-in-out infinite 0.4s; }
.float-tile.t3{ top: 4%;  right: 5%;  animation: bob 6.5s ease-in-out infinite 0.2s; }
.float-tile.t4{ top: 60%; right: 3%;  animation: bob 7.5s ease-in-out infinite 0.6s; }
.float-tile.t5{ top: 82%; left: 20%;  animation: bob 6.2s ease-in-out infinite 0.8s; display:none; }

@keyframes bob{
  0%, 100%{ transform: rotate(45deg) translateY(0); }
  50%{ transform: rotate(45deg) translateY(-10px); }
}

@media (max-width: 980px){
  .float-tile{ width: 60px; height:60px; }
  .float-tile.t1, .float-tile.t2{ left: -10px; }
  .float-tile.t3, .float-tile.t4{ right: -10px; }
}
@media (max-width: 700px){
  .float-tile{ display: none; }
}

/* ---------- split section ---------- */
.split-new{ padding: 30px 0 80px; }
.split-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items:center;
}
@media (max-width: 880px){ .split-grid{ grid-template-columns: 1fr; } }

.split-grid h2{
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}
.split-grid p.lede{
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 16.5px;
  max-width: 42ch;
}

.ring-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  display:flex; align-items:center; justify-content:center;
  transition: transform 0.2s ease-out;
}
.ring{
  position:absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  will-change: border-radius, transform;
}
.ring.r1{
  width:100%; height:100%;
  animation: ringMorph1 18s ease-in-out infinite alternate;
}
.ring.r2{
  width:72%; height:72%;
  animation: ringMorph2 14s ease-in-out infinite alternate-reverse;
}
.ring.r3{
  width:44%; height:44%; background: var(--bg-tint); border-color: var(--line-strong);
  animation: ringMorph1 22s ease-in-out infinite alternate;
}

@keyframes ringMorph1 {
  0%, 100% { border-radius: 50%; transform: rotate(0deg); }
  33% { border-radius: 44% 56% 62% 38% / 54% 46% 54% 46%; transform: rotate(120deg); }
  66% { border-radius: 62% 38% 42% 58% / 42% 58% 42% 58%; transform: rotate(240deg); }
}
@keyframes ringMorph2 {
  0%, 100% { border-radius: 50%; transform: rotate(0deg); }
  50% { border-radius: 58% 42% 48% 52% / 44% 56% 44% 56%; transform: rotate(-180deg); }
}
.ring-center{
  position:relative;
  z-index:2;
  width: 44%; height:44%;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow: var(--shadow-card);
  text-align:center;
}
.ring-center strong{ font-family: 'Baloo 2', var(--font-display); font-size: 30px; color: var(--ink); }
.ring-center span{ font-family: var(--font-mono); font-size: 10.5px; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-muted); margin-top:4px; }

.ring-badge{
  position:absolute;
  width: 58px; height:58px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -12px rgba(31,27,22,0.3);
  z-index: 3;
}
.ring-badge svg{ width:24px; height:24px; }
.ring-badge.b1{ top: -4%; right: 8%; background: var(--pink); color:#fff; }
.ring-badge.b2{ bottom: 2%; left: -2%; background: var(--accent); color: var(--ink); }
.ring-badge.b3{ bottom: -2%; right: 2%; background: var(--blue); color: #fff; }

/* ---------- flow / feature section ---------- */
.flow-new{
  padding: 70px 0 90px;
  text-align: center;
}
.flow-chips{
  display:flex; justify-content:center; gap: 12px; margin-bottom: 30px;
}
.flow-chip{
  width: 56px; height:56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-card);
}
.flow-chip svg{ width:24px; height:24px; }
.flow-chip.c-pink{ color: var(--pink); }
.flow-chip.c-gold{ color: var(--accent-dark); }
.flow-chip.c-blue{ color: var(--blue); }

.flow-new h2{
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  max-width: 15ch;
  margin: 0 auto;
  line-height: 1.1;
}
.flow-new p.lede{
  max-width: 50ch;
  margin: 18px auto 0;
  color: var(--ink-muted);
  font-size: 16.5px;
}
.flow-new .btn-primary{ margin-top: 30px; }

.flow-tree{
  margin-top: 56px;
  position: relative;
}
.flow-tree::before{
  content:"";
  position:absolute;
  left:50%; top:0;
  width:1px; height:34px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.flow-branches{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 860px){ .flow-branches{ grid-template-columns: repeat(2,1fr); } }
.flow-branch{
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}
.flow-branch::before{
  content:"";
  position:absolute;
  top:-34px; left:50%;
  width:1px; height:34px;
  background: var(--line-strong);
}
.flow-branch .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--accent);
  margin-bottom: 10px;
}
.flow-branch strong{ display:block; font-size: 14.5px; color: var(--ink); }
.flow-branch span{ display:block; font-size: 13px; color: var(--ink-muted); margin-top:4px; }

/* ---------- dark CTA section ---------- */
.cta-dark{ padding: 20px 0 90px; }
.cta-dark-card{
  position: relative;
  background: #16130F;
  border-radius: var(--radius-lg);
  padding: 84px 32px;
  text-align: center;
  overflow: hidden;
}
.cta-dark-card h2{
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.14;
  position: relative;
  z-index: 2;
}
.cta-dark-card .mark{ transform: rotate(-1deg); }
.cta-dark-card p.lede{
  color: #C9C2B4;
  max-width: 44ch;
  margin: 18px auto 0;
  position: relative;
  z-index: 2;
}
.cta-dark-card .hero-actions{ justify-content:center; margin-top: 30px; position:relative; z-index:2; }
.cta-dark-card .btn-ghost{
  background: transparent;
  border-color: #3A362E;
  color: #fff;
}
.cta-dark-card .btn-ghost:hover{ background: #221E17; }

.blob{
  position:absolute;
  width: 150px; height:150px;
  background: #221E17;
  z-index: 1;
  will-change: border-radius, transform;
  animation: blobMorph 10s ease-in-out infinite alternate;
}
.blob::after{
  content:"";
  position:absolute;
  width:8px; height:8px;
  border-radius:50%;
  background: var(--pink);
}
.blob.b-tl{ top:-40px; left:-40px; border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
.blob.b-tl::after{ bottom: 46px; left: 60px; }
.blob.b-tr{ top:-40px; right:-40px; border-radius: 60% 40% 40% 60% / 40% 50% 50% 60%; animation-delay: 2s; }
.blob.b-tr::after{ bottom: 46px; right: 60px; }
.blob.b-bl{ bottom:-40px; left:-40px; border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; animation-delay: 4s; }
.blob.b-bl::after{ top: 46px; left: 60px; }
.blob.b-br{ bottom:-40px; right:-40px; border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; animation-delay: 6s; }
.blob.b-br::after{ top: 46px; right: 60px; }

@keyframes blobMorph {
  0%, 100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
  50% { border-radius: 65% 35% 35% 65% / 35% 65% 65% 35%; }
}

@media (max-width: 700px){
  .blob{ width: 100px; height:100px; }
  .cta-dark-card{ padding: 60px 22px; }
}

/* ---------- language switcher ---------- */
.lang-switcher{
  position: relative;
  z-index: 60;
}
.lang-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lang-btn:hover{
  border-color: var(--accent);
  background: var(--bg-tint);
  box-shadow: 0 2px 8px rgba(212,168,0,0.12);
}
.lang-btn svg{ flex: none; }
.lang-chevron{
  transition: transform .2s ease;
}
.lang-switcher.is-open .lang-chevron{
  transform: rotate(180deg);
}
.lang-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px -8px rgba(31,27,22,0.18);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.lang-switcher.is-open .lang-dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.lang-option:hover{
  background: var(--bg-tint);
  color: var(--ink);
}
.lang-option.is-active{
  background: var(--bg-tint-2);
  color: var(--accent-dark);
}
.lang-option.is-active::after{
  content: "✓";
  margin-left: auto;
  font-size: 13px;
  color: var(--accent-dark);
}

@media (max-width: 860px){
  .hero-new{
    padding: 50px 0 70px;
  }
  .hero-new h1{
    font-size: clamp(26px, 6.5vw, 42px);
    line-height: 1.18;
  }
  .hero-new p.lede{
    font-size: 14.5px;
    margin-top: 14px;
    line-height: 1.5;
  }
  .hero-actions{
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
  }
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .float-tile{
    opacity: 0.25;
    transform: scale(0.65);
  }
  .split-grid{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .split-grid h2{
    font-size: clamp(22px, 5.5vw, 34px);
    line-height: 1.25;
  }
  .ring-wrap{
    margin: 0 auto;
    transform: scale(0.8);
  }
}

@media (max-width: 600px){
  .mark{
    display: inline-block;
    padding: 3px 10px 4px;
    border-radius: 8px;
    font-size: 0.96em;
    transform: rotate(-0.5deg);
    margin: 2px 0;
    box-shadow: 0 2px 8px rgba(212,168,0,0.2);
  }
  .model-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .model-card{
    padding: 20px 18px;
    gap: 10px;
  }
  .flow-branches{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .flow-branch::before{
    display: none;
  }
  .cta-dark-card{
    padding: 36px 18px;
    border-radius: 24px;
  }
  .cta-dark-card h2{
    font-size: clamp(22px, 5.5vw, 32px);
    line-height: 1.2;
  }
  .blob{
    width: 80px;
    height: 80px;
  }
}



/* ==========================================================================
   EMBEDDED FEATURE PANEL (UNIFIED WORKSPACE)
   ========================================================================== */

/* In studio mode: the main header becomes a solid, clean docked bar (no floating pill gaps) */
body.is-embedding {
  background: #f8fafc;
}

body.is-embedding .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

body.is-embedding .site-header .wrap {
  box-shadow: none !important;
  border: none !important;
  height: 60px;
  border-radius: 0;
  max-width: 1560px;
  padding: 0 20px;
}

body.is-embedding .site-header .btn-dark {
  display: none !important;
}

.embed-panel {
  padding: 10px 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Full Width from Frame 0: no transition animation, no delayed expansion */
.embed-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.embed-panel-inner.is-compact {
  max-width: 1560px !important;
  margin: 0 auto !important;
}

/* Slim Studio Toolbar: clean breadcrumb + status badge on left, tools on right */
.embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  min-height: 42px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.embed-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.embed-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all .16s ease;
}

.embed-back:hover {
  background: var(--bg-tint, #fff8e7);
  border-color: var(--accent, #d4a800);
  color: var(--accent-dark, #a98300);
}

.embed-divider {
  color: rgba(0, 0, 0, 0.2);
  font-size: 13px;
}

.embed-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink, #1f2937);
  letter-spacing: -0.01em;
}

.embed-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.embed-status-badge.status-active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.embed-status-badge.status-native {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.embed-status-badge.status-pending {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.embed-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.embed-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all .16s ease;
}

.embed-action-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.18);
}

.embed-action-btn.is-active {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.embed-frame-wrapper {
  position: relative;
  width: 100%;
}

.embed-frame {
  width: 100%;
  height: calc(100vh - 128px);
  min-height: 760px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  display: block;
}

/* Fullscreen mode: maximizes to 100% of browser viewport */
.embed-panel.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f8fafc;
  padding: 8px 12px 12px;
  margin: 0;
  height: 100vh;
  box-sizing: border-box;
}

.embed-panel.is-fullscreen .embed-panel-inner {
  max-width: 100% !important;
  padding: 0 !important;
  height: 100%;
  gap: 8px;
}

.embed-panel.is-fullscreen .embed-frame-wrapper {
  flex: 1 1 auto;
  height: calc(100% - 46px);
}

.embed-panel.is-fullscreen .embed-frame {
  height: 100%;
  min-height: 0;
  border-radius: 10px;
}

body.is-embedding .landing-content {
  display: none !important;
}

@media (max-width: 960px) {
  .embed-panel {
    padding: 8px 0 16px;
  }

  .embed-panel-inner {
    padding: 0 10px;
  }

  .embed-frame {
    height: calc(100vh - 110px);
    min-height: 580px;
    border-radius: 10px;
  }
}

/* ---------- LANDING CONTENT CONSISTENCY (MATCHING 1560px STUDIO WORKBENCH) ---------- */
.landing-content .wrap {
  max-width: 1560px;
  padding: 0 20px;
  margin: 0 auto;
}

.site-footer .wrap {
  max-width: 1560px;
  padding: 0 20px;
  margin: 0 auto;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

body.landing .site-header .brand,
.site-header .brand {
  margin-right: 36px !important;
}

body.landing .site-header .nav-links,
.site-header .nav-links {
  margin-right: auto !important;
}

body.landing .site-header .nav-actions,
.site-header .nav-actions {
  margin-left: auto !important;
}
