
:root{
  --bg:#070a12;
  --surface:#0d1220;
  --surface2:#111827;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --text:#f5f7fb;
  --muted:#9299aa;
  --purple:#7967ff;
  --purple2:#9b8cff;
  --cyan:#5eead4;
  --green:#5ef0a5;
  --max:1180px;
}

*{
  box-sizing:border-box;
}

html{
}

body{
  margin:0;
  background:
    radial-gradient(circle at 80% 5%,
      rgba(85,67,255,.10),transparent 27%),
    var(--bg);
  color:var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

button{
  color:inherit;
}

.ambient{
  position:fixed;
  border-radius:50%;
  filter:blur(120px);
  pointer-events:none;
  z-index:-1;
  opacity:.12;
}

.ambient-one{
  width:420px;
  height:420px;
  background:#624cff;
  top:20%;
  right:-240px;
}

.ambient-two{
  width:360px;
  height:360px;
  background:#00b7a5;
  top:68%;
  left:-260px;
}


/* NAV */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(7,10,18,.72);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.nav{
  width:min(calc(100% - 48px),var(--max));
  height:78px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  font-size:22px;
  font-weight:800;
  letter-spacing:-1px;
}

.brand span,
footer strong span{
  color:var(--purple2);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
}

.nav-links a{
  color:#aeb4c3;
  font-size:14px;
  transition:.2s;
}

.nav-links a:hover{
  color:#fff;
}

.nav-ai{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 15px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.nav-ai span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px var(--green);
}


/* GLOBAL */

main{
  width:min(calc(100% - 48px),var(--max));
  margin:auto;
}

section{
  scroll-margin-top:100px;
}

.kicker{
  color:var(--purple2);
  font-size:11px;
  font-weight:800;
  letter-spacing:2.4px;
}

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:36px;
}

.section-title h2{
  margin:9px 0 0;
  font-size:clamp(38px,5vw,62px);
  line-height:1;
  letter-spacing:-3px;
}

.section-title > p{
  width:300px;
  margin:0;
  color:var(--muted);
  line-height:1.6;
}


/* HERO */

.hero{
  min-height:calc(100vh - 78px);
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:center;
  gap:68px;
  padding:72px 0 88px;
}

.availability{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#b5bbca;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.8px;
}

.availability span{
  width:8px;
  height:8px;
  background:var(--green);
  border-radius:50%;
  box-shadow:0 0 16px rgba(94,240,165,.7);
}

.hero h1{
  margin:26px 0 25px;
  font-size:clamp(70px,8vw,112px);
  line-height:.82;
  letter-spacing:-7px;
}

.hero h1 em{
  color:var(--purple2);
  font-style:normal;
}

.hero-lead{
  max-width:570px;
  margin:0;
  color:#b2b8c7;
  font-size:20px;
  line-height:1.65;
}

.hero-actions{
  display:flex;
  gap:12px;
  margin-top:34px;
}

.button{
  min-height:52px;
  padding:0 20px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  font-size:14px;
  font-weight:750;
  transition:.25s;
}

.button-primary{
  background:var(--purple);
  box-shadow:0 10px 40px rgba(121,103,255,.22);
}

.button-primary:hover{
  transform:translateY(-2px);
  background:#8777ff;
}

.button-secondary{
  border:1px solid var(--line2);
  color:#c8cdd8;
}

.button-secondary:hover{
  background:rgba(255,255,255,.04);
}

.now-learning{
  margin-top:45px;
  display:flex;
  align-items:center;
  gap:14px;
}

.learning-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--purple2);
  background:rgba(255,255,255,.025);
}

.now-learning small{
  display:block;
  margin-bottom:4px;
  color:#697083;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.5px;
}

.now-learning strong{
  color:#d7dbe4;
  font-size:13px;
}

.hero-visual{
  position:relative;
  height:min(680px,72vh);
  min-height:520px;
  overflow:hidden;
  border:1px solid var(--line2);
  border-radius:30px;
  background:#111827;
  box-shadow:0 35px 90px rgba(0,0,0,.35);
}

.hero-visual img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:64% center;
  transition:transform 1s cubic-bezier(.2,.8,.2,1);
}

.hero-visual:hover img{
  transform:scale(1.025);
}

.visual-gradient{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(5,8,15,.08) 40%,
      rgba(5,8,15,.75) 100%);
}

.visual-label{
  position:absolute;
  top:22px;
  left:22px;
  z-index:3;
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 13px;
  border-radius:999px;
  background:rgba(7,10,18,.64);
  border:1px solid rgba(255,255,255,.15);
  backdrop-filter:blur(14px);
  font-size:10px;
  font-weight:800;
  letter-spacing:1.5px;
}

.visual-label span{
  color:var(--purple2);
}

.visual-card{
  position:absolute;
  z-index:3;
  left:24px;
  right:24px;
  bottom:24px;
  padding:18px 20px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(8,11,20,.62);
  border-radius:17px;
  backdrop-filter:blur(18px);
}

.visual-card small{
  display:block;
  margin-bottom:6px;
  color:#8b92a3;
  font-size:9px;
  letter-spacing:1.6px;
}

.visual-card strong{
  font-size:15px;
}


/* BENTO */

.world{
  padding:110px 0;
}

.bento{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  grid-template-rows:repeat(2,260px);
  gap:14px;
}

.bento-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:28px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.018));
  transition:.3s;
}

.bento-card:hover{
  transform:translateY(-4px);
  border-color:rgba(155,140,255,.45);
}

.bento-ai{
  grid-row:1 / 3;
  background:
    radial-gradient(circle at 75% 20%,
      rgba(121,103,255,.20),transparent 35%),
    linear-gradient(145deg,#101525,#0b101c);
}

.card-top{
  display:flex;
  justify-content:space-between;
}

.card-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  color:var(--purple2);
  background:rgba(255,255,255,.03);
}

.number{
  color:#4c5363;
  font-size:11px;
}

.bento-card small{
  color:#7d8495;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.7px;
}

.bento-card h3{
  margin:9px 0 11px;
  max-width:520px;
  font-size:clamp(25px,3vw,44px);
  line-height:1.05;
  letter-spacing:-2px;
}

