/* /assets/landing.css
 * Public marketing / landing page styles for uClock
 */

/* ---------- Design tokens ---------- */
:root{
  --bg: #020617;
  --bg-soft: #020617;
  --surface: #020617;
  --surface-soft: #020617;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --accent: #4f46e5;
  --accent-soft: rgba(79,70,229,.18);
  --accent-soft2: rgba(96,165,250,.16);
  --accent-strong: #22c55e;
  --border-subtle: rgba(148,163,184,.35);
  --border-strong: rgba(148,163,184,.6);
  --danger: #ef4444;
  --shadow-soft: 0 18px 60px rgba(15,23,42,.6);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --nav-height: 70px;
}

/* ---------- Global ---------- */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top,var(--accent-soft2) 0,transparent 48%),
    radial-gradient(circle at bottom,var(--accent-soft) 0,transparent 55%),
    var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
  text-decoration:none;
}

button{
  font-family:inherit;
}

/* Layout helpers */
.container{
  width:min(1120px,100% - 2.4rem);
  margin:0 auto;
}

.section{
  padding:56px 0;
}

.section-tight{
  padding:40px 0;
}

@media (max-width:720px){
  .section{padding:40px 0;}
}

/* ---------- Buttons ---------- */
.btn{
  appearance:none;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.6);
  padding:.46rem .95rem;
  font-size:.83rem;
  font-weight:600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background:rgba(15,23,42,.9);
  color:var(--ink);
}

.btn span.icon{
  font-size:.9rem;
}

.btn-outline{
  background:transparent;
}

.btn-outline:hover{
  background:rgba(148,163,184,.16);
}

.btn-primary{
  border-color:transparent;
  background:linear-gradient(135deg,#4f46e5,#6366f1);
  color:#f9fafb;
  box-shadow:0 14px 40px rgba(79,70,229,.68);
}

.btn-primary:hover{
  background:linear-gradient(135deg,#4f46e5,#4f46e5);
}

.btn-ghost{
  border-color:transparent;
  background:transparent;
  color:var(--muted);
}

.btn-ghost:hover{
  background:rgba(15,23,42,.7);
  color:#e5e7eb;
}

/* ---------- Top navigation ---------- */
.nav-wrap{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:saturate(180%) blur(18px);
  background:linear-gradient(
    to bottom,
    rgba(15,23,42,.92),
    rgba(15,23,42,.86),
    rgba(15,23,42,.7)
  );
  border-bottom:1px solid rgba(148,163,184,.28);
}

.nav{
  height:var(--nav-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:.55rem;
}

.logo-badge{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:.9rem;
  background:conic-gradient(
    from 220deg,
    #4f46e5,
    #06b6d4,
    #22c55e,
    #4f46e5
  );
  color:#f9fafb;
  box-shadow:0 12px 30px rgba(15,23,42,.65);
}

.brand-title{
  display:flex;
  flex-direction:column;
  gap:0;
}

.brand-title-main{
  font-weight:700;
  letter-spacing:.02em;
  font-size:1.04rem;
}

.brand-pill{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:1px 7px;
  border-radius:999px;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  background:rgba(79,70,229,.18);
  color:#a5b4fc;
}

/* Primary nav links */
.nav-links{
  display:flex;
  align-items:center;
  gap:.75rem;
  font-size:.85rem;
  color:var(--muted);
}

/* items rendered from CMS can use .nav-item / .nav-link */
.nav-links a,
.nav-links .nav-link{
  padding:.3rem .5rem;
  border-radius:999px;
}

.nav-links a:hover,
.nav-links .nav-link:hover{
  color:#e5e7eb;
  background:rgba(148,163,184,.22);
}

.nav-links a.active,
.nav-links .nav-link.active{
  color:#e5e7eb;
  background:rgba(79,70,229,.32);
}

.nav-spacer{
  flex:1 1 auto;
}

/* Right side CTA */
.nav-cta{
  display:flex;
  align-items:center;
  gap:.45rem;
}

/* Dropdown / mega menu shells for CMS menus */
.nav-item{
  position:relative;
}

.nav-item.has-children > .nav-link::after{
  content:"▾";
  font-size:.6rem;
  margin-left:.25rem;
}

/* Simple dropdown */
.nav-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:220px;
  background:#020617;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.35);
  box-shadow:0 18px 50px rgba(15,23,42,.85);
  padding:.4rem;
  display:none;
}

.nav-item:hover > .nav-dropdown{
  display:block;
}

.nav-dropdown a{
  display:flex;
  align-items:flex-start;
  gap:.45rem;
  padding:.35rem .55rem;
  border-radius:10px;
  font-size:.8rem;
  color:var(--muted);
}

.nav-dropdown a strong{
  color:#e5e7eb;
  font-weight:600;
}

.nav-dropdown a:hover{
  background:rgba(30,64,175,.55);
  color:#e5e7eb;
}

/* Mega menu grid (optional) */
.nav-mega{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%);
  width:min(720px,100vw - 32px);
  background:#020617;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.35);
  box-shadow:0 26px 80px rgba(15,23,42,.9);
  padding:14px 18px 16px;
  display:none;
}

.nav-item.show-mega:hover > .nav-mega{
  display:block;
}

.nav-mega-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 18px;
}

