/* Public AI identity. Account workspace keeps its own operational theme. */
.public-site {
  color-scheme: dark;
  --portal-paper: #0b100f;
  --portal-surface: #121917;
  --portal-ink: #edf1eb;
  --portal-muted: #9aa79f;
  --portal-accent: #c7f888;
  --portal-tint: #1c291c;
  --portal-line: #ffffff14;
  --color-base-100: var(--portal-surface);
  --color-base-300: #29342d;
  --color-primary-content: #15200c;
  --color-secondary: #23341c;
  --color-secondary-content: #c7f888;
  --color-neutral: #edf1eb;
  --color-neutral-content: #0b100f;
  --color-error: #ffaaa1;
  color: var(--portal-ink);
}
.public-site .workspace-container { max-width: 1280px; padding-inline: 2.5rem; }
.public-site .app-navbar { height: 5.5rem; padding-inline: max(2.5rem, calc((100vw - 1200px) / 2)); background: #0b100ff2; backdrop-filter: blur(18px); }
.public-site .brand-icon { color: #13200c; background: transparent; border-radius: .65rem; }
.public-site .brand-copy strong { font-size: .95rem; font-weight: 650; }
.public-site .brand-copy small { font-size: .64rem; color: var(--portal-muted); }
.public-site .app-navbar nav { gap: .8rem; }
.public-site .btn { transition: background .2s, border-color .2s, transform .2s; font-weight: 550; border-radius: .5rem; box-shadow: none; }
.public-site .btn-primary { color: #15200c; background: var(--portal-accent); border-color: var(--portal-accent); }
.public-site .btn-primary:hover { background: #d9ffa9; border-color: #d9ffa9; transform: translateY(-2px); }
.public-site .btn-outline { color: var(--portal-ink); border-color: #ffffff28; background: transparent; }
.public-site .btn-outline:hover, .public-site .btn-ghost:hover { background: #ffffff09; border-color: #ffffff40; }
.public-site .app-navbar .btn-ghost { color: #acb7ae; font-size: .78rem; }
.public-site .app-navbar .btn-primary { font-size: .78rem; padding-inline: 1.1rem; }
.public-site .eyebrow { letter-spacing: .14em; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .66rem; font-weight: 500; }
.public-site .live-dot { background: var(--portal-accent); box-shadow: 0 0 10px #c7f88845; }
.product-hero { position: relative; grid-template-columns: minmax(0,1fr) minmax(0,1.03fr); gap: 2rem; padding: 5rem 0 4rem; min-height: 650px; }
.product-hero-copy { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 1.8rem; }
.product-hero h1 { font-size: clamp(3rem,5.05vw,4.5rem); font-weight: 550; line-height: 1.08; letter-spacing: -.066em; margin: 0 0 1.6rem; }
.product-hero h1 span { color: var(--portal-accent); }
.product-lead { font-size: 1rem; max-width: 43ch; line-height: 1.85; color: #a5b0a7; }
.product-hero .hero-actions { margin-top: 1.9rem; gap: .75rem; }
.product-hero .hero-actions .btn { font-size: .82rem; min-height: 3.15rem; padding-inline: 1.2rem; }
.product-hero .hero-actions .btn-outline { gap: 1rem; }
.product-hero-note { display: flex; align-items: center; gap: .5rem; font-size: .69rem; margin-top: 1.25rem; }
.product-hero-note .icon { width: .9rem; height: .9rem; flex-basis: .9rem; color: #a3ba96; }
.hero-mini-facts { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; font-size: .68rem; color: var(--portal-muted); }
.hero-mini-facts strong { color: var(--portal-ink); font-size: .85rem; font-weight: 600; padding-right: .2rem; }
.hero-mini-facts > span:last-child { color: #79877e; padding-left: 1rem; border-left: 1px solid #ffffff20; }
.agent-demo { position: relative; min-width: 0; margin: 0; padding: 1.25rem 1.1rem .8rem; border: 1px solid #c7f8881c; border-radius: 1.25rem; background: radial-gradient(ellipse at 50% 42%, #b0e57c0c, transparent 68%), #101613; box-shadow: 0 32px 70px #00000022; }
.agent-demo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse, #85b9640b, transparent 65%); z-index: -1; pointer-events: none; }
.demo-topline { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font: .58rem ui-monospace, monospace; letter-spacing: .1em; color: #b2bcaf; }
.demo-topline > span:first-child { display: flex; align-items: center; gap: .5rem; }
.demo-example { color: #91a088; font-size: .52rem; }
.agent-scene { position: relative; height: 370px; isolation: isolate; margin-top: .75rem; background-image: radial-gradient(#b9d8a716 .7px, transparent .7px); background-size: 20px 20px; }
.scene-orbit { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 7%; border: 1px solid #b3d99710; border-radius: 50%; z-index: -1; }
.orbit-two { width: 48%; left: 26%; top: 20%; border-style: dashed; transform: rotate(-25deg); }
.scene-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.connection-track { stroke: #5d774a; stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .6; }
.connection-signal { stroke: #c7f888; stroke-width: 2; stroke-dasharray: 15 550; stroke-dashoffset: 565; opacity: 0; }
.connection-point { fill: #c7f888; opacity: .4; }
.robot-halo { position: absolute; width: 200px; height: 200px; background: #bbeb7620; filter: blur(45px); border-radius: 50%; left: calc(50% - 100px); top: 100px; z-index: -1; }
.agent-robot { position: absolute; width: 64%; height: auto; left: 18%; top: 4%; object-fit: contain; filter: drop-shadow(0 20px 20px #00000045); animation: robot-float 6s ease-in-out infinite; pointer-events: none; }
.demo-mail { position: absolute; top: 16px; left: 0; width: 185px; z-index: 2; border-radius: .75rem; border: 1px solid #ffffff21; background: #19201bf5; padding: .9rem; box-shadow: 0 12px 28px #00000020; transform: rotate(-5deg); transition: border-color .4s, transform .6s; }
.demo-mail-label { display: flex; align-items: center; gap: .45rem; color: #b2c7a7; font: .58rem ui-monospace, monospace; letter-spacing: .07em; }
.demo-mail-label .icon { width: .95rem; height: .95rem; flex-basis: .95rem; }
.mail-count { margin-left: auto; color: #c7f888; background: #c7f88813; padding: .15rem .3rem; border-radius: .25rem; }
.demo-mail > strong { display: block; font-size: .75rem; font-weight: 550; margin-top: .75rem; }
.demo-mail > p { font-size: .6rem; color: var(--portal-muted); margin-top: .35rem; }
.demo-attachment { display: flex; align-items: center; gap: .4rem; font: .58rem ui-monospace, monospace; margin-top: .75rem; padding-top: .65rem; border-top: 1px solid #ffffff0e; color: #9fad9c; }
.demo-attachment .icon { width: .8rem; height: .8rem; flex-basis: .8rem; }
.demo-attachment > span { margin-left: auto; font-size: .5rem; }
.agent-bubble { position: absolute; right: .5rem; top: 25%; z-index: 3; font-size: .67rem; background: #c7f888; color: #172312; padding: .65rem .8rem; border-radius: .65rem .65rem .65rem .15rem; box-shadow: 0 4px 18px #00000030; transition: transform .4s; }
.bubble-spark { margin-right: .3rem; }
.demo-mcp { position: absolute; right: 0; bottom: 30px; width: 235px; z-index: 3; background: #141b16f5; border: 1px solid #c7f88830; border-radius: .7rem; box-shadow: 0 16px 24px #00000030; transform: rotate(3deg); transition: border-color .5s, transform .5s; }
.demo-mcp-heading { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-bottom: 1px solid #ffffff12; }
.demo-mcp-heading > strong { font: .7rem ui-monospace, monospace; }
.mcp-glyph { font-size: 1.2rem; color: #c7f888; line-height: 1; }
.mcp-connection { display: flex; align-items: center; gap: .4rem; margin-left: auto; color: #c7f888; font-size: .52rem; }
.mcp-connection .live-dot { width: .3rem; height: .3rem; flex-basis: .3rem; }
.mcp-console { display: flex; flex-direction: column; gap: .5rem; padding: .85rem .8rem; font: .59rem/1.5 ui-monospace, monospace; }
.console-muted { color: #91a18a; }
.mcp-console code { color: #e6eae3; min-height: 1.8em; }
.console-result { color: #c7f888; }
.floating-envelope { position: absolute; left: 14%; top: 47%; color: #c7f888; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: #23341c; border: 1px solid #c7f88840; transform: rotate(-13deg); }
.floating-envelope .icon { width: 1.35rem; height: 1.35rem; }
.scene-coordinate { position: absolute; left: .4rem; bottom: 8px; color: #82917a; font: .48rem ui-monospace, monospace; letter-spacing: .14em; }
.agent-demo figcaption { font-size: .62rem; line-height: 1.6; color: #99a792; text-align: center; margin: .5rem 0 1rem; }
.demo-controls { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #ffffff12; padding-top: .8rem; gap: .5rem; }
.demo-stages { display: flex; gap: .35rem; flex: 1; }
.demo-stage { display: flex; gap: .45rem; align-items: center; padding: .5rem .6rem; border: 1px solid transparent; border-radius: .4rem; font-size: .6rem; color: #9eac96; cursor: pointer; transition: background .3s, color .3s; }
.demo-stage > span { font: .55rem ui-monospace, monospace; opacity: .7; }
.demo-stage[aria-pressed="true"] { color: #c7f888; background: #c7f8880b; border-color: #c7f88820; }
.demo-stage:hover, .demo-pause:hover { background: #ffffff0a; }
.demo-pause { display: grid; place-items: center; border: 1px solid #ffffff18; border-radius: .35rem; min-width: 2rem; min-height: 2rem; cursor: pointer; font-size: .65rem; color: #c7f888; }
.agent-demo[data-stage="0"] .demo-mail { border-color: #c7f88860; }
.agent-demo[data-stage="1"] .demo-mcp { border-color: #c7f88890; transform: rotate(0); }
.agent-demo[data-stage="1"] .connection-signal { opacity: 1; animation: mcp-packet 2s linear infinite; }
.agent-demo[data-stage="1"] .floating-envelope { animation: mail-to-agent 3.2s ease-in-out infinite; }
.agent-demo[data-stage="2"] .agent-bubble { transform: translateY(-5px); }
.agent-demo.is-paused *, .agent-demo.is-paused *::before, .agent-demo.is-paused *::after { animation-play-state: paused !important; }
.protocol-strip { border-top: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.65rem 0; margin-bottom: 2.5rem; }
.protocol-strip > p { font-size: .72rem; color: #85927f; line-height: 1.7; }
.protocol-strip > p strong { color: #b9c5b2; font-weight: 500; }
.protocol-strip > div { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.protocol-strip > div > span { display: flex; align-items: center; gap: .65rem; color: #a6b59a; font-size: 1.15rem; }
.protocol-strip strong { font-size: .78rem; font-weight: 500; }
.protocol-strip .icon { width: 1.1rem; height: 1.1rem; }
.product-section { padding: 4.5rem 0; }
#funzioni { border-top: 0; }
.product-section-heading { margin-bottom: 2.5rem; }
.product-section-heading h2 { font-size: clamp(2rem,3.4vw,3rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.17; margin-top: 1rem; }
.public-site #come-funziona .product-section-heading h2 { font-size: clamp(2rem,3.4vw,3rem); }
.product-section-heading > p:not(.eyebrow) { font-size: .9rem; }
.product-feature-grid { gap: 1.25rem; }
.product-feature-grid article { padding: 1.4rem; border: 1px solid var(--portal-line); border-radius: .7rem; background: linear-gradient(150deg, #19221b80, #12191750); transition: border-color .2s, transform .2s; }
.product-feature-grid article:hover { border-color: #c7f88840; transform: translateY(-4px); }
.product-feature-grid .section-icon { border: 1px solid #c7f8881a; background: #c7f8880b; color: #c7f888; border-radius: .6rem; width: 2.5rem; height: 2.5rem; }
.product-feature-grid h3 { font-size: .95rem; font-weight: 550; margin-top: 1.5rem; }
.product-feature-grid p { font-size: .8rem; line-height: 1.8; }
.product-developer-section { position: relative; }
.product-integration-grid { gap: 1rem; }
.product-integration-grid article { padding: 1.7rem; border-radius: .7rem; background: #111814; }
.product-integration-grid article:nth-child(2) { border-color: #c7f88840; background: radial-gradient(ellipse at top right, #c7f8880a, transparent 70%), #111814; }
.integration-label { font: .6rem ui-monospace, monospace; letter-spacing: .08em; }
.product-integration-grid h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.4; margin-top: 2rem; }
.product-integration-grid p, .product-start-steps p, .product-usecases p, .product-usecase-note { font-size: .83rem; line-height: 1.85; }
.product-start-steps li { border-top: 1px solid #c7f88845; padding: 1.7rem 1rem 0 0; }
.product-start-steps li > span { font-size: 1.6rem; color: #c7f888; letter-spacing: -.05em; }
.product-start-steps h3 { font-weight: 500; }
.product-usecases article > span { font: .58rem ui-monospace, monospace; }
.product-usecases h3 { font-weight: 500; line-height: 1.4; }
.product-plan-section { border: 1px solid var(--portal-line); border-radius: .8rem; background: #111814; margin: 1rem 0 3rem; padding: 2rem; }
.product-plan-facts dd { color: #c7f888; font-size: 1.8rem; font-weight: 500; letter-spacing: -.03em; }
.product-plan-facts dt { font-size: .73rem; }
.product-plan-facts > div { border-left: 1px solid #ffffff15; padding-left: 1rem; }
.product-plan-facts > div:first-child { border: 0; padding: 0; }
.product-plan-note { font-size: .77rem; }
.product-faq { max-width: none; }
.product-faq summary { font-weight: 500; font-size: .94rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.product-faq summary::-webkit-details-marker { display: none; }
.product-faq summary::after { content: '+'; font-size: 1.25rem; color: #c7f888; font-weight: 400; }
.product-faq details[open] summary::after { content: '−'; }
.product-faq details { padding: 1.4rem 0; }
.product-final-cta { padding: 3rem; background: radial-gradient(ellipse at 90% 0, #c7f88812, transparent 65%), #182219; border: 1px solid #c7f88825; border-radius: 1rem; margin-bottom: 4rem; }
.product-final-cta h2 { font-size: clamp(2rem,3vw,2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -.05em; }
.public-site .app-footer { padding: 2rem max(2.5rem, calc((100vw - 1200px) / 2)); border-color: var(--portal-line); font-size: .73rem; }
.public-site .auth-public-page .auth-story { background: radial-gradient(ellipse at 10% 30%, #c7f88809, transparent 70%), var(--portal-paper); }
.public-site .auth-layout, .public-site .auth-public-page .auth-form-panel, .public-site .auth-form-content > form { background: var(--portal-surface); }
.public-site .auth-form-content .input { color: var(--portal-ink); border-color: #ffffff25; }
.public-site .auth-form-content .input:focus { outline-color: #c7f88880; border-color: #c7f888; }
.public-site .auth-mode-note { border-color: var(--portal-line); }
.public-site .form-status { color: #c7f888; border-color: #c7f88830; }
.public-site .form-status.error { color: #ffb7ae; background: #382321; border-color: #ffb7ae30; }
.public-site a:focus-visible, .public-site button:focus-visible, .public-site summary:focus-visible { outline: 2px solid #c7f888; outline-offset: 4px; }
@keyframes robot-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes mcp-packet { from { stroke-dashoffset: 565; } to { stroke-dashoffset: 0; } }
@keyframes mail-to-agent { 0%,15% { opacity: 1; transform: translate(0,0) rotate(-13deg); } 65%,100% { opacity: 0; transform: translate(100px,-5px) rotate(5deg) scale(.65); } }
@media (min-width: 1100px) { .product-hero-copy { animation: hero-enter .7s ease-out both; } .agent-demo { animation: hero-enter .9s .1s ease-out both; } }
@keyframes hero-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .product-hero { gap: 1.5rem; min-height: auto; padding-block: 3.5rem; }
  .product-hero h1 { font-size: clamp(2.7rem,4.9vw,3.7rem); }
  .agent-scene { height: 335px; }
  .demo-mail { width: 160px; padding: .7rem; }
  .demo-mcp { width: 210px; }
  .protocol-strip > div { gap: 1.5rem; }
  .product-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .public-site .workspace-container { padding-inline: 1.25rem; }
  .public-site .app-navbar { height: 4.5rem; padding-inline: 1.25rem; }
  .public-site .app-navbar nav { gap: .15rem; }
  .public-site .app-navbar .brand-copy strong { font-size: .78rem; }
  .public-site .app-navbar .brand-copy small { font-size: .55rem; }
  .public-site .app-navbar .brand-icon { width: 2rem; height: 2rem; }
  .public-site .app-navbar .btn-primary { font-size: .65rem; padding-inline: .65rem; }
  .public-site .app-navbar .btn-ghost { font-size: .7rem; padding-inline: .5rem; }
  .product-hero { grid-template-columns: 1fr; padding: 2.5rem 0; gap: 2rem; }
  .product-hero h1 { font-size: clamp(2.8rem,9.5vw,4.5rem); }
  .hero-eyebrow { font-size: .58rem !important; margin-bottom: 1.5rem; }
  .product-lead { font-size: .9rem; max-width: 48ch; }
  .product-hero .hero-actions { gap: .6rem; }
  .product-hero .hero-actions .btn { font-size: .76rem; padding-inline: .85rem; }
  .hero-mini-facts { gap: .8rem; font-size: .61rem; }
  .agent-demo { width: 100%; max-width: 540px; justify-self: center; padding: 1rem; }
  .agent-scene { height: 350px; }
  .agent-robot { width: 74%; left: 13%; top: 8%; }
  .agent-bubble { right: 0; top: 31%; }
  .demo-mail { width: 155px; }
  .demo-mcp { width: 210px; bottom: 20px; }
  .protocol-strip { align-items: flex-start; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
  .protocol-strip > p br { display: none; }
  .protocol-strip > p strong { margin-left: .4rem; }
  .protocol-strip > div { justify-content: space-between; width: 100%; gap: 1.1rem; }
  .protocol-strip strong { font-size: .67rem; }
  .product-section { padding: 3rem 0; }
  .product-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .product-feature-grid article { padding: 1.1rem; }
  .product-feature-grid h3 { font-size: .83rem; margin-top: 1.2rem; }
  .product-feature-grid p { font-size: .74rem; }
  .product-integration-grid, .product-start-steps, .product-usecases { grid-template-columns: 1fr; }
  .product-section-heading { margin-bottom: 2rem; }
  .product-section-heading h2 { font-size: clamp(1.9rem,6.8vw,2.6rem); }
  .product-plan-section { padding: 1.4rem; }
  .product-plan-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; }
  .product-plan-facts > div { padding-left: 0; border: 0; }
  .product-final-cta { padding: 2rem 1.5rem; gap: 1.5rem; }
  .public-site .app-footer { padding: 1.5rem 1.25rem; }
}
@media (max-width: 389px) {
  .public-site .app-navbar { padding-inline: .9rem; }
  .public-site .app-navbar .brand { gap: .4rem; }
  .public-site .app-navbar .brand-copy strong { font-size: .7rem; }
  .public-site .app-navbar .btn-sm { min-height: 2.3rem; }
  .product-hero .hero-actions .btn { font-size: .75rem; padding-inline: .85rem; }
  .agent-scene { height: 300px; }
  .demo-mail { width: 145px; }
  .demo-mcp { width: 190px; }
  .demo-stage { padding-inline: .35rem; font-size: .55rem; }
  .demo-stage > span { font-size: .5rem; }
  .agent-bubble { font-size: .58rem; padding: .55rem; }
  .hero-mini-facts > span:last-child { flex-basis: 100%; border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .public-site *, .public-site *::before, .public-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