.bento-card p{
  max-width:430px;
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.bento-card > a{
  color:#c9c1ff;
  font-size:13px;
  font-weight:700;
}


/* AI */

.ai-section{
  padding:120px 0;
  display:grid;
  grid-template-columns:.65fr 1.35fr;
  gap:70px;
  align-items:start;
}

.ai-intro{
  position:sticky;
  top:130px;
}

.ai-intro h2{
  margin:17px 0 25px;
  font-size:clamp(60px,7vw,94px);
  line-height:.83;
  letter-spacing:-6px;
}

.ai-intro h2 em{
  color:var(--purple2);
  font-style:normal;
}

.ai-intro p{
  max-width:340px;
  color:var(--muted);
  line-height:1.65;
}

.ai-powered{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:28px;
  color:#71798a;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.6px;
}

.ai-powered i,
.console-identity i,
.project-status i{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px rgba(94,240,165,.8);
}

.ai-console{
  overflow:hidden;
  border:1px solid var(--line2);
  border-radius:26px;
  background:#0c111e;
  box-shadow:0 35px 100px rgba(0,0,0,.30);
}

.console-header{
  min-height:78px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.console-identity{
  display:flex;
  align-items:center;
  gap:12px;
}

.bot-avatar{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:white;
  background:linear-gradient(135deg,#6654ff,#9b8cff);
}

.console-identity strong{
  display:block;
  font-size:14px;
}

.console-identity span{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
  color:#747c8d;
  font-size:10px;
}

.console-identity i{
  width:5px;
  height:5px;
}

.new-chat{
  padding:9px 12px;
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:10px;
  background:transparent;
  color:#aeb5c4;
  font-size:11px;
}

.chat-messages{
  min-height:390px;
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.message{
  max-width:78%;
  padding:15px 17px;
  border-radius:17px;
  line-height:1.55;
  font-size:14px;
}

.message strong{
  display:block;
  margin-bottom:7px;
  font-size:10px;
  letter-spacing:.5px;
}

.ai-message{
  align-self:flex-start;
  background:#151c2d;
  border:1px solid rgba(255,255,255,.08);
  color:#e5e8ef;
}

.ai-message strong{
  color:#9f94ff;
}

.user-message{
  align-self:flex-end;
  background:linear-gradient(135deg,#6755e8,#7665ff);
  color:white;
}

.user-message strong{
  color:rgba(255,255,255,.65);
}

.typing{
  opacity:.65;
}

.prompt-chips{
  display:flex;
  gap:8px;
  padding:0 22px 17px;
  overflow-x:auto;
  scrollbar-width:none;
}

.prompt-chips::-webkit-scrollbar{
  display:none;
}

.prompt-chips button{
  flex:0 0 auto;
  padding:9px 12px;
  cursor:pointer;
  white-space:nowrap;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:#aeb5c4;
  font-size:11px;
  transition:.2s;
}

.prompt-chips button:hover{
  border-color:rgba(155,140,255,.45);
  color:white;
}

.chat-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:0 22px 18px;
}

.chat-form input{
  min-width:0;
  height:58px;
  padding:0 18px;
  outline:none;
  border:1px solid var(--line2);
  border-radius:15px;
  background:#080c15;
  color:white;
  font-size:15px;
  transition:.2s;
}

.chat-form input:focus{
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(121,103,255,.10);
}

.chat-form button{
  min-width:104px;
  height:58px;
  cursor:pointer;
  border:0;
  border-radius:15px;
  background:var(--purple);
  color:white;
  font-weight:800;
}

.chat-form button:disabled,
.chat-form input:disabled{
  opacity:.55;
}

.ai-disclaimer{
  margin:0;
  padding:0 22px 20px;
  color:#555d6e;
  text-align:center;
  font-size:10px;
}


/* PROJECTS */

.projects-section{
  padding:110px 0;
}

.project-feature{
  min-height:330px;
  display:grid;
  grid-template-columns:80px 1fr auto;
  gap:30px;
  padding:34px;
  border:1px solid var(--line);
  border-radius:25px;
  background:
    radial-gradient(circle at 90% 20%,
      rgba(121,103,255,.13),transparent 35%),
    #0c111d;
}

.project-number{
  color:#4e5565;
  font-size:11px;
}

.project-content{
  align-self:center;
  max-width:620px;
}

.project-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:#778092;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.5px;
}

.project-content h3{
  margin:13px 0;
  font-size:clamp(38px,5vw,65px);
  letter-spacing:-3px;
}

.project-content p{
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

.project-tags{
  display:flex;
  gap:8px;
  margin-top:22px;
}

.project-tags span{
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#8991a2;
  font-size:10px;
}

.project-symbol{
  align-self:start;
  font-size:25px;
  color:#7466dc;
}


/* BLOG */

.blog-section{
  padding:110px 0 150px;
}

.blog-card{
  display:grid;
  grid-template-columns:130px 1fr auto;
  gap:30px;
  padding:32px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.blog-meta{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#656d7e;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.3px;
}

.blog-content h3{
  max-width:650px;
  margin:0;
  font-size:clamp(30px,4vw,48px);
  line-height:1.05;
  letter-spacing:-2px;
}

.blog-content p{
  max-width:600px;
  margin:18px 0 0;
  color:var(--muted);
  line-height:1.6;
}

.blog-arrow{
  font-size:22px;
  color:var(--purple2);
}


/* FOOTER */

footer{
  width:min(calc(100% - 48px),var(--max));
  margin:auto;
  padding:40px 0 55px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  border-top:1px solid var(--line);
}

footer strong{
  font-size:20px;
}

footer p,
footer a{
  color:#666e7f;
  font-size:11px;
}


/* ================= MOBILE ================= */

@media(max-width:760px){

  .nav{
    width:calc(100% - 32px);
    height:66px;
  }

  .nav-links{
    display:none;
  }

  .brand{
    font-size:20px;
  }

  .nav-ai{
    padding:9px 12px;
  }

  main{
    width:calc(100% - 32px);
  }

  .hero{
    min-height:auto;
    display:flex;
    flex-direction:column;
    gap:36px;
    padding:48px 0 80px;
  }

  .hero-copy{
    order:1;
  }

  .hero-visual{
    order:2;
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:4 / 5;
    border-radius:24px;
  }

  .hero-visual img{
    object-position:63% center;
  }

  .hero h1{
    margin:22px 0;
    font-size:clamp(66px,21vw,90px);
    line-height:.83;
    letter-spacing:-6px;
  }

  .hero-lead{
    font-size:17px;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .button{
    width:100%;
  }

  .now-learning{
    margin-top:30px;
  }

  .visual-card{
    left:14px;
    right:14px;
    bottom:14px;
  }

  .visual-label{
    top:14px;
    left:14px;
  }


  .world,
  .projects-section{
    padding:85px 0;
  }

  .section-title{
    display:block;
  }

  .section-title h2{
    font-size:46px;
    letter-spacing:-3px;
  }

  .section-title > p{
    width:auto;
    margin-top:17px;
  }

  .bento{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:none;
  }

  .bento-card,
  .bento-ai{
    grid-row:auto;
    min-height:240px;
  }

  .bento-ai{
    min-height:330px;
  }


  .ai-section{
    display:block;
    padding:85px 0;
  }

  .ai-intro{
    position:static;
    margin-bottom:35px;
  }

  .ai-intro h2{
    font-size:68px;
    letter-spacing:-5px;
  }

  .ai-console{
    width:100%;
    border-radius:22px;
  }

  .console-header{
    padding:0 15px;
  }

  .chat-messages{
    min-height:330px;
    max-height:480px;
    padding:18px 14px;
  }

  .message{
    max-width:88%;
    padding:14px 15px;
    font-size:14px;
  }

  .prompt-chips{
    padding:0 14px 14px;
  }

  .chat-form{
    padding:0 14px 14px;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
  }

  .chat-form input{
    height:54px;
    padding:0 13px;
    font-size:16px;
  }

  .chat-form button{
    min-width:76px;
    height:54px;
  }

  .chat-form button span{
    display:none;
  }

  .ai-disclaimer{
    padding:0 15px 18px;
    line-height:1.5;
  }


  .project-feature{
    min-height:390px;
    display:block;
    padding:25px;
  }

  .project-content{
    margin-top:50px;
  }

  .project-content h3{
    font-size:43px;
  }

  .project-symbol{
    position:absolute;
  }


  .blog-card{
    display:block;
  }

  .blog-meta{
    margin-bottom:30px;
  }

  .blog-content h3{
    font-size:35px;
  }

  .blog-arrow{
    display:block;
    margin-top:30px;
  }


  footer{
    width:calc(100% - 32px);
    display:block;
  }

  footer a{
    display:inline-block;
    margin-top:25px;
  }

}

@media(prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto !important;
    transition:none !important;
  }
}


/* ==========================================
   Sobhan AI rich responses
========================================== */

.message-content{
  min-width:0;
  overflow-wrap:anywhere;
}

.message-content p{
  margin:0 0 10px;
}

.message-content p:last-child{
  margin-bottom:0;
}

.message-content strong{
  display:inline;
  margin:0;
  color:inherit;
  font-size:inherit;
  letter-spacing:normal;
  font-weight:800;
}

.message-content em{
  color:#c9c1ff;
}

.message-content ul,
.message-content ol{
  margin:9px 0 12px;
  padding-left:22px;
}

.message-content li{
  margin:5px 0;
}

.message-content > code{
  padding:2px 6px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:6px;
  background:#080c15;
  color:#a99fff;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size:.9em;
}

.ai-gap{
  height:5px;
}

.code-block{
  margin:12px 0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  background:#070a11;
}

.code-head{
  height:36px;
  padding:0 11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:#0d1220;
}

.code-head span{
  color:#727b8d;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.copy-code{
  padding:5px 8px;
  cursor:pointer;
  border:0;
  border-radius:6px;
  background:rgba(255,255,255,.06);
  color:#aeb5c4;
  font-size:9px;
}

.code-block pre{
  margin:0;
  padding:15px;
  overflow-x:auto;
}

.code-block pre code{
  color:#d7dbea;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size:12px;
  line-height:1.65;
  white-space:pre;
}

@media(max-width:760px){

  .message-content ul,
  .message-content ol{
    padding-left:19px;
  }

  .code-block{
    margin-left:-5px;
    margin-right:-5px;
  }

  .code-block pre{
    padding:12px;
  }

  .code-block pre code{
    font-size:11px;
  }
}


/* ======================================================
   AI LAB
====================================================== */

.ai-tools{
  max-width:1180px;
  margin:0 auto;
  padding:110px 32px;
}


.ai-tools-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:38px;
}


.ai-tools-head h2{
  max-width:680px;
  margin:8px 0 12px;
  font-size:clamp(38px,5vw,68px);
  line-height:.98;
  letter-spacing:-3px;
}


.ai-tools-head p{
  max-width:570px;
  margin:0;
  color:#8f97a8;
  font-size:16px;
  line-height:1.7;
}


.lab-live{
  flex:none;
  display:flex;
  align-items:center;
  gap:9px;

  padding:10px 14px;

  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;

  color:#8f97a8;

  font-size:10px;
  font-weight:700;
  letter-spacing:1.2px;
}


.lab-live i,
.console-ready i{
  width:7px;
  height:7px;
  display:block;

  border-radius:50%;

  background:#4ef2ae;

  box-shadow:
    0 0 14px rgba(78,242,174,.7);
}


.tool-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}


.tool-card{
  position:relative;

  min-height:285px;
  padding:24px;

  display:flex;
  flex-direction:column;
  align-items:flex-start;

  text-align:left;

  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  color:#fff;

  cursor:pointer;

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}


.tool-card:hover{
  transform:translateY(-4px);

  border-color:
    rgba(125,105,255,.55);
}


.tool-card.active{
  border-color:
    rgba(125,105,255,.8);

  background:
    linear-gradient(
      145deg,
      rgba(116,92,255,.16),
      rgba(255,255,255,.02)
    );
}


.tool-number{
  position:absolute;
  top:20px;
  right:20px;

  color:#555e70;

  font-family:monospace;
  font-size:11px;
}


.tool-icon{
  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  margin-bottom:42px;

  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;

  background:#111726;

  color:#8b78ff;

  font-size:20px;
}


.tool-card strong{
  margin-bottom:10px;

  font-size:20px;
  letter-spacing:-.5px;
}


.tool-card small{
  max-width:290px;

  color:#858d9e;

  font-size:13px;
  line-height:1.65;
}


.tool-action{
  margin-top:auto;
  padding-top:28px;

  color:#8173ff;

  font-size:10px;
  font-weight:800;
  letter-spacing:1px;
}


.lab-console{
  position:relative;

  margin-top:14px;
  padding:26px;

  overflow:hidden;

  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;

  background:#090e18;
}


.lab-console::before{
  content:"";

  position:absolute;

  width:300px;
  height:180px;

  right:-80px;
  top:-100px;

  background:
    rgba(111,87,255,.16);

  filter:blur(70px);

  pointer-events:none;
}


.console-top{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:22px;
}


.console-label{
  display:block;

  margin-bottom:5px;

  color:#596174;

  font-size:9px;
  font-weight:800;
  letter-spacing:1.5px;
}


.console-top strong{
  font-size:14px;
}


.console-ready{
  display:flex;
  align-items:center;
  gap:7px;

  color:#697286;

  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
}


.lab-input-row{
  position:relative;

  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}


#labInput{
  width:100%;
  min-width:0;

  padding:17px 18px;

  outline:none;

  border:1px solid #222b3d;
  border-radius:13px;

  background:#070b13;

  color:#fff;

  font:inherit;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}


#labInput:focus{
  border-color:#7766ff;

  box-shadow:
    0 0 0 3px rgba(119,102,255,.10);
}


#labRun{
  min-width:135px;

  padding:0 20px;

  border:0;
  border-radius:13px;

  background:#7867ff;

  color:white;

  font-weight:800;

  cursor:pointer;

  transition:
    transform .2s ease,
    filter .2s ease;
}