.nav-mega-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:.8rem;
  color:var(--muted);
  padding:6px 6px;
  border-radius:12px;
}

.nav-mega-item:hover{
  background:rgba(30,64,175,.55);
}

.nav-mega-item-title{
  font-weight:600;
  color:#e5e7eb;
}

.nav-mega-item-desc{
  font-size:.78rem;
}

/* Icons in mega menu */
.nav-icon{
  width:20px;
  height:20px;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-size:.9rem;
  background:rgba(79,70,229,.25);
  margin-right:.25rem;
}

/* Top nav responsive */
@media (max-width:880px){
  .nav-links{display:none;}
}

@media (max-width:520px){
  .nav-cta .btn-ghost{display:none;}
}

/* ---------- Hero ---------- */
.hero{
  padding:40px 0 40px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:2.3rem;
  align-items:center;
}

.hero-kicker-row{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-bottom:.85rem;
  font-size:.78rem;
}

.hero-pill{
  border-radius:999px;
  padding:2px 9px;
  background:rgba(22,163,74,.1);
  color:#bbf7d0;
  border:1px solid rgba(52,211,153,.25);
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}

.hero-pill span.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 6px rgba(34,197,94,.36);
}

.hero-promo{
  border-radius:999px;
  padding:2px 10px;
  background:rgba(15,23,42,.8);
  border:1px solid rgba(148,163,184,.55);
  color:var(--muted);
}

.hero-promo code{
  font-size:.8rem;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.55);
  color:#bfdbfe;
}

.hero-title{
  font-size:clamp(2.1rem,3.4vw,3rem);
  letter-spacing:-.03em;
  line-height:1.08;
  margin:0 0 .7rem;
}

.hero-title span.gradient{
  background:linear-gradient(135deg,#e5e7eb,#a5b4fc,#7dd3fc);
  -webkit-background-clip:text;
  color:transparent;
}

.hero-sub{
  margin:0 0 1.2rem;
  font-size:.98rem;
  color:var(--muted);
  max-width:34rem;
}

.hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  align-items:center;
  margin-bottom:1rem;
}

.hero-note{
  font-size:.78rem;
  color:var(--muted);
}

.hero-note span{
  color:#e5e7eb;
  font-weight:500;
}

.hero-metadata{
  display:flex;
  flex-wrap:wrap;
  gap:1.4rem;
  margin-top:1.4rem;
  font-size:.76rem;
  color:var(--muted);
}

.hero-metadata span.label{
  display:block;
  color:var(--muted);
}

.hero-metadata b{
  color:#e5e7eb;
  font-weight:600;
}

/* Hero preview panel */
.hero-panel{
  position:relative;
}

.hero-card{
  position:relative;
  border-radius:var(--radius-xl);
  padding:1.1rem 1.2rem 1.05rem;
  background:
    radial-gradient(circle at top,#1e293b 0,transparent 55%),
    radial-gradient(circle at bottom,#0f172a 0,transparent 60%),
    #020617;
  border:1px solid rgba(148,163,184,.35);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.hero-card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:.55rem;
}

.hero-card-title{
  font-size:.78rem;
  color:var(--muted);
}

.hero-card-dotset{
  display:flex;
  gap:.25rem;
}

.hero-card-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(148,163,184,.55);
}

.hero-card-dot.main{
  background:#22c55e;
}

.hero-card-tabs{
  display:flex;
  gap:.45rem;
  margin-bottom:.55rem;
}

.hero-card-tab{
  font-size:.7rem;
  padding:.18rem .55rem;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}

.hero-card-tab.active{
  border-color:rgba(148,163,184,.7);
  background:rgba(15,23,42,.9);
  color:#e5e7eb;
}

/* Timesheet preview */
.timesheet{
  border-radius:var(--radius-lg);
  border:1px solid rgba(148,163,184,.35);
  background:
    radial-gradient(circle at top left,rgba(79,70,229,.18) 0,transparent 50%),
    rgba(15,23,42,.96);
  padding:.7rem .8rem .65rem;
}

.timesheet-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:.45rem;
}

.timesheet-period{
  font-size:.76rem;
  color:#e5e7eb;
  font-weight:500;
}

.timesheet-pill{
  font-size:.68rem;
  border-radius:999px;
  padding:2px 7px;
  background:rgba(22,163,74,.14);
  color:#bbf7d0;
  border:1px solid rgba(52,211,153,.4);
}

