/* =========================================================
   Daytaem — modern, calm, "governable AI" design system
   Works with the existing HTML structure in this zip.
   ========================================================= */

/* --------- Reset --------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* --------- Theme tokens --------- */
:root{
  /* Neutral */
  --bg: #0b1220;
  --bg2:#0d1628;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.12);
  --text: #e7eefc;
  --muted: rgba(231,238,252,.74);

  /* Brand accents (tweak to match your logo if you want) */
  --accent: #ff5b5b;      /* warm red */
  --accent2:#7cddff;      /* cool cyan */
  --accent3:#a7ffcf;      /* mint */

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.28);

  --radius: 18px;
  --radius2: 26px;
  --max: 1080px;
  --prose: 70ch;
}

/* --------- Base typography --------- */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: 15px;
  line-height: 1.58;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% 8%, rgba(124,221,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(255,91,91,.14), transparent 55%),
    radial-gradient(800px 500px at 70% 70%, rgba(167,255,207,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Subtle noise */
body:before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  opacity: .18;
  mix-blend-mode: overlay;
}

.wrapper{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* --------- Content measure (avoid 'book page' look) --------- */
main p,
main ul,
main ol{
  max-width: var(--prose);
}


/* --------- Accessibility --------- */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width:auto;height:auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  z-index: 9999;
}

/* --------- Header / Navigation --------- */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,18,32,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand-link{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand-logo{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-main{ font-weight: 800; letter-spacing:.3px; font-size: 1.05rem; }
.brand-sub{ font-size: .78rem; color: var(--muted); }

.nav-menu{
  display:flex;
  align-items:center;
  gap: 6px;
  list-style:none;
}

.nav-menu a{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.nav-menu a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.nav-menu a[aria-current="page"]{
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border-color: rgba(255,255,255,.14);
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  width: 46px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 10px;
}
.nav-toggle-bar{
  display:block;
  height: 2px;
  width: 100%;
  background: rgba(231,238,252,.85);
  border-radius: 999px;
  transform-origin:center;
}

/* --------- Buttons --------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(135deg, rgba(255,91,91,.95), rgba(124,221,255,.88));
  border: 1px solid rgba(255,255,255,.16);
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(255,91,91,1), rgba(124,221,255,1));
}

.btn-small{ padding: 10px 12px; }

/* --------- Page layout helpers --------- */
main{ position:relative; z-index:1; }

.section{
  padding: 56px 0;
}
.section + .section{
  border-top: 1px solid rgba(255,255,255,.06);
}

.section .lead{
  color: var(--muted);
  font-size: 1.0rem;
  max-width: 72ch;
  margin-top: 12px;
}

/* Faint colour wash behind each H2 (requested previously) */
.section h2{
  display:inline-block;
  font-size: 1.35rem;
  letter-spacing: .2px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(124,221,255,.18), transparent 70%),
    radial-gradient(120% 100% at 100% 0%, rgba(255,91,91,.16), transparent 72%),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

/* --------- Hero --------- */
.hero{
  padding: 46px 0 32px;
}
.hero .wrapper{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
}

.hero h1{
  font-size: clamp(1.85rem, 2.6vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero p{
  color: var(--muted);
  font-size: 1.0rem;
  margin-top: 14px;
  max-width: 70ch;
}

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

.hero-panel{
  border-radius: var(--radius2);
  padding: 18px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(124,221,255,.18), transparent 60%),
    radial-gradient(130% 110% at 100% 20%, rgba(255,91,91,.16), transparent 62%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.hero-panel .small{
  color: var(--muted);
  font-size: .95rem;
  margin-top: 10px;
}

.pills{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}
.pills li{
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(231,238,252,.88);
  font-size: .92rem;
}

/* --------- Cards / grids --------- */
.grid{ display:grid; gap: 16px; margin-top: 18px; }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow2);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(124,221,255,.16), transparent 60%),
    radial-gradient(380px 220px at 90% 0%, rgba(255,91,91,.12), transparent 60%);
  opacity: .9;
  pointer-events:none;
}
.card > *{ position:relative; }
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
}

.card h3{
  font-size: 1.05rem;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.card p{ color: var(--muted); margin-bottom: 12px; }

.bullets{
  margin: 12px 0 0 18px;
  color: var(--muted);
}
.bullets li{ margin: 6px 0; }

/* --------- Forms --------- */
form{
  margin-top: 18px;
  display:grid;
  gap: 12px;
}

label{
  color: rgba(231,238,252,.86);
  font-weight: 600;
  font-size: .95rem;
}

input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(124,221,255,.45);
  box-shadow: 0 0 0 4px rgba(124,221,255,.12);
}
textarea{ min-height: 140px; resize: vertical; }

.small{ color: var(--muted); font-size: .95rem; }

/* --------- Footer --------- */
footer{
  padding: 26px 0 40px;
  color: rgba(231,238,252,.70);
}
footer .wrapper{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}

/* --------- Responsive --------- */
@media (max-width: 980px){
  .hero .wrapper{ grid-template-columns: 1fr; }
}

@media (max-width: 880px){
  .nav-toggle{ display:flex; }
  .nav-menu{
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(11,18,32,.88);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
  }
  body.nav-open .nav-menu{ display:flex; }
  .nav-menu a{ justify-content: space-between; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .section{ padding: 52px 0; }
}

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


/* --------- Contact form enhancements (Daytaem theme) --------- */
.contact-panel{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow2);
}

.contact-form{
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-span-2{ grid-column: 1 / -1; }

.helptext{
  color: var(--muted);
  font-size: .92rem;
  margin-top: -6px;
}

.checkrow{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.checkrow input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent2);
}

select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  outline: none;
}
select:focus{
  border-color: rgba(124,221,255,.45);
  box-shadow: 0 0 0 4px rgba(124,221,255,.12);
}

.form-note{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(124,221,255,.06);
  color: rgba(231,238,252,.92);
}

.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 880px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-span-2{ grid-column: auto; }
}