#labRun:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
}


.lab-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;

  margin-top:12px;
}


.lab-suggestions button{
  padding:8px 11px;

  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;

  background:rgba(255,255,255,.025);

  color:#747d90;

  font-size:10px;

  cursor:pointer;
}


.lab-suggestions button:hover{
  color:#fff;
  border-color:rgba(119,102,255,.45);
}


.lab-hint{
  margin:17px 0 0;

  color:#50586a;

  font-size:10px;
}


.lab-shake{
  animation:labShake .35s ease;
}


@keyframes labShake{

  0%,100%{
    transform:translateX(0);
  }

  25%{
    transform:translateX(-5px);
  }

  75%{
    transform:translateX(5px);
  }

}


@media(max-width:800px){

  .ai-tools{
    padding:
      78px 20px;
  }


  .ai-tools-head{
    display:block;
  }


  .ai-tools-head h2{
    font-size:42px;
    letter-spacing:-2px;
  }


  .lab-live{
    width:max-content;
    margin-top:20px;
  }


  .tool-grid{
    grid-template-columns:1fr;
  }


  .tool-card{
    min-height:215px;
  }


  .tool-icon{
    margin-bottom:25px;
  }


  .lab-console{
    padding:18px;
  }


  .lab-input-row{
    grid-template-columns:1fr;
  }


  #labInput{
    min-height:54px;
    font-size:16px;
  }


  #labRun{
    min-height:52px;
  }

}