.timesheet-grid{
  display:grid;
  grid-template-columns:2fr repeat(5,minmax(0,1fr));
  gap:.3rem;
  margin-top:.45rem;
}

.ts-head{
  font-size:.65rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(148,163,184,.9);
}

.ts-row{
  display:contents;
}

.ts-cell{
  font-size:.72rem;
  padding:.24rem .3rem;
  color:#e5e7eb;
  border-radius:6px;
}

.ts-cell.muted{color:var(--muted);}
.ts-cell.badge{
  text-align:center;
  background:rgba(79,70,229,.22);
}
.ts-cell.hours,
.ts-cell.total{
  text-align:center;
}
.ts-cell.total{
  font-weight:600;
}

.ts-pill-ok{
  font-size:.7rem;
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(22,163,74,.18);
  color:#bbf7d0;
}

.hero-card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:.65rem;
  font-size:.7rem;
  color:var(--muted);
}

.hero-card-footer span strong{
  color:#e5e7eb;
}

.hero-float-chip{
  position:absolute;
  right:-6px;
  top:-10px;
  padding:.3rem .7rem;
  border-radius:999px;
  background:rgba(15,23,42,.95);
  border:1px solid rgba(148,163,184,.55);
  font-size:.7rem;
  display:flex;
  align-items:center;
  gap:.3rem;
}

.hero-float-chip span.badge-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
}

/* ---------- Trust strip ---------- */
.trust-strip{
  border-top:1px solid rgba(148,163,184,.35);
  border-bottom:1px solid rgba(148,163,184,.35);
  background:radial-gradient(circle at top,rgba(15,23,42,.9),rgba(15,23,42,.95));
}

.trust-inner{
  display:flex;
  flex-direction:column;
  gap:.8rem;
}

.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:1.3rem;
  align-items:center;
  justify-content:space-between;
}

.trust-heading{
  font-size:.88rem;
  color:var(--muted);
}

.trust-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:1.1rem;
  font-size:.78rem;
  color:var(--muted);
}

.trust-metrics span b{
  color:#e5e7eb;
}

.trust-logos{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
  gap:.9rem;
  margin-top:.4rem;
}

.tlogo{
  border-radius:999px;
  border:1px solid rgba(148,163,184,.3);
  padding:.35rem .7rem;
  font-size:.75rem;
  text-align:center;
  color:#9ca3af;
  background:rgba(15,23,42,.9);
  filter:grayscale(1);
  opacity:.9;
}

.tlogo:hover{
  filter:none;
  opacity:1;
}

/* ---------- Feature grid ---------- */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.4rem;
}

.feature-card{
  border-radius:var(--radius-lg);
  border:1px solid rgba(148,163,184,.25);
  background:rgba(15,23,42,.92);
  padding:1.05rem 1.05rem 1rem;
}

.feature-icon{
  width:26px;
  height:26px;
  border-radius:.9rem;
  display:grid;
  place-items:center;
  font-size:.9rem;
  margin-bottom:.55rem;
  background:rgba(79,70,229,.25);
}

.feature-title{
  font-size:.92rem;
  font-weight:600;
  margin-bottom:.3rem;
}

.feature-text{
  font-size:.8rem;
  color:var(--muted);
  margin-bottom:.4rem;
}

.feature-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}

.feature-tag{
  font-size:.7rem;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.8);
  border:1px solid rgba(148,163,184,.4);
  color:#e5e7eb;
}

/* ---------- How it works + side panel ---------- */
.hiw-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:1.8rem;
  align-items:flex-start;
}

.hiw-steps{
  display:grid;
  gap:.75rem;
}

.hiw-step{
  display:flex;
  gap:.7rem;
}

.hiw-step-pill{
  width:26px;
  height:26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.6);
  font-size:.8rem;
  color:#e5e7eb;
}

.hiw-step-main{
  font-size:.86rem;
  color:#e5e7eb;
  margin-bottom:.15rem;
}

.hiw-step-sub{
  font-size:.78rem;
  color:var(--muted);
}

.hiw-panel{
  border-radius:var(--radius-lg);
  border:1px dashed rgba(148,163,184,.4);
  padding:1rem;
  background:rgba(15,23,42,.88);
}

.hiw-panel-title{
  font-size:.85rem;
  font-weight:600;
  margin-bottom:.25rem;
}

.hiw-panel-text{
  font-size:.78rem;
  color:var(--muted);
}

/* ---------- Partners block ---------- */
.partners{
  border-radius:var(--radius-xl);
  border:1px solid rgba(79,70,229,.6);
  background:
    radial-gradient(circle at top left,rgba(79,70,229,.35),transparent 55%),
    radial-gradient(circle at bottom right,rgba(34,197,94,.32),transparent 60%),
    rgba(15,23,42,.98);
  padding:1.3rem 1.6rem;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);
  gap:1.6rem;
  align-items:center;
}

