/* Dailwind Studio — Liquid Glass
   Translucent material over a slow-moving colour field. */

:root {
  --bg:          #05070C;
  --text:        #F2F4F8;
  --text-dim:    rgba(242, 244, 248, 0.62);
  --text-faint:  rgba(242, 244, 248, 0.38);

  --glass:       rgba(255, 255, 255, 0.055);
  --glass-hi:    rgba(255, 255, 255, 0.10);
  --edge:        rgba(255, 255, 255, 0.14);
  --edge-bright: rgba(255, 255, 255, 0.30);

  --accent:      #5EE7D0;
  --accent-2:    #8B7CF6;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --max: 66rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- The colour field behind the glass ---------- */

.field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb.a {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle at 30% 30%, #14B8A6, transparent 70%);
  top: -8vw; left: -6vw;
  animation: drift-a 34s ease-in-out infinite alternate;
}

.orb.b {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle at 60% 40%, #7C5CF0, transparent 70%);
  top: 24vh; right: -10vw;
  animation: drift-b 44s ease-in-out infinite alternate;
}

.orb.c {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle at 50% 50%, #0F5FA8, transparent 70%);
  bottom: -14vw; left: 24vw;
  animation: drift-c 52s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(14vw, 12vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-16vw, -8vh, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(10vw, -14vh, 0) scale(1.2); } }

/* Fine grain over the field, so gradients don't band */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass material ---------- */

.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

/* Specular sheen along the top edge — the tell of a curved glass surface */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg,
              var(--edge-bright) 0%,
              transparent 34%,
              transparent 66%,
              rgba(255, 255, 255, 0.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Floating navigation ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 1.25rem;
}

.nav-pill {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
}

.brand {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-nav a:hover { color: var(--text); background: var(--glass-hi); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--glass-hi);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.16) inset;
}

/* ---------- Hero ---------- */

.hero {
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 17ch;
}

.lede {
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 44ch;
  margin: 0 0 2.5rem;
  font-weight: 400;
}

/* ---------- Concordance panel ---------- */

.kwic {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.75rem;
  line-height: 2.15;
  padding: 1.5rem 1.25rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text-faint);
  letter-spacing: 0;
}

.kwic b {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Sections ---------- */

section { padding: 3rem 0; }

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0 0 1.75rem;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 2.25rem 0 0.5rem;
}

p {
  max-width: 62ch;
  color: var(--text-dim);
}

section p, .prose p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  padding: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--glass-hi);
}

.card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.25rem; }
.card p { margin: 0; font-size: 0.9375rem; }

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(94, 231, 208, 0.10);
  border: 1px solid rgba(94, 231, 208, 0.22);
}

.tag.soon {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--edge);
}

/* ---------- Feature grid ---------- */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.features li {
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--edge);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.10) inset;
}

.features b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.features span {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.45;
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn.primary {
  background: linear-gradient(160deg, var(--accent), #35B9A8);
  color: #04231F;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.45) inset,
              0 10px 30px -10px rgba(94, 231, 208, 0.6);
}

.btn.primary:hover { filter: brightness(1.06); }

.btn.ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--edge);
  color: var(--text);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.14) inset;
}

.btn.ghost:hover { background: var(--glass-hi); }

/* ---------- Citation ---------- */

.cite {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78125rem;
  line-height: 1.8;
  padding: 1.4rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  color: var(--text-dim);
  white-space: pre-wrap;
}

/* ---------- Prose pages ---------- */

.prose { padding: 3.5rem 0 2rem; }

.prose h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  margin: 0 0 0.75rem;
}

.updated {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

.panel { padding: 2rem 1.75rem; }

.prose ul { max-width: 62ch; color: var(--text-dim); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li b { color: var(--text); }

/* ---------- Footer ---------- */

.site-foot {
  padding: 3rem 0 3.5rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.foot-inner {
  padding: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
}

.site-foot p { margin: 0; color: var(--text-faint); }
.site-foot .spacer { margin-left: auto; }

/* ---------- Accessibility & fallbacks ---------- */

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* If the browser can't blur, use solid panels instead of unreadable ones */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .features li, .btn.ghost {
    background: rgba(16, 20, 30, 0.92);
  }
}

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

@media (max-width: 34rem) {
  .nav-pill { border-radius: var(--r-md); }
  .hero { padding: 3.5rem 0 2.5rem; }
}