/* ======================================================
   Sobhan AI response polish
====================================================== */

.ai-heading{
  margin:
    18px 0 9px;

  color:#f5f6fb;

  line-height:1.25;
  letter-spacing:-.4px;
}


.message-content .ai-heading:first-child{
  margin-top:0;
}


.ai-h1{
  font-size:22px;
}


.ai-h2{
  font-size:19px;
}


.ai-h3{
  font-size:16px;
}


.ai-message{
  position:relative;
}


.ai-message .message-content{
  position:relative;
}


.ai-message .message-content.ai-collapsed{
  overflow:hidden;
}


.ai-message .message-content.ai-collapsed::after{
  content:"";

  position:absolute;

  left:0;
  right:0;
  bottom:0;

  height:110px;

  pointer-events:none;

  background:
    linear-gradient(
      to bottom,
      rgba(24,30,46,0),
      rgba(24,30,46,.96) 78%
    );
}


.ai-message .message-content.ai-expanded{
  max-height:none;
  overflow:visible;
}


.ai-expand{
  width:100%;

  margin-top:12px;
  padding:11px 14px;

  border:
    1px solid rgba(124,105,255,.25);

  border-radius:10px;

  background:
    rgba(124,105,255,.07);

  color:#a99cff;

  font-size:11px;
  font-weight:700;

  cursor:pointer;

  transition:
    background .2s ease,
    border-color .2s ease;
}


.ai-expand:hover{
  background:
    rgba(124,105,255,.12);

  border-color:
    rgba(124,105,255,.45);
}


@media(max-width:760px){

  .ai-h1{
    font-size:20px;
  }

  .ai-h2{
    font-size:18px;
  }

  .ai-h3{
    font-size:15px;
  }

  .ai-message .message-content.ai-collapsed{
    max-height:430px;
  }

  .ai-message .message-content.ai-collapsed::after{
    height:90px;
  }

}



/* ======================================================
   Sobhan AI long answer — FIX
====================================================== */

#chatMessages .ai-message.long-ai-answer{
  position:relative;
}

#chatMessages .ai-message.long-ai-answer.is-collapsed{
  max-height:520px !important;
  overflow:hidden !important;
}

#chatMessages .ai-message.long-ai-answer.is-collapsed::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:130px;
  pointer-events:none;

  background:
    linear-gradient(
      to bottom,
      rgba(24,30,46,0),
      rgba(24,30,46,.98) 82%
    );
}

#chatMessages .ai-message.long-ai-answer.is-expanded{
  max-height:none !important;
  overflow:visible !important;
}