.partners-title{
  font-size:1.1rem;
  font-weight:600;
  margin-bottom:.35rem;
}

.partners-text{
  font-size:.86rem;
  color:#e5e7eb;
  margin-bottom:.7rem;
}

.partners-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  font-size:.74rem;
  color:#e5e7eb;
}

.partners-pill{
  border-radius:999px;
  padding:2px 8px;
  background:rgba(15,23,42,.8);
  border:1px solid rgba(226,232,240,.4);
}

.partners-note{
  font-size:.76rem;
  color:#e5e7eb;
}

.partners-badge{
  font-size:.7rem;
  border-radius:999px;
  padding:2px 8px;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.7);
  color:#c7d2fe;
  display:inline-flex;
  align-items:center;
  gap:.3rem;
}

.partners-badge span.dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
}

/* ---------- Dev panel (optional) ---------- */
.dev-section{
  padding:40px 0 32px;
}

details.dev{
  margin-top:10px;
}

details.dev summary{
  list-style:none;
  cursor:pointer;
  font-size:.8rem;
  color:var(--muted);
}

details.dev summary::marker,
details.dev summary::-webkit-details-marker{
  display:none;
}

.dev-row{
  margin-top:.6rem;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}

.input-shell{
  display:flex;
  align-items:center;
  gap:.3rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.55);
  padding:.4rem .7rem;
  background:rgba(15,23,42,.7);
  color:var(--muted);
}

.input-shell input{
  appearance:none;
  border:0;
  outline:0;
  background:transparent;
  color:#e5e7eb;
  font-size:.8rem;
  min-width:130px;
}

.dev-pre{
  margin-top:.75rem;
  border-radius:var(--radius-lg);
  border:1px solid rgba(15,23,42,1);
  background:#020617;
  color:#e5e7eb;
  font-family:ui-monospace,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.78rem;
  padding:.8rem 1rem;
  overflow:auto;
  max-height:260px;
  box-shadow:0 18px 50px rgba(15,23,42,.85);
}

/* ---------- Customers logo strip (dark, single row) ---------- */
.customers-strip{
  border-top:1px solid rgba(148,163,184,.35);
  border-bottom:1px solid rgba(148,163,184,.35);
  background:radial-gradient(circle at top,rgba(15,23,42,.9),rgba(15,23,42,.98));
}

.customers-inner{
  padding:26px 0 30px;
  text-align:center;
}

.customers-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.55);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:#cbd5f5;
  background:rgba(15,23,42,.95);
  margin-bottom:18px;
}

.customers-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:2.8rem;
}

.customer-logo{
  font-size:.95rem;              /* was .8rem */
  letter-spacing:.26em;          /* slightly wider tracking */
  text-transform:uppercase;
  color:rgba(156,163,175,.85);
  white-space:nowrap;
  filter:grayscale(1);
  opacity:.9;
}

.customer-logo img{
  display:block;
  height:80px;                   /* was 22px */
  filter:grayscale(1);
  opacity:.9;
}


.customer-logo:hover,
.customer-logo:hover img{
  filter:none;
  opacity:1;
}

/* small screens */
@media (max-width:640px){
  .customer-logo{
    font-size:.76rem;
    letter-spacing:.16em;
  }
}


/* smaller screens */
@media (max-width:640px){
  .customer-logo{
    font-size:.78rem;
    letter-spacing:.14em;
  }
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid rgba(148,163,184,.35);
  background:rgba(2,6,23,.96);
}

.footgrid{
  display:grid;
  grid-template-columns:1.4fr repeat(3,minmax(0,1fr));
  gap:1.6rem;
  padding:24px 0 18px;
}

.footgrid h4{
  margin:.1rem 0 .4rem;
  font-size:.86rem;
}

.footgrid a{
  display:block;
  font-size:.78rem;
  color:var(--muted);
  padding:.14rem 0;
}

.footgrid a:hover{
  color:#e5e7eb;
}

.footer-text{
  font-size:.8rem;
  color:var(--muted);
  max-width:420px;
}

.footbar{
  border-top:1px solid rgba(15,23,42,1);
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:.8rem;
  padding:10px 0 16px;
  font-size:.78rem;
  color:var(--muted);
}

.foot-row a{
  color:var(--muted);
}

.foot-row a:hover{
  color:#e5e7eb;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width:960px){
  .hero{padding-top:32px;}
  .hero-grid{grid-template-columns:1fr;}
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:820px){
  .footgrid{
    grid-template-columns:1fr 1fr;
    row-gap:1.8rem;
  }
}

@media (max-width:640px){
  .hero{padding-top:24px;}
  .feature-grid{grid-template-columns:1fr;}
}

@media (max-width:600px){
  .footgrid{grid-template-columns:1fr;}
}
