/* ---------- Reila Liquid Glass Theme ---------- */
:root{
  --bg: #000000;
  --fg: #ffffff;
  --muted: #ffffff;
  --muted-opacity: 0.62;
  --accent: #ffffff;
  --ring: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --maxw: 1100px;

  /* Liquid glass effects */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.15);
  --glass-weak: rgba(255, 255, 255, 0.05);
  --blur: 20px;
  --saturate: 180%;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  /* Dynamic background */
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(120, 119, 198, 0.3), transparent 50%),
    radial-gradient(400px 300px at 80% 20%, rgba(255, 119, 198, 0.15), transparent 50%),
    radial-gradient(300px 200px at 40% 80%, rgba(120, 219, 255, 0.2), transparent 50%),
    var(--bg);
  line-height:1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page{
  min-height: calc(100dvh - 64px);
  display:flex;
  align-items:center;
  padding: clamp(20px, 4vw, 48px);
}

.hero{
  position: relative;
  width:100%;
  max-width: var(--maxw);
  margin: 0 auto;
  /* Liquid glass effect */
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  /* Subtle shadow */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  padding: clamp(20px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

/* Subtle highlight */
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events:none;
  opacity: 0.8;
}


.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 4vw, 40px);
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.logo{
  height:auto;
  width: clamp(200px, 40vw, 290px);
  filter: contrast(1.05);
}

.content{
  display:flex;
  flex-direction: column;
  gap: 24px;
}

.tagline{
  margin:0;
  font-weight:200;
  letter-spacing:-0.02em;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.2
}

.tm{ font-size: .4em; vertical-align: super; opacity: .7 }

.lede{
  margin:0;
  max-width: 65ch;
  color: var(--muted);
  opacity: var(--muted-opacity);
  font-size: clamp(14px, 1.6vw, 18px);
}

.contact{
  margin-top: 4px;
}

.email-wrap{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.email{
  font-weight: 400;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  user-select: text;
  cursor: text;
  text-decoration: none;
  padding: 5px 14px 5px;
  border-radius: 999px;
  /* Liquid glass pill */
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border: 1px solid var(--ring);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
}


.email.noscript{
  user-select: text;
}

.btn{
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border:1px solid var(--ring);
  /* Liquid glass button */
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, filter .18s ease;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
}
.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px) scale(.99); }

.copy-msg{
  min-height: 1em;
  font-size: .9rem;
  color: var(--muted);
  opacity: var(--muted-opacity);
}

/* ---------- Responsive Layout ---------- */
@media (min-width: 760px){
  .hero-grid{
    grid-template-columns: minmax(260px, 360px) 1fr;
  }
  .brand{ justify-content:flex-start; }
}

/* ---------- Footer ---------- */
.site-footer{
  display:flex;
  justify-content:center;
  align-items:center;
  height:64px;
  color: var(--muted);
  opacity: 0.3;
  font-size:.9rem;
  gap:.5ch;
}

/* ---------- Fallbacks ---------- */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))){
  .hero, .email, .btn{
    background: rgba(255, 255, 255, 0.1);
  }
}