.long-answer-toggle{
  display:block;
  width:100%;
  margin:10px 0 4px;
  padding:13px 16px;

  border:
    1px solid rgba(124,105,255,.32);

  border-radius:12px;

  background:
    rgba(124,105,255,.09);

  color:#b7adff;

  font:inherit;
  font-size:13px;
  font-weight:700;

  cursor:pointer;
}

@media(max-width:760px){

  #chatMessages .ai-message.long-ai-answer.is-collapsed{
    max-height:390px !important;
  }

  #chatMessages .ai-message.long-ai-answer.is-collapsed::after{
    height:100px;
  }

}


/* ======================================================
   HEYSOBHAN — FLUID UX PASS
====================================================== */

html{
  scroll-padding-top:110px;
}

body{
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

main > section{
  scroll-margin-top:110px;
}

/* ---------- smooth section rhythm ---------- */

.hero,
.world,
.live-ai,
#projects,
#blog{
  position:relative;
}

section{
  transition:
    opacity .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
}

/* ---------- buttons ---------- */

button,
.button,
a.button,
.prompt-chips button{
  -webkit-tap-highlight-color:transparent;

  transition:
    transform .22s cubic-bezier(.22,1,.36,1),
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    opacity .22s ease;
}

button:active,
.button:active,
a.button:active,
.prompt-chips button:active{
  transform:scale(.97);
}

/* ---------- cards ---------- */

.card,
.project,
.post{
  transition:
    transform .32s cubic-bezier(.22,1,.36,1),
    border-color .32s ease,
    box-shadow .32s ease;
}

@media (hover:hover){

  .card:hover,
  .project:hover,
  .post:hover{
    transform:translateY(-5px);
  }

}

/* ---------- AI panel ---------- */

.live-ai{
  overflow:hidden;
}

.chat-messages{
  overscroll-behavior:contain;
  scrollbar-width:thin;
}

.chat-messages::-webkit-scrollbar{
  width:5px;
}

.chat-messages::-webkit-scrollbar-track{
  background:transparent;
}

.chat-messages::-webkit-scrollbar-thumb{
  background:rgba(139,124,255,.28);
  border-radius:999px;
}

/* messages arrive more naturally */

.message{
  animation:
    sobhanMessageIn .38s
    cubic-bezier(.22,1,.36,1)
    both;
}

@keyframes sobhanMessageIn{

  from{
    opacity:0;
    transform:translateY(10px) scale(.99);
  }

  to{
    opacity:1;
    transform:none;
  }

}

/* ---------- prompt chips ---------- */

.prompt-chips{
  display:flex;
  gap:10px;

  overflow-x:auto;
  overflow-y:hidden;

  padding:
    4px 2px 9px;

  scroll-snap-type:x proximity;

  overscroll-behavior-x:contain;


  scrollbar-width:none;
}

.prompt-chips::-webkit-scrollbar{
  display:none;
}

.prompt-chips button{
  flex:0 0 auto;
  scroll-snap-align:start;
  white-space:nowrap;
}

/* ---------- horizontal masks ---------- */

.prompt-chips{
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 calc(100% - 18px),
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 calc(100% - 18px),
      transparent 100%
    );
}

/* ---------- input ---------- */

.chat-form input{
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.chat-form input:focus{
  outline:none;

  box-shadow:
    0 0 0 3px
    rgba(124,105,255,.10);
}

/* ---------- back to top ---------- */

#backToTop{
  transition:
    opacity .25s ease,
    transform .3s cubic-bezier(.22,1,.36,1),
    background .2s ease;
}

#backToTop:not(.show){
  transform:
    translateY(10px)
    scale(.9);
}

/* ======================================================
   MOBILE
====================================================== */

@media(max-width:760px){

  html{
    scroll-padding-top:92px;
  }

  main > section{
    scroll-margin-top:92px;
  }

  body{
    touch-action:pan-y;
  }

  .live-ai{
    border-radius:24px;
  }

  .chat-messages{

  }

  .prompt-chips{
    margin-left:-2px;
    margin-right:-2px;
  }

  .chat-form{
    gap:10px;
    align-items:stretch;
  }

  .chat-form input{
    min-width:0;
  }

  .chat-form button{
    flex-shrink:0;
  }

}

/* Respect accessibility setting */

@media(prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }

}



/* =========================================================
   HEYSOBHAN — MY WORLD / BENTO
========================================================= */

.world-v2{
  padding-top:clamp(70px,9vw,130px);
  padding-bottom:clamp(70px,9vw,130px);
}

.world-title{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,430px);
  gap:40px;
  align-items:end;
  margin-bottom:34px;
}

.world-title h2{
  margin:8px 0 0;
  font-size:clamp(38px,5vw,72px);
  line-height:.96;
  letter-spacing:-.055em;
}

.world-title > p{
  margin:0;
  color:var(--muted,#9298aa);
  line-height:1.7;
  font-size:15px;
}

.world-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px;
}

.world-card{
  position:relative;
  min-height:290px;
  padding:26px;
  overflow:hidden;

  border:1px solid rgba(255,255,255,.09);
  border-radius:26px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.018)
    );

  color:inherit;
  text-decoration:none;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  isolation:isolate;

  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.world-card::before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-120px;
  top:-130px;
  border-radius:50%;
  background:rgba(119,98,255,.12);
  filter:blur(12px);
  z-index:-1;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}

.world-card-featured{
  grid-column:span 7;
  min-height:370px;
}

.world-card-projects{
  grid-column:span 5;
  min-height:370px;
}

.world-card-games,
.world-card-anime{
  grid-column:span 4;
}

.world-card-building{
  grid-column:span 4;
}

.world-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.world-icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;

  background:rgba(125,105,255,.12);
  border:1px solid rgba(150,136,255,.2);

  color:#a89cff;
  font-size:21px;
}

.world-number{
  color:#62697b;
  font-size:11px;
  letter-spacing:.16em;
}

.world-label{
  display:block;
  margin-bottom:11px;

  color:#8e82ff;
  font-size:11px;
  font-weight:750;
  letter-spacing:.16em;
}

