/* DSONAI — Trusted Action Intelligence
   Palette: apple green, white, black (only)
*/

:root{
  --apple:      #9FE233;   /* bright lime */
  --apple-dark: #7CC424;
  --apple-deep: #5F9A14;
  --apple-soft: #EAFADE;   /* hero wash */
  --apple-mist: #F3FCEC;
  --apple-line: rgba(124,196,36,.45);

  --black:      #0B0B0B;
  --ink:        #111;
  --ink-dim:    #3a3a3a;
  --ink-muted:  #6a6a6a;

  --white:      #FFFFFF;
  --paper:      #FAFAF8;

  --line:       rgba(11,11,11,.10);
  --line-2:     rgba(11,11,11,.18);

  --shadow-md:  0 10px 30px -12px rgba(0,0,0,.18);
  --shadow-lg:  0 30px 70px -20px rgba(0,0,0,.22);

  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  26px;

  --font-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*{ box-sizing: border-box }
html,body{ margin:0; padding:0 }
html{ scroll-behavior: smooth }
body{
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container{ max-width: 1180px; margin: 0 auto; padding: 0 24px }

/* Hidden attribute must always win */
[hidden]{ display: none !important }

.skip{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden }
.skip:focus{ left:16px; top:16px; width:auto; height:auto; background:var(--black); color:var(--white); padding:10px 14px; border-radius:10px; z-index:10000 }

/* ---------- Topbar ---------- */
.topbar{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px; padding: 14px 24px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit }
.brand__mark{
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--apple);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(11,11,11,.18);
}
.brand__mark::after{
  content:"";
  position:absolute; inset:7px;
  border-radius: 6px;
  background: var(--white);
  clip-path: polygon(20% 50%, 0 70%, 35% 100%, 100% 25%, 80% 5%, 35% 65%);
  opacity: .95;
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05 }
.brand__name{ font-weight: 800; letter-spacing: -.01em; font-size: 17px; color: var(--black) }
.brand__tag{ font-size: 11px; color: var(--ink-muted); margin-top: 4px; letter-spacing:.02em }

.nav{ display:flex; align-items:center; gap: 2px }
.nav a{
  color: var(--ink-dim); text-decoration: none;
  font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover{ color: var(--black); background: var(--apple-soft) }
.nav a.btn{ margin-left: 8px }

.menu{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.menu:hover{ background: var(--apple-soft); border-color: var(--apple-dark) }
.menu span{
  display: block;
  width: 20px; height: 2px;
  margin: 0;
  background: var(--black);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg) }
.menu[aria-expanded="true"] span:nth-child(2){ opacity: 0 }
.menu[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg) }

.mobile{
  border-top:1px solid var(--line);
  padding:10px 24px; gap:6px;
  background: var(--white);
  display: grid;
}
.mobile a{
  padding:12px 14px; border-radius:10px;
  text-decoration:none; color:var(--ink); font-weight: 500;
}
.mobile a:hover{ background: var(--apple-soft); color: var(--black) }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid var(--apple);
  background: var(--apple);
  color: var(--black);
  font-weight: 700; font-size: 14px;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  box-shadow: 0 8px 22px -12px rgba(124,196,36,.65);
}
.btn:hover{ transform: translateY(-1px); background: var(--apple-dark); border-color: var(--apple-dark); color: var(--black) }
.btn:active{ transform: translateY(0) }
.btn--ghost{
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--apple);
  box-shadow: none;
}
.btn--ghost:hover{ background: var(--apple-soft); border-color: var(--apple-dark); color: var(--black) }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--apple-mist) 0%, var(--apple-soft) 60%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before{
  content:"";
  position:absolute;
  top: -260px; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(159,226,51,.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero__grid{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.pill{
  display:inline-flex; align-items:center; gap: 8px;
  border: 1px solid var(--apple-line);
  background: var(--apple-mist);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px; color: var(--ink);
  font-weight: 600;
  margin: 0 0 22px;
}
.pill strong{ color: var(--black); font-weight: 700 }

h1{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 18px;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
}
.accent{ color: var(--apple-deep) }
.lead{
  font-size: 17px; line-height: 1.65;
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0 0 28px;
}
.lead strong{ color: var(--black); font-weight: 600 }
.cta{ display:flex; gap: 12px; flex-wrap:wrap; margin: 0 0 32px }

.hero__stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.stat{
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.stat:hover{ border-color: var(--apple); background: var(--apple-soft) }
.stat__k{ font-weight: 700; font-size: 12px; color: var(--apple-deep); letter-spacing:.06em; text-transform: uppercase }
.stat__v{ font-size: 13px; color: var(--ink-dim); margin-top: 6px }

/* Hero panel (console mock) */
.hero__panel{ display:flex; position: relative }
.panel{
  position: relative; z-index: 1;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-2);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__header{
  display:flex; align-items:center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dots{ display:flex; gap: 6px }
.dots span{
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(11,11,11,.18);
}
.dots span:nth-child(3){ background: var(--apple) }
.panel__title{
  font-weight: 600; font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.panel__body{ padding: 18px }

.chat{ display:grid; gap: 12px }
.msg{
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.msg--user{
  margin-left: 18%;
  background: var(--paper);
}
.msg--ai{
  margin-right: 6%;
  background: var(--apple-soft);
  border-color: var(--apple-line);
}
.msg p{ margin: 0; color: var(--ink-dim) }
.msg p strong{ color: var(--black); font-weight: 600 }
.msg__meta{ display:flex; flex-wrap:wrap; gap: 6px; margin-bottom: 10px }
.msg__meta:last-child{ margin: 10px 0 0 }
.badge{
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-weight: 600;
  letter-spacing: .01em;
}
.badge--warn{
  background: var(--apple);
  border-color: var(--apple);
  color: var(--black);
}
.badge--outline{
  background: transparent;
  color: var(--ink-dim);
  border-color: var(--line-2);
}

.panel__footer{
  display:flex; align-items:center; gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.input{
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink-muted);
  font-size: 13px;
}
.mini{ font-size: 11px; color: var(--ink-dim); display:flex; align-items:center; gap: 8px; white-space: nowrap }
.mini__dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--apple);
  box-shadow: 0 0 0 3px rgba(141,182,0,.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100% { box-shadow: 0 0 0 3px rgba(141,182,0,.2) }
  50%      { box-shadow: 0 0 0 6px rgba(141,182,0,.05) }
}

/* ---------- Sections ---------- */
.section{ padding: 88px 0; position: relative }
.section--alt{ background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.section h2{
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -.02em;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--black);
}
.sub{
  margin: 0 0 40px;
  color: var(--ink-dim);
  max-width: 64ch;
  font-size: 16px;
}

/* ---------- Cards (product) ---------- */
.grid{ display:grid; gap: 16px }
.cards{ grid-template-columns: repeat(3, 1fr) }
.card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: var(--apple);
  box-shadow: var(--shadow-md);
}
.card h3{
  margin: 16px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -.005em;
}
.card p{ margin: 0; color: var(--ink-dim); font-size: 14px; line-height: 1.6 }

.card__icon{
  width: 42px; height: 42px;
  border-radius: 12px;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--apple-mist);
  border: 1px solid var(--apple-line);
  color: var(--apple-deep);
}
.card__icon svg{ width: 20px; height: 20px }

/* ---------- How-it-works primary callout ---------- */
.howlead{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  margin: 0 0 40px;
  background: var(--white);
}
.howlead__chain{
  display:flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.howlead__chain span{
  display:inline-flex; align-items:center;
  padding: 6px 12px;
  border: 1px solid var(--apple-line);
  border-radius: 6px;
  background: var(--apple-mist);
  color: var(--apple-deep);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.howlead__headline{
  margin: 0 0 14px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--black);
}
.howlead__headline strong{ font-weight: 700 }
.howlead__body{
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 78ch;
}
.howlead__body strong{ color: var(--ink); font-weight: 600 }
.howlead__result{
  display:flex; gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--apple);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.howlead__tag{
  flex: 0 0 auto;
  display:inline-flex; align-items:center;
  padding: 2px 9px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--font-mono);
}

.howsub{
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ---------- Flow ---------- */
.flow{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.flow__step{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  background: var(--white);
  transition: border-color .15s ease, background .15s ease;
}
.flow__step:hover{ border-color: var(--apple); background: var(--apple-soft) }
.flow__num{
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--apple);
  color: var(--black);
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 14px;
  font-family: var(--font-mono);
  margin-bottom: 14px;
  border: 1px solid var(--apple-deep);
}
.flow__body h3{ margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--black) }
.flow__body p{ margin: 0; color: var(--ink-dim); font-size: 13px; line-height: 1.55 }

.callout{
  margin-top: 36px;
  border: 2px solid var(--black);
  border-radius: var(--radius-xl);
  padding: 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
  background: var(--apple-soft);
}
.callout h3{ margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--black) }
.callout p{ margin: 0; color: var(--ink-dim); max-width: 60ch; font-size: 14px }
.callout p strong{ color: var(--black); font-weight: 600 }

/* ---------- Enterprise panels ---------- */
.enterprise{ grid-template-columns: repeat(3, 1fr) }
.panel2{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.panel2:hover{ border-color: var(--apple); box-shadow: var(--shadow-md) }
.panel2 h3{ margin: 0 0 16px; font-size: 17px; font-weight: 600; color: var(--black) }
.panel2 ul{
  margin: 0; padding: 0; list-style: none;
  display:grid; gap: 12px;
}
.panel2 li{
  position: relative;
  padding-left: 26px;
  font-size: 14px; color: var(--ink-dim);
  line-height: 1.55;
}
.panel2 li::before{
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--apple-deep);
  border-bottom: 2px solid var(--apple-deep);
  transform: rotate(-45deg);
}

/* ---------- Roadmap ---------- */
.timeline{ display:grid; gap: 12px }
.titem{
  display:flex; gap: 24px; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--white);
  transition: border-color .15s ease, background .15s ease;
}
.titem:hover{ border-color: var(--apple); background: var(--apple-soft) }
.titem__k{
  min-width: 110px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--apple-deep);
  font-family: var(--font-mono);
}
.titem__v{ color: var(--ink-dim); font-size: 14px }

/* ---------- Contact ---------- */
.contact{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact h2{ margin-bottom: 12px }
.contact__meta{ display:grid; gap: 10px; margin-top: 24px }
.meta{
  display:flex; gap: 16px; align-items: baseline;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--white);
}
.meta__k{
  font-weight: 700;
  min-width: 80px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.meta__v{ color: var(--black); font-size: 15px; word-break: break-word }
.meta__v a{ color: var(--apple-deep); text-decoration: none; border-bottom: 1px solid rgba(124,196,36,.45) }
.meta__v a:hover{ border-bottom-color: var(--apple-dark) }

.form{
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
label{
  display:grid; gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
input, select, textarea{
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
input::placeholder, textarea::placeholder{ color: var(--ink-muted) }
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--apple);
  box-shadow: 0 0 0 3px rgba(141,182,0,.18);
}
select{ appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea{ resize: vertical; min-height: 96px }
.form .btn{ margin-top: 4px }
.hint{ font-size: 12px; color: var(--ink-muted); margin: 14px 0 0 }

/* ---------- Footer ---------- */
.footer{
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--white);
  margin-top: 40px;
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 13px;
}
.footer__links{ display:flex; gap: 4px; flex-wrap: wrap }
.footer__links a{
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.footer__links a:hover{ color: var(--black); background: var(--apple-soft) }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero{ padding: 56px 0 36px }
  .hero__grid{ grid-template-columns: 1fr; gap: 36px }
  .cards{ grid-template-columns: repeat(2, 1fr) }
  .flow{ grid-template-columns: repeat(2, 1fr) }
  .enterprise{ grid-template-columns: 1fr }
  .contact{ grid-template-columns: 1fr; gap: 28px }
  .nav{ display: none }
  .menu{ display: inline-flex }
  .section{ padding: 56px 0 }
  .callout{ flex-direction: column; align-items: flex-start; text-align: left }
  .footer__inner{ flex-direction: column; align-items: flex-start }
}
@media (max-width: 560px){
  .container{ padding: 0 18px }
  .topbar__inner{ padding: 12px 18px }
  .cards{ grid-template-columns: 1fr }
  .flow{ grid-template-columns: 1fr }
  .hero__stats{ grid-template-columns: 1fr }
  .msg--user{ margin-left: 8% }
  .msg--ai{ margin-right: 2% }
  .titem{ flex-direction: column; align-items: flex-start; gap: 8px }
  .meta{ flex-direction: column; gap: 4px; align-items: flex-start }
  .meta__k{ min-width: 0 }
  h1{ font-size: 34px }
  .form{ padding: 20px }
  .callout{ padding: 22px }
  .howlead{ padding: 22px 20px }
  .howlead__result{ flex-direction: column; gap: 8px }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important }
  html{ scroll-behavior: auto }
}