.world-card h3{
  margin:0 0 11px;

  font-size:clamp(25px,3vw,39px);
  line-height:1.03;
  letter-spacing:-.045em;
}

.world-card p{
  max-width:500px;
  margin:0;

  color:#9ca2b4;
  font-size:14px;
  line-height:1.65;
}

.world-arrow{
  position:absolute;
  right:25px;
  bottom:23px;

  display:grid;
  place-items:center;

  width:42px;
  height:42px;

  border-radius:50%;
  border:1px solid rgba(255,255,255,.11);

  color:#c4bdff;
  font-size:17px;

  transition:
    transform .3s cubic-bezier(.22,1,.36,1),
    background .3s ease;
}

.world-coming{
  align-self:flex-start;

  padding:7px 10px;
  margin-top:20px;

  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;

  color:#71788b;

  font-size:9px;
  font-weight:700;
  letter-spacing:.13em;
}

.world-card-building{
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(119,98,255,.15),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,.018)
    );
}

.build-status{
  display:flex;
  align-items:center;
  gap:8px;

  color:#a6adbd;
  font-size:10px;
  font-weight:700;
  letter-spacing:.13em;
}

.build-status span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#54eca5;
  box-shadow:0 0 15px rgba(84,236,165,.65);
}

.build-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.build-orbit{
  position:relative;
  flex:0 0 100px;
  width:100px;
  height:100px;

  display:grid;
  place-items:center;

  border:1px solid rgba(145,128,255,.18);
  border-radius:50%;
}

.build-orbit::before{
  content:"";
  position:absolute;
  inset:15px;
  border:1px solid rgba(145,128,255,.13);
  border-radius:50%;
}

.orbit-core{
  position:relative;
  z-index:2;

  display:grid;
  place-items:center;

  width:43px;
  height:43px;

  border-radius:14px;

  background:#7765ff;
  color:white;

  font-weight:800;

  box-shadow:0 10px 35px rgba(119,101,255,.3);
}

.orbit-dot{
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#7dffba;
}

.orbit-one{
  top:7px;
  left:46px;
}

.orbit-two{
  bottom:17px;
  right:5px;
}

.build-progress{
  margin-top:24px;
}

.progress-meta{
  display:flex;
  justify-content:space-between;
  gap:20px;

  margin-bottom:9px;

  color:#747b8e;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
}

.progress-track{
  height:3px;
  overflow:hidden;

  background:rgba(255,255,255,.06);
  border-radius:999px;
}

.progress-track span{
  display:block;
  width:68%;
  height:100%;

  border-radius:inherit;

  background:
    linear-gradient(
      90deg,
      #7362ff,
      #a28fff
    );
}

@media(hover:hover){

  a.world-card:hover{
    transform:translateY(-6px);

    border-color:
      rgba(139,124,255,.28);

    box-shadow:
      0 24px 70px rgba(0,0,0,.18);
  }

  a.world-card:hover::before{
    transform:scale(1.2);
  }

  a.world-card:hover .world-arrow{
    transform:translate(3px,-3px);
    background:rgba(125,105,255,.12);
  }

}


/* ================= MOBILE ================= */

@media(max-width:760px){

  .world-v2{
    padding-top:70px;
    padding-bottom:70px;
  }

  .world-title{
    display:block;
    margin-bottom:24px;
  }

  .world-title > p{
    margin-top:17px;
    max-width:330px;
  }

  .world-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .world-card-featured,
  .world-card-projects,
  .world-card-games,
  .world-card-anime,
  .world-card-building{
    grid-column:1;
  }

  .world-card{
    min-height:235px;
    padding:22px;
    border-radius:22px;
  }

  .world-card-featured{
    min-height:285px;
  }

  .world-card-projects{
    min-height:250px;
  }

  .world-card h3{
    font-size:29px;
  }

  .world-card p{
    padding-right:20px;
  }

  .world-arrow{
    width:38px;
    height:38px;
    right:20px;
    bottom:19px;
  }

  .world-card-building{
    min-height:310px;
  }

  .build-orbit{
    width:82px;
    height:82px;
    flex-basis:82px;
  }

  .orbit-core{
    width:38px;
    height:38px;
  }

}


/* Accessibility */

@media(prefers-reduced-motion:no-preference){

  .orbit-one{
    animation:sobhanOrbitOne 6s linear infinite;
  }

  .orbit-two{
    animation:sobhanOrbitTwo 8s linear infinite reverse;
  }

  @keyframes sobhanOrbitOne{
    50%{transform:translateX(9px) translateY(5px)}
  }

  @keyframes sobhanOrbitTwo{
    50%{transform:translateX(-8px) translateY(-5px)}
  }

}



/* ======================================================
   HEYSOBHAN — PROJECTS V2
====================================================== */

.projects-v2{
  padding-top:clamp(80px,10vw,145px);
  padding-bottom:clamp(80px,10vw,145px);
}

.projects-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,390px);
  align-items:end;
  gap:40px;

  margin-bottom:34px;
}

.projects-heading h2{
  margin:8px 0 0;

  font-size:clamp(38px,5vw,70px);
  line-height:.97;
  letter-spacing:-.055em;
}

.projects-heading > p{
  margin:0;

  color:#8f96a8;
  font-size:14px;
  line-height:1.7;
}


/* FEATURE */

.project-feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.85fr);

  gap:clamp(35px,6vw,90px);

  align-items:center;

  min-height:540px;

  padding:clamp(30px,5vw,68px);

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:30px;

  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(118,98,255,.13),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.014)
    );

  overflow:hidden;
}


.project-state{
  display:flex;
  align-items:center;
  gap:8px;

  margin-bottom:34px;

  color:#9ca3b5;

  font-size:10px;
  font-weight:750;
  letter-spacing:.15em;
}

.project-state span{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#54eca5;

  box-shadow:
    0 0 16px rgba(84,236,165,.65);
}


.project-index{
  display:block;

  margin-bottom:10px;

  color:#766aff;

  font-size:10px;
  font-weight:750;
  letter-spacing:.16em;
}


.project-feature h3{
  margin:0 0 21px;

  font-size:clamp(42px,6vw,76px);
  line-height:.93;
  letter-spacing:-.06em;
}


.project-intro{
  max-width:590px;

  margin:0;

  color:#a2a8b8;

  font-size:clamp(15px,1.5vw,18px);
  line-height:1.75;
}


.project-tags{
  display:flex;
  flex-wrap:wrap;

  gap:8px;

  margin-top:27px;
}


.project-tags span{
  padding:7px 11px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:999px;

  background:
    rgba(255,255,255,.025);

  color:#969daf;

  font-size:10px;
  font-weight:650;
  letter-spacing:.05em;
}


.project-actions{
  display:flex;
  flex-wrap:wrap;

  gap:10px;

  margin-top:34px;
}


.project-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  gap:18px;

  min-height:48px;

  padding:0 18px;

  border-radius:13px;

  text-decoration:none;

  font-size:12px;
  font-weight:750;

  transition:
    transform .25s cubic-bezier(.22,1,.36,1),
    background .25s ease,
    border-color .25s ease;
}


.primary-project-button{
  background:#7563ff;
  color:white;
}


.secondary-project-button{
  border:
    1px solid rgba(255,255,255,.1);

  color:#b5bac8;

  background:
    rgba(255,255,255,.025);
}


/* TERMINAL */

.project-terminal{
  overflow:hidden;

  border:
    1px solid rgba(255,255,255,.10);

  border-radius:20px;

  background:#090d16;

  box-shadow:
    0 35px 80px rgba(0,0,0,.28);
}


.terminal-bar{
  min-height:53px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  padding:0 17px;

  border-bottom:
    1px solid rgba(255,255,255,.07);

  color:#596173;

  font-size:9px;
  letter-spacing:.09em;
}


.terminal-dots{
  display:flex;
  gap:6px;
}


.terminal-dots i{
  display:block;

  width:7px;
  height:7px;

  border-radius:50%;

  background:#343b49;
}


.terminal-body{
  padding:28px;
}


.terminal-line{
  display:grid;
  grid-template-columns:90px 1fr;

  gap:20px;

  padding:13px 0;

  border-bottom:
    1px solid rgba(255,255,255,.045);
}


.terminal-key{
  color:#555e71;

  font-size:9px;
  letter-spacing:.13em;
}


.terminal-line strong{
  color:#b9bfcd;

  font-size:11px;
  font-weight:550;
}


.terminal-online{
  display:flex;
  align-items:center;
  gap:7px;
}


.terminal-online i{
  display:block;

  width:6px;
  height:6px;

  border-radius:50%;

  background:#52eca4;
}


.terminal-divider{
  height:30px;
}


.terminal-command{
  display:flex;
  align-items:center;
  gap:10px;

  min-height:55px;

  padding:0 16px;

  border:
    1px solid rgba(119,101,255,.12);

  border-radius:12px;

  background:
    rgba(119,101,255,.04);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  font-size:10px;
}


.terminal-command > span{
  color:#7666ff;
}


.terminal-command strong{
  color:#a8afbd;
  font-weight:500;
}


.terminal-cursor{
  display:block;

  width:6px;
  height:14px;

  margin-left:2px;

  background:#7666ff;

  opacity:.8;

  animation:
    terminalBlink 1s steps(2,end) infinite;
}


@keyframes terminalBlink{
  50%{opacity:.1}
}


/* DETAILS */

.project-details{
  display:grid;
  grid-template-columns:repeat(3,1fr);

  margin-top:15px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius:24px;

  overflow:hidden;
}


.project-detail{
  display:grid;
  grid-template-columns:35px 1fr;

  gap:15px;

  min-height:190px;

  padding:27px;

  background:
    rgba(255,255,255,.018);
}


.project-detail + .project-detail{
  border-left:
    1px solid rgba(255,255,255,.07);
}


.project-detail > span{
  color:#555d70;

  font-size:10px;
}


.project-detail small{
  display:block;

  margin-bottom:9px;

  color:#776aff;

  font-size:9px;
  font-weight:750;
  letter-spacing:.15em;
}


.project-detail h4{
  margin:0 0 10px;

  color:#e7e9f0;

  font-size:16px;
}


.project-detail p{
  margin:0;

  color:#858c9e;

  font-size:12px;
  line-height:1.65;
}


/* HOVER */

@media(hover:hover){

  .project-button:hover{
    transform:translateY(-2px);
  }

  .primary-project-button:hover{
    background:#8272ff;
  }

  .secondary-project-button:hover{
    border-color:
      rgba(125,105,255,.3);
  }

}


/* MOBILE */

@media(max-width:760px){

  .projects-v2{
    padding-top:75px;
    padding-bottom:75px;
  }

  .projects-heading{
    display:block;
    margin-bottom:25px;
  }

  .projects-heading > p{
    margin-top:17px;
  }


  .project-feature{
    display:block;

    min-height:0;

    padding:25px 21px;

    border-radius:23px;
  }


  .project-state{
    margin-bottom:27px;
  }


  .project-feature h3{
    font-size:43px;
  }


  .project-intro{
    font-size:15px;
  }


  .project-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }


  .project-button{
    width:100%;
    padding:0 13px;
    gap:8px;
  }


  .project-terminal{
    margin-top:38px;
  }


  .terminal-body{
    padding:20px;
  }


  .terminal-line{
    grid-template-columns:72px 1fr;
  }


  .project-details{
    grid-template-columns:1fr;

    border-radius:21px;
  }


  .project-detail{
    min-height:155px;
    padding:23px;
  }


  .project-detail + .project-detail{
    border-left:0;

    border-top:
      1px solid rgba(255,255,255,.07);
  }

}

.real-post{padding:28px;margin:0 0 14px;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(255,255,255,.025)}
.real-post h3{margin:0 0 12px;font-size:clamp(24px,4vw,38px);letter-spacing:-.035em}
.real-post p{margin:0;color:#969daf;line-height:1.75;white-space:pre-wrap}
/* FIX: one natural page scroll */
.chat-messages,
#chatMessages{
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
  overscroll-behavior:auto !important;
  scroll-behavior:auto !important;
}

.live-ai{
  overflow:visible !important;
}

@media(max-width:760px){
  .chat-messages,
  #chatMessages{
    max-height:none !important;
    overflow:visible !important;
    -webkit-overflow-scrolling:auto !important;
  }
}

/* ==========================================================
   HEYSOBHAN — MOBILE CONSOLIDATION 2026-09-06
   Single final authority for phone layout. Desktop unchanged.
   ========================================================== */
@media (max-width:760px){
  html{scroll-padding-top:78px}
  body{overflow-x:hidden;touch-action:pan-y}
  main{width:calc(100% - 28px)}
  main > section, section{scroll-margin-top:78px}

  .nav{width:calc(100% - 28px);height:64px}
  .brand{font-size:18px;letter-spacing:-.7px}
  .nav-ai{padding:8px 11px;font-size:11px}

  .hero{min-height:0;gap:28px;padding:38px 0 64px}
  .availability{font-size:9px;letter-spacing:1.35px}
  .hero h1{margin:18px 0;font-size:clamp(52px,16.5vw,70px);line-height:.88;letter-spacing:-4px}
  .hero-lead{font-size:16px;line-height:1.58}
  .hero-actions{gap:9px;margin-top:26px}
  .button{min-height:48px;padding:0 16px;border-radius:13px;font-size:13px}
  .now-learning{margin-top:25px;gap:11px}
  .learning-icon{width:38px;height:38px}
  .now-learning strong{font-size:12px}
  .hero-visual{aspect-ratio:4/4.65;border-radius:21px}
  .visual-label{top:12px;left:12px;padding:8px 10px;font-size:9px}
  .visual-card{left:12px;right:12px;bottom:12px;padding:14px 15px;border-radius:14px}

  .world,.world-v2,.projects-section,.projects-v2,.ai-section,.ai-tools,.blog-section{padding-top:64px;padding-bottom:64px}
  .section-title,.world-title,.projects-heading{margin-bottom:22px}
  .section-title h2,.world-title h2,.projects-heading h2{font-size:clamp(36px,11.5vw,46px);line-height:.98;letter-spacing:-2.5px}
  .section-title > p,.world-title > p,.projects-heading > p{margin-top:13px;font-size:14px;line-height:1.6}

  .world-grid{gap:10px}
  .world-card{min-height:210px;padding:19px;border-radius:19px}
  .world-card-featured{min-height:250px}
  .world-card-projects{min-height:225px}
  .world-card-building{min-height:275px}
  .world-icon{width:42px;height:42px;border-radius:13px;font-size:18px}
  .world-card h3{font-size:27px;letter-spacing:-1.3px}
  .world-card p{padding-right:8px;font-size:13px;line-height:1.55}
  .world-arrow{right:17px;bottom:16px;width:35px;height:35px}

  .ai-section{display:block}
  .ai-intro{margin-bottom:25px}
  .ai-intro h2{margin:13px 0 18px;font-size:clamp(48px,15vw,60px);line-height:.88;letter-spacing:-4px}
  .ai-intro p{font-size:14px;line-height:1.6}
  .ai-console{border-radius:18px}
  .console-header{min-height:64px;padding:0 12px}
  .bot-avatar{width:35px;height:35px;border-radius:10px}
  .new-chat{padding:8px 9px;font-size:10px}
  .chat-messages,#chatMessages{min-height:250px !important;max-height:none !important;height:auto !important;padding:14px 11px !important;gap:12px;overflow:visible !important;overscroll-behavior:auto !important;scroll-behavior:auto !important;-webkit-overflow-scrolling:auto !important}
  .message{max-width:92%;padding:12px 13px;border-radius:14px;font-size:13px;line-height:1.5}
  .prompt-chips{gap:7px;margin:0;padding:3px 11px 11px;scroll-snap-type:none;-webkit-mask-image:none;mask-image:none}
  .prompt-chips button{padding:8px 10px;font-size:10px}
  .chat-form{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:0 11px 11px}
  .chat-form input{height:49px;padding:0 12px;border-radius:12px;font-size:16px}
  .chat-form button{min-width:62px;height:49px;border-radius:12px;font-size:12px}
  .ai-disclaimer{padding:0 12px 14px;font-size:9px}
  .long-answer-toggle{padding:10px 12px;font-size:11px}
  #chatMessages .ai-message.long-ai-answer.is-collapsed{max-height:350px !important}

  .ai-tools{padding-left:0;padding-right:0}
  .ai-tools-head h2{font-size:40px;letter-spacing:-2px}
  .tool-grid{gap:10px}
  .tool-card{min-height:190px;padding:19px;border-radius:18px}
  .tool-icon{width:43px;height:43px;margin-bottom:20px}
  .lab-console{padding:15px;border-radius:18px}

  .project-feature{display:block;min-height:0;padding:21px 18px;border-radius:20px}
  .project-state{margin-bottom:22px}
  .project-feature h3{font-size:clamp(36px,11vw,43px);letter-spacing:-2px}
  .project-intro{font-size:14px;line-height:1.65}
  .project-actions{grid-template-columns:1fr;gap:8px;margin-top:25px}
  .project-terminal{margin-top:28px;border-radius:17px}
  .terminal-body{padding:16px}
  .terminal-line{grid-template-columns:62px 1fr;gap:12px;padding:11px 0}
  .project-details{margin-top:10px;border-radius:18px}
  .project-detail{min-height:135px;padding:19px}

  .blog-section{padding-bottom:85px}
  .blog-card{padding:24px 0}
  .blog-meta{margin-bottom:18px}
  .blog-content h3{font-size:30px;letter-spacing:-1.5px}
  .blog-content p{margin-top:13px;font-size:14px;line-height:1.6}
  .real-post{padding:20px 17px;border-radius:18px}
  .real-post h3{font-size:26px}

  footer{width:calc(100% - 28px);padding:30px 0 38px}
}

@media (max-width:390px){
  main,.nav,footer{width:calc(100% - 24px)}
  .hero h1{font-size:clamp(48px,16vw,62px)}
  .chat-form button{min-width:56px}
  .project-actions{grid-template-columns:1fr}
}

